Skip to Content
avatar image
-1
Former Member

How to export the parameter after I raise a exception in Function module?

Hi Expert,

I want to raise an exception and export a parameter in the same time.But it seems the export parameter 'E_SERIAL' will be clean when I raise a exception.Is any way to achieve this?

capture.png (80.7 kB)
capture.png (14.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 17, 2017 at 05:54 AM

    If it is a RFM, no chance.

    If it is a normal function module make yourself knowledgable about passing parameters by reference and by value.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 17, 2017 at 08:23 AM

    Easy. Use a class based exception. It's one of the things they're for - giving context to the exception to enable more precise handling at higher levels.

    Add comment
    10|10000 characters needed characters exceeded