Calling the Url by Clicking Button

9
CALLING THE URL BY CLICKING BUTTON Step 1: Execute the T-code se80 and select the Web dynpro component/Intr Specify the application name as ZCLICK_URL Click on create u will get the prompt box as shown click on yes

description

Web Dynpro Calling the Url by Clicking Button

Transcript of Calling the Url by Clicking Button

Page 1: Calling the Url by Clicking Button

CALLING THE URL BY CLICKING BUTTON

Step 1: Execute the T-code se80 and select the Web dynpro component/Intr Specify the application name as ZCLICK_URL Click on create u will get the prompt box as shown click on yes

Page 2: Calling the Url by Clicking Button

STEP 2: Specify the description and save check and activate the application. Then u will see the screen as shown below

Page 3: Calling the Url by Clicking Button

STEP 3: Create the view for input / Navigation Purpose as shown below

STEP 4: By creating the view going to assign and input and output specify the name and description as follows

Page 4: Calling the Url by Clicking Button

STEP 5: After creating the main view you will navigate to the layout of the view as follows

Page 5: Calling the Url by Clicking Button

STEP 6: Right click on the ‘’ROOT CONTAINER ELEMENT’’ insert element .it will open a pop-up for creating an element

STEP 7: Specify button name and typ .Click on enter button has created as shown below

Page 6: Calling the Url by Clicking Button

STEP 8: In the text field property give the text as CLICK.

STEP 9: On action Button properties , click create action button name as generate_url and press enter.

Page 7: Calling the Url by Clicking Button

STEP 10: Then click on METHODS TAB you will get the generate events on method tab

STEP 11: Double click on the ONACTIONGENERATE_URL METHOD.

And write the codes .

method ONACTIONGENERATE_URL .    DATA : lo_window_manager TYPE REF TO if_wd_window_manager ." Creating the URL we use this CLASS  DATA : lo_api_component TYPE REF TO  if_wd_component. " Interface enables to acess the information an active web dynpro application.  DATA : lo_window        TYPE REF TO  if_wd_window . " Enables a pop-up to be opened or closed & edited    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            = 'http://www.google.co.in'*      TITLE          =*      MODAL          = ABAP_FALSE*      HAS_MENUBAR    = ABAP_TRUE*      IS_RESIZABLE   = ABAP_TRUE*      HAS_SCROLLBARS = ABAP_TRUE*      HAS_STATUSBAR  = ABAP_TRUE*      HAS_TOOLBAR    = ABAP_TRUE

Page 8: Calling the Url by Clicking Button

*      HAS_LOCATION   = ABAP_TRUE    receiving      window         = lo_window      .  lo_window->open( ).ENDMETHOD.

STEP 12: Create the web dynpro application for Execute the application

Step 13 ; Check Your Output……………………………….