10-06-2008 10:56 AM
hi all,
i am using the FM
1. 'REUSE_ALV_BLOCK_LIST_INIT'
2. 'REUSE_ALV_BLOCK_LIST_APPEND'
3. 'REUSE_ALV_BLOCK_LIST_DISPLAY'
i want to go back to the previous screen where i was giving values for selection screen
by clicking on button BACK but its going back to report.
code is there for 'REUSE_ALV_BLOCK_LIST_DISPLAY'
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
IMPORTING
es_exit_caused_by_user = ws_es_exit.
IF NOT ws_es_exit IS INITIAL.
LEAVE TO SCREEN 1000.
ENDIF.
please help me in details
thanks and regards
pawan kumar
10-06-2008 10:59 AM
Hi,
I dont think you need to handle this using a code.
In your ALV output if you press back it will directly go to the selection screen.
Regards,
Pramod
10-06-2008 10:59 AM
Hi,
I dont think you need to handle this using a code.
In your ALV output if you press back it will directly go to the selection screen.
Regards,
Pramod
10-06-2008 11:19 AM
hi, i am beginer
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
IMPORTING
>>es_exit_caused_by_user = ws_es_exit.
IF NOT ws_es_exit IS INITIAL.
LEAVE TO SCREEN 1000.
ENDIF.
why we use "es_exit_caused_by_user"????
10-06-2008 11:23 AM
Hi,
Here you need to tell me 2 things.
In your REUSE_ALV_BLOCK_LIST_INIT Function Module
have you declared any PF-STATUS.
If so then you need to handle it.
If not then you need to remove the code
you have written that says
Leave to screen 0.
Regards,
Pramod
10-06-2008 11:38 AM
yes
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
i_callback_program = sy-repid
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'SET_PF_STATUS'.
and
FORM set_pf_status USING wps_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTANDARD'. "copy it from SALV func group standard
ENDFORM. "SET_PF_STATUS
10-06-2008 11:42 AM
Hi,
In your ZSTANDARD PF-STATUS assign '&F03' for the back function key and you need not handle this later.
Regards,
Pramod