Application Development and Automation 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: 
Read only

Error messages for BAPI

Former Member
0 Likes
939

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
Read only

GauthamV
Active Contributor
0 Likes
780

Use BAPIRET2 structure to capture error meesages in BAPI.

Read only

Former Member
0 Likes
780

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

Read only

Former Member
0 Likes
780

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.

Read only

Former Member
0 Likes
780

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