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

Doubt on Interactive reports?

Former Member
0 Likes
712

Hi,

In interactive reporting we willhave secondary lists,suppose if we r in the 10th secondarylist and i want to move from 10th secondarylist to 1st secondary list how to do it?we have to click on Back 9 times to move r is there other way to do it?If by other way plz senbd me the code also.

Thanks & Regards,

Gopi.

6 REPLIES 6
Read only

Former Member
0 Likes
681

Hi Gopi,

USe

AT LINE-SELECTION

IF SY-LSIND = 10.

SY-LSIND = 1.

ENDIF.

Cheers

VJ

Message was edited by: Vijayendra Rao

Read only

Former Member
0 Likes
681

hi GOPI,

Make use of <b>sy-lsind</b>

i.e,

AT LINE-SELECTION
   if SY-LSIND = 10.
      SY-LSIND = 1.
endif.

Regards,

santosh

Read only

Former Member
0 Likes
681

hi,

The field sy-lsind gives the List processing, details list index. So change this field from 10 to 1 (in the line-selection event) to get the fist list directly.

Regards,

Richa

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
681

You can simply set the sy-lsind when writing your secondary lists. This will allow you to come directly back to the primary list when hitting back button.



report zrich_0001.


start-of-selection.

  write:/ sy-lsind.

at line-selection.
  sy-lsind = 1.
  write:/ sy-lsind.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
681

Hi,

Though you set sy-lsind to 1, you can not move to first secondary list from 10th secondary list.

You have to call the same subroutine which you used to display the first secondary list.

Case sy-ucomm.

when 'BACK'.

if sy-lsind = 10.

sy-lsind = 1.

endif.

CASE SY-LSIND.

WHEN 1.

PERFORM DISPLAY_FIRST_LIST.

ENDCASE.

endcase.

Regards,

Sailaja.

Read only

rahulkavuri
Active Contributor
0 Likes
681

U can define the PF status accordingly for this scenario and configure the Back button and set Sy-LSIND to '1'

FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

CASE R_UCOMM.

if sy-lsind = 10.

WHEN 'BACK' OR 'CANC' OR 'EXIT'.

LEAVE TO SCREEN 1.

else.

WHEN 'BACK' OR 'CANC' OR 'EXIT'.

LEAVE TO SCREEN 0.

endif.

WHEN '&IC1'.

IF RS_SELFIELD-FIELDNAME = 'VBELN'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = RS_SELFIELD-VALUE

IMPORTING

OUTPUT = TEMP_VBELN.

  • TEMP_VBELN = RS_SELFIELD-VALUE.

PERFORM GET_DATA_VBRP.

PERFORM GET_SECOND_SCREEN_DISPLAY.

ENDIF.

ENDCASE.

ENDFORM. "USER_COMMAND

Message was edited by: Rahul Kavuri