cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Navigation 'do_dynamic_navigation' plug_parameter problem

varunride
Explorer
0 Kudos

Hi,

Scenario : Navigate value from one webdynpro component to another component.

I am using below process to navigate from one to another and it is working fine but how to use plug_parameter.


       lv_nav_serv->do_dynamic_navigation(

       source_window_name           = 'Z1'

       source_vusage_name            = 'L1'

       source_plug_name                = 'MAIN'

       plug_parameters                = plug_parameter

       target_component_name       = 'Z'

       target_component_usage      = 'Z'

       target_view_name                 = 'Z'

       target_plug_name                 = 'MAIN'

*     TARGET_EMBEDDING_POSITION = TARGET_EMBEDDING_POSITION

          ).

Can anyone suggest how to pass value from one webdynpro application to another by using this process.

Thanks & Regards,

Varun

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member197475
Active Contributor
0 Kudos

Hello Varun,

Are you passing single value or multiple values?

Guess you can better pass values using singleton class. Hope it will be an easiest method.

Please check it here -

BR,

RAM.

former_member184578
Active Contributor
0 Kudos

Hi,

You need to populate the parameter and value pair and pass it dynamically.

DATA: lt_plug_params TYPE wdr_event_parameter_list,

      ls_plug_params TYPE wdr_event_parameter.

ls_plug_params-name = 'NAME'.

ls_plug_params-value = lv_value.

INSERT ls_plug_params INTO TABLE lt_plug_params. 

now pass lt_plug_params to the parameter dynamically.

Regards,

Kiran

varunride
Explorer
0 Kudos

Hi Kiran, Thanks for your reply. I used this but now how to retrieve value at destination. I passed value from source but at destination how to reterive that plug_parameter value. Thanks & Regards, Varun

ramakrishnappa
Active Contributor
0 Kudos

Hi Varun,


varun khandelwal wrote:


I used this but now how to retrieve value at destination. I passed value from source but at destination how to reterive that plug_parameter value.

The plug parameters which are passed to the target component should be defined as parameters in the inbound plug of view in target component.

i.e. if we are passing PERNR to the plug, in component Z, inbound plug should have the parameter defined PERNR, so you get the PERNR value passed form source.

Hope this helps you.

Regards,

Rama

varunride
Explorer
0 Kudos

Hi Rama,

Thanks for your reply.

As per your suggestion i tried below steps at destination but it is giving me NULL error.

data: zclass type ref to cl_wd_custom_event.

data: plug_parameter type wdr_event_parameter_list.
   call method zclass->get_data
     exporting
       name = 'Z'
    importing
      value  = plug_parameter[].



Thanks & Regards,

Varun


ramakrishnappa
Active Contributor
0 Kudos

Hi Varun,

I am not sure what the ZCLASS->get_data does. But, the parameters should be received in the WDEVENT inside the plug of target window.

Example:

   DATA LV_PERNR TYPE PERNR_D.

   WDEVENT->GET_DATA( EXPORTING NAME = 'PERNR' IMPORTING VALUE = LV_PERNR ).


Here, the plug parameter PERNR is passed from dynamic naviagation.

Regards,

Rama

Message was edited by: Ramakrishnappa Gangappa