on 01-11-2012 1:17 AM
Hello,
I created a WDA that into the event button (on click) call a function
DATA val1 TYPE I.
DATA val2 TYPE I.
DATA val3 TYPE I.
val1 = 12.
val2 = 13.
CALL FUNCTION 'ZGB_FUNC01'
EXPORTING
VAL_A = val1
VAL_B = val2
IMPORTING
VAL_C = val3.
The Function Module (ZGB_FUNC01) I tested preview in a program and this it is execute correctly. But when I use this call function in the WDA and execute the application from the browser show an exception:
The ABAP call stack was:
Method: ONACTIONGET_SUMA of program /1BCWDY/0O2TMLYG1PWHANJDK87W==CP
Method: ONACTIONGET_SUMA of program /1BCWDY/0O2TMLYG1PWHANJDK87W==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/0O2TMLYG1PWHANJDK87W==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_EVENTS 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_WDR_RUNTIME~EXECUTE of program CL_WDR_MAIN_TASK==============CP
I hope that you can help me.
Greetings.
--erva
Hi,
Execute the WDA Application once again, when it dumps, go to transaction ST22, Click on Runtime Errors. Double click on your Error in ALV, In the next screen under 'ABAP developer view ', double click on source code Extract. It will point to the error line with indicator >>>>>>>.
If it is at your Function module, check the parameter types. I guess it is due to not instatiating of your context node.
hope this helps u.,
revert back for any further clarifications,
Thanks & Regards,
Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kiran, thank you.
You are right. The error is it in the line of the Function Module and this FM isn't instantiating in the context node.
I don't instantiate the FM in the context node, because I want to use this FM for connect other system and using the wizard I can't to do this, so into the event button I added the CALL FUNCTION.
Is it correct?
--erva
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.