Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting data from table control to the report program.

Former Member
0 Kudos

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).

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

First Check the Demo programs on Table Controls..

RSDEMO_TABLE_CONTROL

RSDEMO02

DEMO_DYNPRO_TABCONT_LOOP

DEMO_DYNPRO_TABCONT_LOOP_AT

3 REPLIES 3

Former Member
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

First Check the Demo programs on Table Controls..

RSDEMO_TABLE_CONTROL

RSDEMO02

DEMO_DYNPRO_TABCONT_LOOP

DEMO_DYNPRO_TABCONT_LOOP_AT

Former Member
0 Kudos

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.