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: 

secondary list

Former Member
0 Kudos
85

hi friends..

If i am in 15th secondary list how to navigate to 5th secondary list?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
64

Hello,

Set the Sy-LSIND to 5.

If useful reward.

Vasanth

7 REPLIES 7

Former Member
0 Kudos
64

Hi,

Set sy-lsind = 5.

or Try this.

DATA: l TYPE i, t(1) TYPE c.

DO 100 TIMES.

WRITE: / 'Loop Pass:', sy-index.

ENDDO.

TOP-OF-PAGE.

WRITE: 'Basic List, Page', sy-pagno.

ULINE.

TOP-OF-PAGE DURING LINE-SELECTION.

WRITE 'Secondary List'.

ULINE.

AT LINE-SELECTION.

DESCRIBE FIELD sy-lisel LENGTH l IN CHARACTER MODE

TYPE t.

WRITE: 'SY-LSIND:', sy-lsind,

/ 'SY-LISTI:', sy-listi,

/ 'SY-LILLI:', sy-lilli,

/ 'SY-CUROW:', sy-curow,

/ 'SY-CUCOL:', sy-cucol,

/ 'SY-CPAGE:', sy-cpage,

/ 'SY-STARO:', sy-staro,

/ 'SY-LISEL:', 'Length =', l, 'Type =', t,

/ sy-lisel.

IF SY-LSIND = 15.

SY-LSIND = 5.

ENDIF.

WRITE: 'SY-LSIND:', sy-lsind,

/ 'SY-LISTI:', sy-listi,

/ 'SY-LILLI:', sy-lilli,

/ 'SY-CUROW:', sy-curow,

/ 'SY-CUCOL:', sy-cucol,

/ 'SY-CPAGE:', sy-cpage,

/ 'SY-STARO:', sy-staro,

/ 'SY-LISEL:', 'Length =', l, 'Type =', t,

/ sy-lisel.

Regards,

Raghav

Message was edited by: Raghavendra L

Former Member
0 Kudos
65

Hello,

Set the Sy-LSIND to 5.

If useful reward.

Vasanth

0 Kudos
64

Hi,

sy-lsind = 5

takes or navigates you on to the 5th list ...

Regards,

Santosh

Former Member
0 Kudos
64

hi,

I think you can use the <b>scroll list</b> command.

sy-lsind = 5.

Scroll list index sy-lsind.

Hope this helps.

Former Member
0 Kudos
64

hi,

We can <b>not</b> move to 5th secondary list even we make sy-lsind to 5. We have to re execute the block of code which was executed to display 5th secondary list. If you do in this way, you will be generating 16th secondary list but you get the feel that you are moving to 5th secondary list.

Regards,

Sailaja.

Former Member
0 Kudos
64

Hi Sanal

In the logic

case sy-lsind

when lsind = 15

Code

sy-lsind = 5.

endcase

Try this out it is working for me.

Regards

Haritha

Former Member
0 Kudos
64

<b>at user-command.</b>

if sy-lsind = 15.

sy-lsind = 5.

endif.

Message was edited by: Srikanth Kidambi