Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Re: Capture user entries in a custom table

$
0
0

Hi Isha,

 

You can achieve your requirement by using either TABLE ui element or ALV in web dynpro.

 

Please follow the below steps: ( By using Table ui element )

  • Create a custom table for storing data ZTR_DATA
  • Create a context node MY_DATA by using ddic structure ZTR_DATA with cardinality 0....n
  • Create an ui element TABLE on layout of your view and bind it to the context node MY_DATA
  • Go to method WDDOINIT( ) of your view, write the logic to get the data from ZTR_DATA and bind it to the context node MY_DATA by using method LO_NODE->BIND_TABLE( new_items = lt_data )
  • On action of SAVE button, you can read the data of context node ( table data  ) by using method lo_node->get_static_attributes_table( ) and save  lt_data to  ZTR_DATA

Hope this helps you.

 

Regards,

Rama


Viewing all articles
Browse latest Browse all 8594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>