on ‎2010 Jan 13 4:42 PM
Hi All,
Can I call Transaction code in Webdynpro ABAP Portal Application. If so, how can this be possible? Can anybody give me a lead?
Thanks.
Kumar Saurav.
Request clarification before answering.
Hi
You can you the below code to call a T code from webdynpro ABAP:
1: Call below method to get host, port and protocol
cl_http_server=>if_http_server~get_location
2: concatenate protocol '://' host ':' port '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction='your tcode name' into url
3: get the window manager as we are opening t code in external window.
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
4: Call the url which we created above
lo_window_manager->create_external_window(
EXPORTING
url = url
RECEIVING
window = lo_window ).
The T code will be executed using the integrated ITS
Thanks
Vishal kapoor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
We are calling a transaction through webdynpro using this URL which you mentioned in your comment.
we have passed the parameters to skip initial screen.
This was working fine before upgrade. Now we have upgraded system ehp7. here in new system, the same transaction is getting opened up with selection screen and prepopulated fields which we are passing from the webdynpro. What could have changed or do we need to do some settings to skip initial screen?
Thanks,
Seema
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.