• 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.

    Wednesday, December 5, 2012

    Calling an URL is nothing but hyper linking some text to an external link or website. This feature can be achieved in Webdynpro ABAP very easily. Simply create an Webdynpro ABAP application and insert a button or text in the screen. Now for that text or button create an on-click method.

    In that method put the below code.


    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( ).

    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW EXPORTING URL = ' Enter Website Address Here' MODAL = ABAP_FALSE HAS_MENUBAR = ABAP_TRUE IS_RESIZABLE = ABAP_TRUE HAS_SCROLLBARS = ABAP_TRUE HAS_STATUSBAR = ABAP_TRUE HAS_TOOLBAR = ABAP_TRUE HAS_LOCATION = ABAP_TRUE RECEIVING WINDOW = lo_window.

    lo_window->open( ). 

    Now activate your application and then test. You can see the text of button on the screen, as soon as you click on that button or text your given website will open in a new window. 

    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.