Skip to Content

Call url of my web dynpro from a zprogram se38.

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 21, 2015 at 01:08 PM

    Hi Ronaldo,

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

    Regards,

    aneesh

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 22, 2015 at 12:57 AM

    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+application

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 26, 2015 at 01:29 PM

    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

    Add comment
    10|10000 characters needed characters exceeded