Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error messages for BAPI

Former Member
0 Kudos

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

4 REPLIES 4

GauthamV
Active Contributor
0 Kudos

Use BAPIRET2 structure to capture error meesages in BAPI.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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