on 11-07-2008 1:38 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neeraja,
Go through this code snippet written by me to navigate to other application using suspend plug of window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.