Skip to Content
author's profile photo Former Member
Former Member

How to pass an exception message to the method container?

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

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 05:36 AM

    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 comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 10:28 AM

    Hi Marco,

    I think Akshay said right, After getting the error message to WORKFLOW, we used to send the error message as MAIL to WORKFLOW ADMINISTRATOR informing the kind of error.

    Regards,

    <i><b>Raja Sekhar</b></i>

    Add comment
    10|10000 characters needed characters exceeded