EXIT_RETURN SWO_INVOKE goes wrong
We have a problem here regarding error handling when calling a methode via SWO_INVOKE in the workflow. When the method is called, a version of DECISION, we do an 'EXIT_RETURN 9002' in that method. This goes correctly and the system returns to method EXECUTE_METHOD_BOR from class CL_SWF_UTL_RUN_SERVICES.
On development and test this goes without a hitch, but on production we get the problem that the errorcode 9002 is not processed correctly.
When SWO_INVOKE has been called, it returns with the error code in LS_RETURN.
But the entry of LS_RETURN in production is different from development/test. In development/test LS_RETURN is filled correctly.
But in production LS_RETURN is filled like below which means that the error handling goes wrong. The coding and the workarea are filled with SAP standard, and not with the code/workarea I need. The errorcode 9002 is now a variable, and not the code itself.
Does anybody have any idea what might cause this difference? The settings of the tasks (exception settings for instance) are the same on all systems. I've been looking in SPRO for a setting but can't find anything there.