‎2008 Nov 12 8:16 AM
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.
‎2008 Nov 12 8:23 AM
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!
‎2008 Nov 12 8:23 AM
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!
‎2008 Nov 12 8:24 AM
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.
‎2008 Nov 12 8:55 AM
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
‎2009 Mar 12 6:40 AM
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.