Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

How to call an URL from webdynpro abap screen

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.

What is singleton property in webdynpro abap


In Webdynpro ABAP singleton property is a very useful property of any context node, when there is parent node with a child node attached. Let's say you have a deep structure, where based on parent node entry you need several entries in the child node. Like a header and item table data concept. Now when you check on this singleton property in the parent node, the every time the parent node lead selection changes the child node will contain the data related to parent node lead selection entry only. This actually improve memory usage at run-time. E.g. For an airline company website you might have searched for a route's flight information. Now when you searched for a date, the list will display 4-5 entries with Airlines operating on that route. Now when your click on a particular Airline, then the flight schedule will display on screen. As soon as you change the Airline, the schedule will change. So here Airline companies are in parent node with singleton property checked, so when you clicked on them they just display the schedule of that Airline on that day.

Hope this will clear your doubts.

You might also like