Application Development 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: 

Using table control in a screen: current_line parameter issue

Former Member
0 Kudos
100

Hi all,

I have a problem regarding a table control I use to display some pdf files. In my table control I have a line for every pdf-document and a row "number" that correspondes to document number. I developed a fm that retrieves my pdf when I double click the corresponding number from my table control. The problem is I always get only the first document. After debuging It seems that the parameter current_line is always 1 even if I select the 3rd line for example.

Can anyone tell me why do I have this issue?

Thank you in advance.

Diana

3 REPLIES 3

Former Member
0 Kudos
73

Hi,

hope this will help you out


CONTROLS: tab_cnt1 TYPE TABLEVIEW USING SCREEN '0902'.

 READ TABLE it_mast INDEX tab_cnt1-current_line.

Thanks & Regards,

Krishna..

Former Member
0 Kudos
73

Hi,

Check the thread below.

Thanks

Nidhi

0 Kudos
73

I want to make a remark. When I'm scrooling down it seems that I get the correct index only if the line is set as first. I mean that, if I scroll downt and the 3rd line goes on the first place it has current_line = 3, else it's always 1.