on 05-21-2012 7:57 AM
HI ...
I Want to pass parameters via url from one application to another application..but while im debugging i came to know that paramaters are not getting in second application..
this is the code in second application..
DATA : LV_PARAM TYPE STRING.
data : lv_matnr type matnr.
LV_PARAM = WDR_TASK=>CLIENT_WINDOW->GET_PARAMETER('MATNR').
DATA lo_nd_vbap TYPE REF TO if_wd_context_node.
DATA lt_vbap TYPE wd_this->Elements_vbap.
* navigate from <CONTEXT> to <VBAP> via lead selection
lo_nd_vbap = wd_context->get_child_node( name = wd_this->wdctx_vbap ).
SELECT * FROM VBAP INTO CORRESPONDING FIELDS OF TABLE LT_VBAP WHERE MATNR = LV_PARAM.
LO_ND_VBAP->BIND_TABLE(
exporting
NEW_ITEMS = LT_VBAP
).
hi its solved thanks for all....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi thanks for all...
but my issue is not solved...
for getting parameter i used WDR_TASK=>CLIENT_WINDOW->GET_PARAMETER.
but im not able to read the parameters..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Fallow below link...
http://wiki.sdn.sap.com/wiki/display/WDABAP/How+to+read+URL+parameters+in+Web+Dynpro+for+ABAP
Regards,
venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Add the parameters you want within the method HandleDefault of your main Window, then you can add these parameters in your application using the matchcode.
In this way, you don't need to use the method WDR_TASK=>CLIENT_WINDOW->GET_PARAMETER for read the parameters.
Regards,
Ricardo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To read the URL parameters, you need to right the following code in the HANDLEDEFAULT method
of the your default window controller.
DATA : it_parameter TYPE tihttpnvp.
DATA lo_nd_url_param TYPE REF TO if_wd_context_node.
" Get all URL parameters
CALL METHOD wdevent->get_data
EXPORTING name = if_wd_application=>all_url_parameters
IMPORTING value = it_parameter.
Radhika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.