Opening SAP Transaction Code in SAP GUI Window from WebDynpro through URL (Transactional iView) (Web Dynpro for ABAP)


  1. To preview the transaction iView created, right click on the iView and choose Preview.  

  1. Copy the URL  

To create Transaction iView:  

  1. Create one WebDynpro Application ‘ZWD_WINDOW_URL’

  1. In the layout of the view V_MAIN, create a element “LINK_TO_ACTION” with ID as LINK.


  1. Give the Text as “Display Work Order” and Click on the On Action Create button and give the Action Name as LINK.

Hint: The detail are marked in RED what to be clicked and entered.

  1. Go the Method Tab and write the below Code in the method “ONACTIONLINK”  

METHOD onactionlink.
  DATA: lo_window_manager TYPE REF TO if_wd_window_manager,
        lo_api_component  TYPE REF TO if_wd_component,
        lo_window         TYPE REF TO if_wd_window,
        lv_workorder      TYPE aufnr VALUE '0060105926',
        lv_url            TYPE string.
lo_api_component = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).
* We have to Concatenate the URL as we cannot pass more than 255 Character as a * string.
CONCATENATE  'http://d://<SERVERNAME>::50000/irj/servlet/prt/portal/prtmode/preview/'
         INTO lv_url.
      url = lv_url
      window = lo_window ).
  lo_window->open( ).

Hint: If you want to skip the first screen, then we have to add the above marked code in the link to pass the screen value and skip the first screen.  

'ApplicationParameter=CAUFVD-AUFNR=' è Screen Field name on the Selection Screen.

lv_workorder è The Value to be passed to the selection Screen

'&OkCode=/00&' è Sy-Ucomm value for the screen when press enter.  

  1. Create a Web Dynpro application for your Web Dynpro component:  


  1. Test your Web Dynpro application.

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image