cancel
Showing results for 
Search instead for 
Did you mean: 

Popup message trigger before an action is executed

Former Member
0 Kudos

Hi Everyone,

I have created an action that triggers after save on the order in CRM. The action is basically terminating other linked orders to the current order. Before the action gets triggered i am trying to raise a popup message asking whether the user wants to go ahead with it. The code for this popup is written on the eh_onsave event handler of the order. Now when i try saving the order, the code going past the popup->open() method but does not immediately raise the popup. Infact the execution of the action takes place before the popup is open.

I am interested if the user clicks the yes button on the popup then only i want the control to move forward. Any advise for this scenario.

i am sorry if this a repeated question, i tried searching for it but couldnt find anything on it.

Accepted Solutions (1)

Accepted Solutions (1)

former_member190077
Participant
0 Kudos

Hi Swaroop,

I,m looking in the SCN concerning your problem threads found this:

additionally found these documents that may be of help:

Creating popup message in webclient UI - CRM - SCN Wiki

Best regarts

JMP

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Swaroop,

- Check  the time of processing in the action condition . If it is Immediate then change it to ' when saving'.

- What is the start condition of the action ? have you tried to populate the BUS variable on popup click and using the same attribute in the start condition ?

- From web-ui side.. if this is to be done every time.. move all existing code from eh_onsave  to return event from popup.( copy from super and don't call the super )

Regards

Pratyush Ravi

Former Member
0 Kudos

Hi Swaroop,

in the solution manager this functionality has been implemented for UI Component AIC_CMCD_H.

It is quite complicated and connected with customizing and BADI implementations, so best would be if you could access a solution manager 7.1 system.

There you could check class CL_AIC_CMCD_AICCMCDOVERVI_IMPL, methods EH_ONACTIONPOPUP, EH_ONACTIONPOPUPCLOSE, EH_ONDYNACTION, SHOW_ACTION_POPUP

Best Regards,

Christoph