on 08-30-2010 5:18 PM
I need to display my Webdynpro application in SAP GUI.
I am doing that using function:
DATA: container_bottom TYPE REF TO cl_gui_container.
CALL FUNCTION 'WDY_EXECUTE_IN_PLACE'
EXPORTING
APPLICATION = 'ZFI_BUDGET_AMEND'
* INTERNALMODE = 'X'
* CONTAINER_NAME = 'CONTAINER_BOTTOM'
IMPORTING
out_url = out_url
EXCEPTIONS
invalid_application = 1
browser_not_started = 2
OTHERS = 3.
If I do not submit parameter CONTAINER_NAME - then Webdynpro is displayed in a new screen.
I want my application to be displayed in the part of the same screen it is called from.
Before the application is called dynpro screen is already split in to containers.
So I submitted parameter CONTAINER_NAME - but the webdynpro doesn't get displayed.
Thru debug I can see that object CONTAINER_BOTTOM was created and webdynpro has been called.
But nothing is displayed.
Any help is appreciated.
Tatyana
Amarnath,
I also do not have problem using function 'WDY_EXECUTE_IN_PLACE'. It runs just fine but Webdynpro will be opened in a new window.
I would like my webdynpro to run in the container I provide.
So I call the function with parameters like below. Please note that parameter CONTAINER_NAME is uncommented. I made a mistake in my initial post leaving this parameter commented out.
'CONTAINER_BOTTOM' is a name of object of class CL_GUI_CONTAINER.
CALL FUNCTION 'WDY_EXECUTE_IN_PLACE'
EXPORTING
APPLICATION = 'ZFI_BUDGET_AMEND'
INTERNALMODE = 'X'
CONTAINER_NAME = 'CONTAINER_BOTTOM'
IMPORTING
out_url = out_url
EXCEPTIONS
invalid_application = 1
browser_not_started = 2
OTHERS = 3.
Could you share SAP demo code of WDR_INPLACE_DEMO1 and WDR_INPLACE_DEMO2 if you have that?
Thank you,
Tatyana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>Could you share SAP demo code of WDR_INPLACE_DEMO1 and WDR_INPLACE_DEMO2 if you have that?
The reason that the demos were removed in the first place is that SAP no longer supports the scenario of embedding WDA within SAPGUI. For example the classes that pass events into the in-place WDA, don't work at all with Lightspeed rendering in 7.01. SAP has added this SAP integration scenario to the list of unsupported items in OSS.
The supported suggestions for such integration are to use the NWBC or the NetWeaver Portal and have multiple iViews within one page.
SAP help on Internet is referring to examples:
DEMO_START_WD_IN_PLACE1
DEMO_START_WD_IN_PLACE2.
Our system doesn't have them.
If you have the code in your system - could you please copy and paste on this forum?
Or send it to me please?
Thank you,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tatyana,
I used in the below way and Its working fine for me.
DATA out_url type STRING.
CALL FUNCTION 'WDY_EXECUTE_IN_PLACE'
EXPORTING
* PROTOCOL =
INTERNALMODE = 'X'
* SMARTCLIENT =
APPLICATION = 'ZSAMPLE'
* CONTAINER_NAME =
* PARAMETERS =
* SUPPRESS_OUTPUT =
IMPORTING
OUT_URL = out_url
* CHANGING
* VIEWER =
* EXCEPTIONS
* INVALID_APPLICATION = 1
* BROWSER_NOT_STARTED = 2
* ACTION_CANCELLED = 3
* OTHERS = 4
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Pls check the parameters which you are passing are correct or not and let us know.
Regards,
Amarnath S
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.