With the function module WDY_EXECUTE_IN_PLACE and within the framework of the classic Dynpro interface development, you can integrate Web Dynpro ABAP applications into your GUI application. You can display the Web Dynpro ABAP application either in a specific area on your “in-place” screen or on a separate screen. The “in-place” is displayed in the SAP HTML viewer. The function module enables the relevant parameters to be transferred with both variants.
You can also generate the URL belonging to the Web Dynpro ABAP application (OUT_URL) and then use it, for instance, to start a Web Dynpro ABAP application from the PFCG.
Import Parameters
Parameter |
Optional |
Description |
Possible Values |
PROTOCOL |
X |
Protocol to start the application |
HTTP (default value) or HTTPS |
INTERNALMODE |
X |
Internal display mode. If X is set, the application is started with the SAP HTML viewer. If no value is specified, a browser window is opened in which the application runs. |
X or no specification (blank) |
APPLICATION |
|
Name of the Web Dynpro ABAP Application |
Application name |
CONTAINER_NAME |
X |
Name of the embedded container If no value is specified here, the application is started in a new screen and the SAP HTML viewer takes up the whole screen In contrast, if the Web Dynpro application is to be displayed on the same screen, you can create a custom control and enter its name in this parameter. |
Name of the custom control or else empty See example program DEMO_START_WD_IN_PLACE2 |
PARAMETERS |
X |
Internal table containing the names and values of the parameters that are to be forwarded in the application. |
Table name |
SUPPRESS_OUTPUT |
X |
If X is set, the generated URL is output, and the application is not started. |
X or no specification (blank) |
Export Parameters
Parameter |
Description |
OUT_URL |
Generated URL. It is always output, regardless of whether SUPPRESS_OUTPUT has been set or not. |
Changing parameters
Parameter |
Optional |
Description |
CONTAINER |
X |
Reference to an instance of class CL_GUI_CUSTOM_CONTAINER. For the first function call you can put a non-assigned reference in this field The function initialized the object and returns the reference. See example program DEMO_START_WD_IN_PLACE2 |
VIEWER |
X |
Reference to an instance of class CL_GUI_HTML_VIEWER. For the first function call you can put a non-assigned reference in this field The function initialized the object and returns the reference. See example program DEMO_START_WD_IN_PLACE2 |
The following programs are provided as examples of how WDY_EXECUTE_IN_PLACE is used in the SAP system:
● DEMO_START_WD_IN_PLACE1
Program for a simple call of the function module.
● DEMO_START_WD_IN_PLACE2
Program that shows how the example Web Dynpro applications, WDR_INPLACE_DEMO1 and WDR_INPLACE_DEMO2, can be called either in the same screen or in a separate screen, and how the values of SAP GUI fields can be transferred into Web-Dynpro ABAP applications.