on 08-12-2013 7:57 PM
Hi,
I am new to Dynpro and need some help on one of the business requirements.
The requirement is to call a transaction code in ECC when the user clicks on a button on a web page( Non SAP). Apart from calling the transaction I also need to pass on the values from the web page to the called transaction. Once the user is in ECC system the values need to be passed onto the first screen of the t code without which he cannot move onto the next screen. When user hits enter after filling the values on first screen the next page opens up and the remaining values need to be passed in this screen.
Thanks for your help and support.
Thanks,
Anuj
Hi Srivastava,
You can insert IFrame UI element into view and bind attribute of type string into SOURCE.
And assign URL in to attribute like
lv_url = 'http://' lv_host ':' lv_port '/sap/bc/gui/sap/its/webgui?~transaction='
ev_tcode.
where lv_host = server name ex. s10a2.domain.com
lv_port = server port no ex. 8002
ev_tocode = your tcode to display.
Regards,
Ragavendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anuj,
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
Refer following link.It will give you an idea.
http://www.****************/Tutorials/WebDynproABAP/TransactionCode/Index.htm
http://www.****************/Tutorials/WebDynproABAP/SAPGUI/Index.htm
http://scn.sap.com/message/14260268#14260268
Thanks
Katrice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.