cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

horst_keller
Product and Topic Expert
Product and Topic Expert

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.

matt
Active Contributor
0 Kudos

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.

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

In RFC?

matt
Active Contributor
0 Kudos

Did he say it was an RFC?

If it is, then perhaps use the BAPIRET approach.

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos
matt
Active Contributor
0 Kudos

Ah - who checks the tag?! 🙂