09-17-2008 10:15 AM
Hi,
I created a table control using report program and i am trying to enter data in the table control which i want to update in the DB table. How can i get the data entered in table control to the report program, so that i can update the DB table.
Please help me finding out which variable will hold the data entered in table control(dynamically).
09-17-2008 10:46 AM
First Check the Demo programs on Table Controls..
RSDEMO_TABLE_CONTROL
RSDEMO02
DEMO_DYNPRO_TABCONT_LOOP
DEMO_DYNPRO_TABCONT_LOOP_AT
09-17-2008 10:37 AM
hi,
in your table control you give some name to that table control say it_cntrl.
this only serves as the internal table to process the table control data.
like u can write like this.
loop at it_cntrl into wa_cntrl. "wa_cntrl is work area of type it_cntrl table type
.........
......... "do your functining
end loop.
any clarification get in touch
thnks
09-17-2008 10:46 AM
First Check the Demo programs on Table Controls..
RSDEMO_TABLE_CONTROL
RSDEMO02
DEMO_DYNPRO_TABCONT_LOOP
DEMO_DYNPRO_TABCONT_LOOP_AT
09-17-2008 3:04 PM
Hi Goutham,
Declare the Table Control with internal table instead of using the standard field names. You will get the value stored in the internal table.
Then use the Loop statement by looping at that internal table and apply the logic you want.
Thanks,
Ravi Kanth.