‎2007 Jun 05 9:57 AM
Hi All,
can any one tell me how to insert the execute button in the table control because my requirement is for every row in the table control i have to use the execute button to call and execute custom program in the background.
Thanks
Prince
‎2007 Jun 05 10:01 AM
Hi,
Drag a push button into your table control and then set the icon name of 'Execute' in the push button.
‎2007 Jun 05 10:01 AM
Hi,
Drag a push button into your table control and then set the icon name of 'Execute' in the push button.
‎2007 Jun 05 10:01 AM
A better design would be make the TC single selection only and then have the button on your application tool bar
coz you cant handle say 50 sy-ucomm's seperately if you have 50 lines
santhosh
‎2007 Jun 05 10:24 AM
Hi ,
Only one user-command is enough to handle table control entries.To identify in which line of table control, the execute button is clicked, Use the following calculation.
Data:v_line type i.
CASE ok_code.
WHEN 'EXE'.
Get cursor line v_line.
v_index = tc-top_line + v_line - 1. -
> TC - Table control name
Read table it_ekpo index v_index.
ENDCASE.
‎2007 Jun 05 10:16 AM
please go thouth the link
<a href="http://">http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm</a>
Girish