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: 

Interactive Report

Former Member
0 Kudos
141

Hi Friends,

I have a drill down report which has 15 lists(1 basic list and 14 secondary lists)

Now i would like to move from 1st Secondary list to 8th secondary list directly.

How could i move from back n forth between the lists...

How could i achieve it...

pls tell me...

1 ACCEPTED SOLUTION

Former Member
0 Kudos
115

You can acheive this by manipulating t e SY-LSIND value in the at line selection event.

Eg: you have push button '8th' on the application tool bar with function code EGHT.

AT USER-COMMAND.

if sy-ucomm = 'EGHT'.

sy-lsind = 8.

endif.

Similarly you can jump lists.

Naveen

6 REPLIES 6

Former Member
0 Kudos
116

You can acheive this by manipulating t e SY-LSIND value in the at line selection event.

Eg: you have push button '8th' on the application tool bar with function code EGHT.

AT USER-COMMAND.

if sy-ucomm = 'EGHT'.

sy-lsind = 8.

endif.

Similarly you can jump lists.

Naveen

Former Member
0 Kudos
115

Hello,

U can do like this:


AT LINE-SELECTION.
IF SY-LSIND = 1.
SY-LSIND = 8.
ENDIF.

case sy-lsind.
when 1.
when 2.
.

.
.
.
.
when 8.
write '8th list'.
endcase.

Hope this slve ur problem.

REgards,

Vasanth

Former Member
0 Kudos
115

hi,

Use <b>SY-LSIND</b> variable

Regards,

Santosh

Former Member
0 Kudos
115

Hi Maheshwar,

As vasanth suggested this is the coding.

AT LINE-SELECTION.

CASE SY_LSIND.

when 1.

SY-LSIND = 1.

SY-LSIND = 8.

ENDIF.

when 8.

SY-LSIND = 8.

SY-LSIND = 1.

ENDIF.

endcase.

Hope this will resolve your query.

Reward all the helpful answers.

Regards

Former Member
0 Kudos
115

hi,

Change the system variable for list index sy-lsind to the list you want in at line-selection event as per your requirement.

You can simply do like this.

sy-lsind = 8.

Hope this helps.

Regards,

Richa

JayR
Participant
0 Kudos
115

Hi Maheswar,

Have a look at the program. You can move from any list to any list.

REPORT ZIRT no standard page heading.

data : v_val(2),

v_fld(3).

data : c_0 value '0',

c_1 value '1',

c_2 value '2',

c_3 value '3',

c_4 value '4',

c_5 value '5',

c_6 value '6',

c_7 value '7',

c_8 value '8',

c_9 value '9',

c_10(2) value '10',

c_11(2) value '11',

c_12(2) value '12',

c_13(2) value '13',

c_14(2) value '14',

c_15(2) value '15'.

write : c_0, c_1, c_2, c_3, c_4, c_5, c_6, c_7, c_8, c_9, c_10, c_11, c_12, c_13, c_14, c_15.

at line-selection.

get cursor field v_fld value v_val.

write : c_0, c_1, c_2, c_3, c_4, c_5, c_6, c_7, c_8, c_9, c_10, c_11, c_12, c_13, c_14, c_15.

sy-lsind = v_val.

write : 'Current List :', sy-lsind.