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

Execute Button in table control

Former Member
0 Likes
631

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

1 ACCEPTED SOLUTION
Read only

former_member491305
Active Contributor
0 Likes
583

Hi,

Drag a push button into your table control and then set the icon name of 'Execute' in the push button.

4 REPLIES 4
Read only

former_member491305
Active Contributor
0 Likes
584

Hi,

Drag a push button into your table control and then set the icon name of 'Execute' in the push button.

Read only

Former Member
0 Likes
583

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

Read only

0 Likes
583

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.

Read only

Former Member
0 Likes
583

please go thouth the link

<a href="http://">http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm</a>

Girish