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

Error messages for BAPI

Hello,

Is there any way to get list of all possible error messages in BAPI for BAPI_PO_CREATE1 and BAPI_SAG_CREATE?

I need to prepare check list of all possible error messages BAPI can return while creating PO and Schedulling agreement using BAPI.

Thanks in advance.

Madhura

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Mar 17, 2009 at 04:32 AM

    Use BAPIRET2 structure to capture error meesages in BAPI.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2009 at 04:34 AM

    Try checking the message class used inside BAPI_PO_Create and all the messages in ME21n .

    Then you will need to go to this message class and find out al the messages.

    But this can go for a long list from 'error for valid vendor numbers, materials , and all the fields etc

    Mathews

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2009 at 05:24 AM

    Hi,

    Use table BAPIRET2 to get the error messages, when you are using BAPI as RFC you will not get return parameters. You have to call it in synchronous task and wait till the BAPI returns and catch the errors.

    Thanks,

    Asit Purbey.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2009 at 04:28 PM

    Thanks, I found out the solution by looking into message class for BAPI.

    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.