‎2010 May 13 2:58 PM
Hello Experts,
I'm using the FM: 'REUSE_ALV_GRID_DISPLAY' to create a report but one of the requirement is to display an warning message when the user click on the back button since I don't a screen that I can use the PAI to handle this, is there any other approach to complete this task, any help will be very appreaciated, thanks.
‎2010 May 13 3:21 PM
Norman,
In your report program your need use the module that handle the button press by user.
I.E.
MODULE USER_COMMAND_0100 INPUT.
case sy-ucomm.
when 'BACK'. " When the user press back button, you can send a warning message
set screen 0.
when 'EXIT'.
leave program.
when 'CANCEL'.
leave program.
endcase.
clear sy-ucomm.
ENDMODULE. " USER_COMMAND_0100 INPUT
Regards,
‎2010 May 13 3:06 PM
You can call FM POPUP_TO_CONFIRM when pressing the back button.
Regards,
Nilesh.
‎2010 May 13 3:10 PM
‎2010 May 13 3:18 PM
You can check the ok code in the user command routine of your ALV. The PAI is not necessary always.
Pass the routine name to the importing parameter I_CALLBACK_USER_COMMAND.
Regards,
Nilesh.
‎2010 May 13 3:21 PM
Norman,
In your report program your need use the module that handle the button press by user.
I.E.
MODULE USER_COMMAND_0100 INPUT.
case sy-ucomm.
when 'BACK'. " When the user press back button, you can send a warning message
set screen 0.
when 'EXIT'.
leave program.
when 'CANCEL'.
leave program.
endcase.
clear sy-ucomm.
ENDMODULE. " USER_COMMAND_0100 INPUT
Regards,