Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

EXIT_RETURN SWO_INVOKE goes wrong

Hello experts,

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.

Regards,

Marcel Schoenmakers

Tags:
replied

See note1696315 ...which is the first one mentioned in the note 1732734 given above...the coding correction may resolve your issue. Though the description is different!

See if this works for you

Regards,

Modak

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question