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: 

how to navigate from secondarylist to primarylist

former_member1193869
Participant
0 Kudos

hi,

what is the command/transactioncode to move from secondarylist to basic/primarylist and what happens if we create 21 secondarylist will the control goto 21st from 20th , on selecting a field will it directly goto 21st list.

plzzzzzzzzz brief me.

1 ACCEPTED SOLUTION

varma_narayana
Active Contributor
0 Kudos

Hi..

The Sy-index for Primary list is 0.

The Sy-index for Secondary lists is 1 to 20.

To return to primary list use this code.

AT LINE-SELECTION.

CASE SY-LSIND.

WHEN 3.

IF <CONDITION>.

SY-LSIND = 0.

ENDIF.

ENDCASE.

<b>Reward if Helpful</b>

3 REPLIES 3

Former Member
0 Kudos

Hi Naveen

1) For the first point to go from Secondary list to Baisc list you have to just clear your Sy-LSIND system field or else set it to 0.

2) You can have max. of 20 Secondary list, so you can't go from 20 to 21st. It will just stay in the last secondary list.

~Ranganath

Former Member
0 Kudos

HI,

If you want to come back to the Primay list then

SY-LSIND = 1.

If you create more than 21 list then it will over write the 21st list, it will not generate the 22nd list,

Regards

Sudheer

varma_narayana
Active Contributor
0 Kudos

Hi..

The Sy-index for Primary list is 0.

The Sy-index for Secondary lists is 1 to 20.

To return to primary list use this code.

AT LINE-SELECTION.

CASE SY-LSIND.

WHEN 3.

IF <CONDITION>.

SY-LSIND = 0.

ENDIF.

ENDCASE.

<b>Reward if Helpful</b>