on 06-14-2007 9:26 PM
Hi gurus,
Here is the code. I have given the error at the bottom. Please have a look and suggest me how to fix this.
method ONACTIONCLICK .
data:
Node_Adobe_Data type ref to If_Wd_Context_Node,
Elem_Adobe_Data type ref to If_Wd_Context_Element,
Stru_Adobe_Data type If_Z_Test3_View=>Element_Adobe_Data .
navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
Node_Adobe_Data = wd_Context->get_Child_Node( Name = IF_Z_TEST3_VIEW=>wdctx_Adobe_Data ).
get element via lead selection
Elem_Adobe_Data = Node_Adobe_Data->get_Element( ).
data:
Item_IN like Stru_Adobe_Data-IN.
data:
Item_OUT like Stru_Adobe_Data-OUT.
get single attribute
Elem_Adobe_Data->get_Attribute(
exporting
Name = `IN`
importing
Value = Item_In ).
call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
exporting
in = ITEM_IN
importing
out = Item_out.
navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
Node_Adobe_Data = wd_Context->get_Child_Node( Name = IF_Z_TEST3_VIEW=>wdctx_Adobe_Data ).
get element via lead selection
Elem_Adobe_Data = Node_Adobe_Data->get_Element( ).
get single attribute
Elem_Adobe_Data->set_Attribute(
exporting
Name = `OUT`
Value = Item_Out ).
endmethod.
-
The error in the browser is:
Note
The following error text was processed in the system SMT : Function parameter "IN" is unknown.
The error occurred on the application server MD1AS086_SMT_01 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: ONACTIONCLICK of program /1BCWDY/8ZTW4TLW2H1HI865VH9F==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/8ZTW4TLW2H1HI865VH9F==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
========================================================
There are no syntax errors. Actually here IN is my attribute name. I also tried by declaring as DATA: IN type numc10. Still same problem. Please fix it.
Hi
The function parameters are wrong,
FUNCTION CONVERSION_EXIT_ALPHA_OUTPUT.
*"----
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(INPUT) TYPE CLIKE
*" EXPORTING
*" VALUE(OUTPUT) TYPE CLIKE
*"----
Thanks
Anzy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
The parameters of the function module CONVERSION_EXIT_ALPHA_OUTPUT are input and output, not in and out as you have specified.
Did you use the pattern feature to generate the function call?
Regards,
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you debug your program and see on which line exactly you get the dump. Is it when you pull down the data from the context attribute or when calling the CONVERSION_EXIT_ALPHA_OUTPUT function?
I guess your 'IN' context element is binded to an entry field, make sure it's not empty when you're running your WD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.