cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP: pop up confirmation

Former Member
0 Kudos

Hello,

I have a DELETE button on a screen. When a user clicks on it a pop up window comes up asking to confirm the action.

If the user clicks NO - abort deletion, YES - delete.

How do I define whether to procede with the action or to abort?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Georgy,

Check http://help.sap.com/saphelp_nw04s/helpdata/en/43/79f82ccbec6fcde10000000a1553f6/frameset.htm

IF_WD_WINDOW_MANAGER->CREATE_POPUP_TO_CONFIRM.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi Maksim,

This is the exact method that I am using.

However, I do not see parameters that will allow me to set actions for YES and NO buttions.

List of available params is:

TEXT

BUTTON_KIND

MESSAGE_TYPE

CLOSE_BUTTON

WINDOW_TITLE

WINDOW_LEFT_POSITION

WINDOW_TOP_POSITION

WINDOW_POSITION

WINDOW_WIDTH

WINDOW_HEIGHT

RESULT

RESULT is IF_WD_WINDOW type but again nothing is there.

Thank you.

former_member182372
Active Contributor
0 Kudos

Hi Georgy,

Check https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e242bf5-0901-0010-c99c-83c... Section "Calling a Confirmation Dialog Box".

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi Maksim,

Thanks for your help.

When I pass an action name to action_name parameter this assumes that the action has already been created.

However, to create an action I need to bind it to an element during design time. Therefore, what is the best way to achieve this?

One solution that I see is to create a dummy invisible button and bind needed action to it.

Would it be a good way to solve the problem?

Thank you.

former_member182372
Active Contributor
0 Kudos

Hi Georgy,

It is not obligatory to bind action with UI element event.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hello Maksim,

I just awarded you 10 points.

Thanks!

Answers (0)