Skip to Content
author's profile photo Former Member
Former Member

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

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?


Ravi Kiran

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Mar 23, 2008 at 02:12 AM

    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.


    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.