Hallo,
this is my situation.
I have built a custom method, which entails a Function Module. I have modeled the exceptions of my method to cater for the exception of the function module, by using 'exit_return'.
Now I would like to pass the exception message to the method container, in order to pass it on as text in the notification that i want to deliver later on in the process.
How would I do that? is this the correct way to transfer the exception message to the workflow?
Thank you in advance,
Regards,
Marco
Message was edited by: Marco Covino
Hi Marco,
You can have a workflow container element say Error of type bapiret1.
In your method, you can have a exporting paramter of same type as above.
After handling exception, use FM BALW_BAPIRETURN_GET1 and fill bapi return structure and populate export parameter of this FM.
Then in workflow step do binding for this paramter from method to container elemnt Error so that you will have error descriptionin workflow.
Hope this helps.
Regds,
Akshay Bhagwat
Note:Pls mark helpful answers..
Add a comment