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

Table control row index

Former Member
0 Likes
625

Hi,

i have table control which contains 20 columns with selection mode = none.

my first column displays checkbox and last column displays icons

last column(Icon column) has attribute respond to double click and okcode set to PICK and now i am able to goto PAI event when i double click on this icon column.

how can i get row index or row details (like at-line selection ) when i click on icon?

Thanks,

2 REPLIES 2
Read only

Former Member
0 Likes
399

Your control will create a complex structure of type CXTAB_CONTROL.Field CURRENT_LINE of this will give you the current line contents. Look at the <a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm">SAP documentation</a>

Read only

Former Member
0 Likes
399

Hi,

DATA: cursorfield TYPE char20,

gv_line TYPE i.

in PAI module

write the code

GET CURSOR FIELD cursorfield LINE gv_line.

gv_line = tabc-current_line + gv_line - 1.

you will get the exact line number

Regards

Ganesh Maddi