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

add push button using step loop in screen programing.

Former Member
0 Likes
1,590

hi.

i am showing a table on screen using step loop.

i want to add push button with each record from the table.

and want when the button is pressed , corrosponding row should be selected.

any example or help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,016

Hi!

Add a single character field as the first column of your itab. In the attributes of the table control, select the check box for 'w / SelColumn' and put the field name of your internal table in the field adjacent to it.

Hope this helps.

Cheers!

4 REPLIES 4
Read only

Former Member
0 Likes
1,017

Hi!

Add a single character field as the first column of your itab. In the attributes of the table control, select the check box for 'w / SelColumn' and put the field name of your internal table in the field adjacent to it.

Hope this helps.

Cheers!

Read only

Former Member
0 Likes
1,016

tahir naqqash ,

Are you displaying the data in table control? If yes then go through the following...

  • Go to SE51->give the program name and screen number -> layout -> select the push button and drag it and drop the push button at the last table control.

  • before that you need to add another field in your internal table.

Regards,

Mahi.

Read only

Former Member
0 Likes
1,016

Dear All.

i have done a work in which i show a database table with help of table control and in lay out i used the W/selcol to show the push button..............in short i have done all this work using table control.

but now i want the same work with step loops not using table control.

i.e i want to show the table on the screen in which each record have a push button.

it is a great challenge for all experts

Read only

0 Likes
1,016

tahir naqqash ,

Why are you using step loop in your problram till? it is obsolete. Any way try the following way.

Set the function code for the buttons like FCODE%% here %% (Percents) means line numbers. Then when pressing function coude you will have the function code with line number of the table, So you can do the relavent code according to the function code.

Regards,

Mahi.