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.
Showing results for 
Search instead for 
Did you mean: 

Step Loop in Dialogue Programming.

0 Kudos


we have a requrement like when i select a particular record from the screen in a group of records...

that particular record should be carried to the next screen. how to achieve this..,

I tried using sy-curow or get cursor ..line.. and read the internal table which is used to display the group of records,

it works fine for the first set of display... but the actual problem comes when the user scrolls down and places the cursor there it will read that particular position of step loop.. not the actual line number of the internal table..

any help in this regard is very helpful.


Active Contributor
0 Kudos

To get the current selected line. you have to do it like

Please correct if the forumula is wrong.

get cursor line lv_line.
if tbcl-top_line ne 1.
selected_line = ( lv_line + tbcl-top_line ) - 1.
selected_line = lv_line.

0 Kudos

Hi Keshav,

thanks for the reply..

But what is the value TBCL-TOP_LINE will contain..??

from where can i get the value..??

if you are refering to table control... then will make clear that i am using step loop concept.

0 Kudos

tbcl( table control ) - topline( table control property ) You can use it directly. In debugger double click on the tablecontrol name, you will find it. Just code this in PAI

I guess step loops are obsolete now