• ABAP Online Training @ $50

    Now you can learn ABAP by watching and listening video classes by experienced consultant.

  • ABAP Tutorials N Materials

    Read, Surf and Download useful ABAP tips, tutorials, code and download many eBooks and documents free

  • Latest ABAP Job in India

    Get all latest opening for SAP ABAP and related jobs, vaccancies across India and apply for the same.

    Thursday, May 24, 2012

    DATA:lv_url   TYPE string.

    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.

     

     

    * Get the URL of the called application

      CALL METHOD cl_wd_utilities=>construct_wd_url

        EXPORTING

          application_name = 'Name of WD application'

        IMPORTING

          out_absolute_url = lv_url.

     

     

    * Attach the parameters and its value with the URL that have to be passed to the 2nd application

     

      CALL METHOD cl_http_server=>append_field_url

        EXPORTING

          name  = 'Name of field'

          value = 'Value of that field'

        CHANGING

          url   = lv_url.

     

     

    * generate a popup window for the 2nd application with the above URL

      lo_api_component  = wd_this->wd_get_api( ).

     

      lo_window_manager = lo_api_component->get_window_manager( ).

     

      lo_window         = lo_window_manager->create_external_window(url = lv_url ).

     

    *Set the window size/ pop up window size

      lo_window->set_window_size( width = '1000' height = '600' ).

     

    *Open the WD application

      lo_window->open( ).


    0 comments:

    Post a Comment

    Easy2learnabap.co.in @ 2012 All product names on this web site are trademarks of the companies that own them .

    Easy2learnabap.co.in is not affiliated with SAP AG in any way. SAP AG is the registered trademark holder of SAP, SAP R/3, mySAP, ABAP, xApps, NetWeaver, and other proprietary terms.

    The technical information on this site is verified to the greatest extent possible, however, any information found on this site is used at the site visitor's own risk. All the tutorials are collected from various sources, if anyone is having problem with the content, report this to us. We will take action accordingly.

    Easy2learnabap.co.in reserves the right to correct any errors or omissions in any portion of this site at any time without obligation.

    This website is created to teach people about ABAP technology. The Video contents provided in Premium service are completely owned by us and copyrighted.