on 01-25-2013 11:24 AM
Hi,
In my WDC I have 2 views , I am passing data from one view to another view using parameters in plug and inbound method of 2nd view.
In Debugging I can see data passing when plug navigation is done.
I am able to receive any data in inbound method of other view.
If the parameter is not optional it leads to run time error CX_WD_BAD_ARGS.
following is the error description.
*=======================
method handlefrom_first.
*=======================
" typecasting from generic to specific arguments
* data declaration
data:
!wdevent like !event.
field-symbols:
<cur_param> type wdr_event_parameter.
wdevent = event.
" optional parameter im_matnr
data:
!im_matnr type matnr .
read table event->parameters[]
with table key name = `IM_MATNR` assigning <cur_param>.
if ( 0 eq sy-subrc ).
---> " Cx_Sy_Conversion or similar issues may occur
" but this is caused by the invocing party !!!
f_internal_api->assign_untyped_reference(
exporting !data_ref = <cur_param>-value
importing !data = !im_matnr ).
endif.
me->f_appl_class->handlefrom_first(
!im_matnr = !im_matnr.
Thanks in advance
Ravindranath Reddy
please paste sceen shot of plugs you have created with parameter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.