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 will come back 5th list to 3rd list in interactive reporting

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

the correct one is

at user-command.

case sy-ucomm.

when 'back'.

if sy-lsind = 5.

sy-lsind = 3.

endif.

endcase.

Former Member
0 Kudos

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

jaideeps
Advisor
Advisor
0 Kudos

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..