Application Development and Automation 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: 
Read only

how to execute multiple records in table control

Former Member
0 Likes
604

HI.

I have a requirement that in table control user will select more than one row and when he clicks 'SAVE' it should go and sit in a custom table. how to pass more than one records.

thanks & regards.

sandeep

hi Sandeep ,

First of all I hope you might have set the attributes for selecting multiple rows in the table control . Next , loop at the table control , with condition SEL = "X".

Put these rows into an internal table . And then after collecting the values intyo the itab insert those rows to your custom table .. Thats it ...

Write back if further help needed ..

Reward if helpful .

Thanks

Ranjita

3 REPLIES 3
Read only

Former Member
0 Likes
561

hi

in the attributes of the table control, check the multiple line selection to X...then, you can capture the selected lines in the table control with the attribute line_selected of screen, which would be X...then, update the ztable for the entries where line_selected eq X

if helpful, reward

Sathish. R

Read only

former_member196299
Active Contributor
0 Likes
561

hi Sandeep ,

First of all I hope you might have set the attributes for selecting multiple rows in the table control . Next , loop at the table control , with condition SEL = "X".

Put these rows into an internal table . And then after collecting the values intyo the itab insert those rows to your custom table .. Thats it ...

Write back if further help needed ..

Reward if helpful .

Thanks

Ranjita

Read only

Former Member
0 Likes
561

Hi Sandeep,

I understand your requirement .......

See this standard program........

<b>" DEMO_DYNPRO_TABCONT_LOOP_AT "</b>

<b>Understand how DELETE button is working,inorder to delete multiple lines....Copy this program if necessary..OK.

Simply,Replace DELETE statement with your INSERT statement to push records into your custom table....very easily you can do it.</b>

<b>Reward all helpful answers.</b><b>

Hope you problem is solved.</b>

Regards,

V.Raghavender.