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: 

FM "REUSE_ALV_BLOCK_LIST_DISPLAY"

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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"????

0 Kudos

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

0 Kudos

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

0 Kudos

Hi,

In your ZSTANDARD PF-STATUS assign '&F03' for the back function key and you need not handle this later.

Regards,

Pramod