Some days ago a customer required that all Web Dynpro Applications developed by our company was accessible via SAPGUI. So searching in SDN i found the function WDY_EXECUTE_IN_PLACE.
Creating the program
Go to the Object Navigator (SE80) and create a new program.
Now in the created program, add the following include programs:
GUI status and title
Create a GUI Status like follows:
And a GUI Title:
Global declarations and variables
Add the following code the MZWDA_INPLACETOP include:
Creating the screen
Now create a screen:
Screen elements attributes
- Text Field:
- Input Output Field:
- Custom Control:
Screen element list
Screen flow logic
The screen flow logic code is:
PBO modules logic
PAI module logic
Include MZWDA_INPLACEF01 logic
Now it’s necessary to activate all objects and create a transaction like follows:
This blog was based on the SAP programs DEMO_START_WD_IN_PLACE1 and DEMO_START_WD_IN_PLACE2.
And you can get more information about the function module WDY_EXECUTE_IN_PLACE in the SAP Help Documentation.