cancel
Showing results for 
Search instead for 
Did you mean: 

How to identify that the call to a BAdI is coming from SAPGUI

Former Member
0 Kudos

Hi All,

In the current project involving SAPCRM 5.0 (both GUI and PCUI), we need to display a pop-up asking the user whether he would like to go ahead with the changes in both GUI and PCUI.

The function module 'Popup-to-confirm' was used in a BAdI implementation and it worked fine in GUI but caused problems in PCUI. So this code was commented out as of now.

Could you let me know as to how should we differentiate the call being placed to a BAdI is from GUI or from PCUI so that we could ensure that the pop-up gets displaced in GUI atleast as of now and does not get populated/cause errors in PCUI as of now?

Else please let me know what is the correct way of displaying a pop-up in both GUI and PCUI in CRM 5.0?

Thanks,

Ravi Kiran

Accepted Solutions (1)

Accepted Solutions (1)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Use function module GUI_IS_AVAILABLE to see if the gui is available, if so, then allow the POPUP function module to be called, otherwise, skip it.

Regards,

Rich Heilman

Former Member
0 Kudos

Thanks Rich... It solved the issue of getting the pop-up only in GUI...

Answers (0)