06-29-2007 5:51 AM
hi all,
which of this code is correct to comeback 5th to 3rd list
at user-command.
case sy-ucomm.
when 'back'.
if sy-lsind = 5.
sy-lsind = 3.
endif.
endcase.
or
at user-command.
case sy-ucomm.
when 'back'.
if sy-lsind = 5.
sy-lsind = 2.
endif.
endcase.
thanks in advance
06-29-2007 5:55 AM
Hi,
I suppose the first code of urs is wright one, because ur main list will have sy-lsind as 1.
Reward pints if useful.
Thanks,
Vijayakumar V
06-29-2007 5:55 AM
Hi,
I suppose the first code of urs is wright one, because ur main list will have sy-lsind as 1.
Reward pints if useful.
Thanks,
Vijayakumar V
06-29-2007 5:57 AM
hi,
the correct one is
at user-command.
case sy-ucomm.
when 'back'.
if sy-lsind = 5.
sy-lsind = 3.
endif.
endcase.
06-29-2007 6:01 AM
i am not sure by 5th list and 3rd list you are reffering the detail list no or not?
the basic list contain sy-lsind = 0.
aand the detail lists are containing sy-lsind as 1 ,2 ,3 like that
so if you are trying to refer the detail list then 1st one is the correct.
regards
shiba dutta
06-30-2007 10:28 AM
hi friend,
try out this code: normal list..i think second one will be the correct one..
START-OF-SELECTION.
WRITE: 'Basic List, SY-LSIND =', sy-lsind.
AT LINE-SELECTION.
WRITE: 'Secondary List, SY-LSIND =', sy-lsind.
if sy-lsind = 5.
sy-lsind = 2.
endif.
thanks
jaideep
if useful reward points..