cancel
Showing results for 
Search instead for 
Did you mean: 

Error in the browser

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

mohammed_anzys
Contributor
0 Kudos

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

mohammed_anzys
Contributor
0 Kudos

in the function module there is no parameter called IN , its INPUT and OUTPUT but where as in your code you mentioned these as IN and OUT , which is wrong

Thanks

Anzy

Former Member
0 Kudos

Hi All,

Thanks a lot for your quick response. Now its working.

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.