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

Update Function module - How to provide detailed messages in case of errors

Hello everyone,

I am using update function modules. When there is a error, the Message i provide goes to inbox and i get a express message.

I am looking for ways to provide detailed messages (multiple lines) and i also need to add the error message returned by the BAPI

Providing a long text for the MESSAGE also does not work.

How can i achieve this ?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 22, 2011 at 03:39 AM

    Hi,

    The express message is because the update functions executes in background.

    You can view the detail messages of updates [Error Information from Update Management|http://help.sap.com/saphelp_nw04/helpdata/en/e5/de874735cd11d3acb00000e83539c3/content.htm]

    For your requirement have alook at [Application Log and Application-Specific Error Tables|http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm]

    There are some functions avaibale for this and is mentioned in the document.

    Keshav

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2011 at 03:55 AM

    Hi ,

    try something like this...

    TRY.

    UPDATE (table)

    SET (set_expr)

    WHERE (condition).

    CATCH cx_sy_dynamic_osql_error.

    MESSAGE `Error in update!` TYPE 'I'.

    ENDTRY.

    regards

    Prabhu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.