08-09-2007 6:37 PM
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.
08-10-2007 9:02 AM
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>
08-10-2007 8:54 AM
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
08-10-2007 8:58 AM
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
08-10-2007 9:02 AM
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>