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: 

Using cl_salv_table=>factory( ) and display() need confirmation popup at Exit

FelixOrtiz
Explorer
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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( ) .

0 Kudos

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**