08-13-2013 10:31 PM
I am using the factory method and the display to give the user a full screen ALV. When the user tries to exit or hit Back I want to prompt them to make sure that is the intention.
Please see the debugger screen capture.
Can't find a way to set GT_GRID-S_LAYOUT-CONFIRMATION_PROMPT = 'X" using the methods available from cl_salv_table.
08-14-2013 1:17 PM
Function module REUSE_ALV_GRID_LAYOUT_INFO_SET is part of same function group.
Perhaps you can set confirmation prompt using parameter IS_LAYOUT-CONFIRMATION_PROMPT.
Call the function module before display( ) .
04-23-2014 4:24 PM
Having the same problem and tried that, my feedback is that it didn't work as some field-symbol hasn't been properly initialized yet... It seems the confirmation-prompt is only expected to be used in an editable ALV which the SALV does not support so there is no confirmation-prompt support at all.
However you may set a custom GUI-Status like
salv->set_screen_status( pfstatus = 'STANDARD_ALVGRID' report = gc_repid ).
and change the corresponding code of the Back/Up/Exit buttons to something unknown to SALV.
SALV checks these function-codes (see LSLVC_FULLSCREENF01, Subroutine pai, Line 1153ff) and if unknown forwards these to you as a custom user-command.
So Change the function-codes to _BACK, _UP and _EXIT and handle these yourself in a custom event-handler as a user-command... yes, it's a pain in the a**