cancel
Showing results for 
Search instead for 
Did you mean: 

problem in construct_url and firing outbound plug data passing

Former Member
0 Kudos

Fnds,

I have been posting this but no one was able to help me specifically.

I am calling other WDA2 from WDA1.. i used construct_url, and called the outbound plug which is type suspend.

so wda2 is opening in same browser. .good.

but i want to send a value to the URL .. basically i can see parameter in outbound plug as url..

but how to pass the value to URL..

and in WDA2, how to read this value... pls plsssssss..

i know its simple, but i need some sampel code or example which reads this value of URL.

kindly help me..

Niraja

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nirja,

You must have done this coding to call WDA2.


  DATA lv_url TYPE string.

  CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = 'ZWDA2'
    IMPORTING
      out_absolute_url = lv_url.

  CONCATENATE lv_url '?sap-client=' sy-mandt '&sap-language=' sy-langu '&PARAM1=' <P1> '&PARAM2=X'
  INTO        lv_url.

  wd_this->fire_out_plg( url = lv_url ).

here out is suspend plug of WDA1.

now here is the code u need to do the coding in HANDLEDEFAULT method of default window of WDA2 to get the parameter passed by WDA1.


  DATA ls_url TYPE LINE OF tihttpnvp.
  DATA lt_url TYPE tihttpnvp.

  wdevent->get_data(
  EXPORTING
    name = if_wd_application=>all_url_parameters
  IMPORTING
    value = lt_url ).

  LOOP AT lt_url INTO ls_url .
    CASE ls_url-name.
      WHEN 'PARAM1'.
        <your logic to handle value of param1
      WHEN 'PARAM2'.
        <your logic to handle value of param2
      WHEN OTHERS.
    ENDCASE.
  ENDLOOP.

moreover you need to fire simpel exit plug in WDA2 to get back to WDA1. And obviously you will have to define resume plug in WDA1.

Hope you will be having enough clarification.

-Haresh

Edited by: Khandal Haresh on Nov 7, 2008 5:00 AM

Former Member
0 Kudos

Thanks Khandal,

I will try that .

I appreciate your clear mentioning with an example.

Niraja

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Neeraja,

Go through this code snippet written by me to navigate to other application using suspend plug of window.

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/snipppets%2b%2bweb%2bdynpro%2babap-%2bho...