Application Development and Automation 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: 
Read only

Regarding reports

Former Member
0 Likes
738

In an interactive report, after going to 5th list, can you come back to 2nd list? How?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
709

hi murali,

AT LINE-SELECTION.

case sy-lsind.

when 5.

sy-lsind = 2.

endcase.

regards,

priya.

6 REPLIES 6
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
709

Hi,

By setting the sy-lsind you can get back to the list corresponding to that index.

You can manipulate the sy-lsind field.

Regards,

Sesh

Read only

Former Member
0 Likes
709

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.

_______________________

try Sy-LSIND to 5.

____________________________________________

In the logic

case sy-lsind

when lsind = 15

Code

sy-lsind = 5.

endcase.

pls : award points

sri

Read only

Former Member
0 Likes
710

hi murali,

AT LINE-SELECTION.

case sy-lsind.

when 5.

sy-lsind = 2.

endcase.

regards,

priya.

Read only

0 Likes
709

Hi Priya,

Supoose can i put back button in each list,Means it will go the previous list.In that button whcih event i have to write the code.

Read only

0 Likes
709

hi murali,

if u have created a button then write the logic under AT USER-COMMAND.

data: v_ucomm type sy-ucomm.

v_ucomm = sy-ucomm.

AT USER-COMMAND.

CASE V_UCOMM.

when 'BACK'.

-


-


ENDCASE.

do reward if it helps,

priya.

Read only

0 Likes
709

Thamku very much for solving theproblem.