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

Urgent Getting a GUI referance of the navigational object at runtime...

Hi all ,

I have a urgent requirement regarding People-Centric UI. I have added a additonal button in a standard BSP. Now on the click of that button I am interested calling a external URl.

In a simple BSP application the following code works

navigation->goto_page( '' ) on Input processing.

However, in case of People-Centric UI a method of a class is called where you are suppose to code for additional events ( for new buttons ). Howver, these methods do not pass a reference to the BSP runtime and hence the code " navigation->goto_page( '' ) " cannot work.

I tried to get the runtime reference using the following code.


DATA: runtime TYPE REF TO cl_bsp_runtime,

* navigation TYPE REF TO cl_bsp_navigation.



CALL METHOD cl_bsp_runtime=>get_runtime_instance


runtime = runtime

However I am not getting a reference to navigation object( Since it is a private attribute of CL_BSP_RUNTIME )

Any suggestions would be welcomed.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2004 at 11:51 AM

    Hi Yogendra,

    the URL for popup windows in PCUI is generated in JavaScript files - look at the main.js under the MIMEs/scripting folder in CRM_BSP_FRAME and look at the function ShowF4OIC for example. There you see the URL of the popup window being created. Unless you want to overwrite that code in some way, there is no point in trying to subvert the URL from the regular ABAP methods.

    However... you can display HTML pages inside a PCUI screen. You need to define a new screen of type HTML Viewer, include that screen in one of your applications and trigger it (usually through a tab on a tabstrip). You will need a screen structure with a field URL, and you place "" into that field. create a new model access class, and set the field URL in the READ method of that class. Tie the application, screen structure and access class all together via customizing the blueprint tables.

    I haven't tried this, but the book (THE_PCUI_CRM.PDF) tells me this is the way to do it. If you don't have this document download it from SAPnet.

    Anyone else have any better suggestions?

    Paul Wright

    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.