on 05-20-2014 6:22 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.