cancel
Showing results for 
Search instead for 
Did you mean: 

PROBLEM WITH PASSING PARAMETERS VIA URL ?

Former Member
0 Kudos

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

   ).

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi its solved thanks for all....

Answers (4)

Answers (4)

Former Member
0 Kudos

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..

Former Member
0 Kudos
RicardoRomero_1
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.