‎2006 Aug 23 3:46 PM
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.
‎2006 Aug 23 3:47 PM
Hi Gopi,
USe
AT LINE-SELECTION
IF SY-LSIND = 10.
SY-LSIND = 1.
ENDIF.
Cheers
VJ
Message was edited by: Vijayendra Rao
‎2006 Aug 23 3:47 PM
hi GOPI,
Make use of <b>sy-lsind</b>
i.e,
AT LINE-SELECTION
if SY-LSIND = 10.
SY-LSIND = 1.
endif.Regards,
santosh
‎2006 Aug 23 3:50 PM
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
‎2006 Aug 23 3:50 PM
‎2006 Aug 23 3:51 PM
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.
‎2006 Aug 23 3:51 PM
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