cancel
Showing results for 
Search instead for 
Did you mean: 

Call url of my web dynpro from a zprogram se38.

ronaldo_aparecido
Contributor
0 Kudos

Hi guys

do you have any example or tutorial to  Call url of my web dynpro from a zprogram se38.?

I need that user insert the transaction and open the IE browser with my program web dynpro directly.

thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Try below code.

Data:

    EV_URL    Type    STRING.


CALL METHOD cl_wd_utilities=>construct_wd_url

    EXPORTING

      application_name              = iv_wd_application

      in_parameters                 = it_parameter

    IMPORTING

      out_absolute_url              = ev_url.



"Open browser

      CALL METHOD cl_gui_frontend_services=>execute

        EXPORTING

          document               = ev_url

        EXCEPTIONS

          cntl_error             = 1

          error_no_gui           = 2

          bad_parameter          = 3

          file_not_found         = 4

          path_not_found         = 5

          file_extension_unknown = 6

          error_execute_failed   = 7

          synchronous_failed     = 8

          not_supported_by_gui   = 9

          others                 = 10.

      if sy-subrc <> 0.

*       implement suitable error handling here

      endif.

Thanks

KH

former_member184578
Active Contributor
0 Kudos

Hi,

You can create transaction for WDA using parameter transaction for WDYID. Check this wiki for reference: http://wiki.scn.sap.com/wiki/display/WDABAP/How+to+Create+a+transaction+code+for+webdynpro+applicati...

Alternately, you can call WDA from ABAP Report, using below code:

*   Get Web Dynpro Appplication URL

      CALL METHOD cl_wd_utilities=>construct_wd_url

        EXPORTING

          application_name              = 'ZWD_APPL_NAME' " Application Name

        IMPORTING

          out_absolute_url              =  lv_url.

*   Call Web Dynpro Application

      CALL METHOD cl_gui_frontend_services=>execute

        EXPORTING

          document               =  lv_url .

Regards,

Kiran

0 Kudos

Hi Ronaldo,

Assign transaction code for your webdynpro application and using call transaction you can access webdynpro from zprogram.

Regards,

aneesh