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

regarding bapi

Former Member
0 Likes
573

hi all ,

i would like to weather a bapi returns sy-subrc if not how does a calling programe knows that the bapi call has been completed sucessfully.

Thanks and regards,

kiran

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
549

Hello Kiran,

Most of the time BAPI will return you something which will indicate if successfull execution. It can be either in form of return parameter which will have structure BAPIRET1 or at times would return the document number etc. Let me know if you have come across any BAPI which doesn't return anything.

4 REPLIES 4
Read only

gopi_narendra
Active Contributor
0 Likes
549

BAPI does not return sy-subrc

u need to check the BAPIRET fro that BAPI.

Regards

- Gopi

Read only

Former Member
0 Likes
550

Hello Kiran,

Most of the time BAPI will return you something which will indicate if successfull execution. It can be either in form of return parameter which will have structure BAPIRET1 or at times would return the document number etc. Let me know if you have come across any BAPI which doesn't return anything.

Read only

0 Likes
549

check the return parameter of that BAPI...

Read only

Former Member
0 Likes
549

Hi Kiran,

The BAPI exports a parameter RETURN. This is a structure of type BAPIRETURN1. It will have a field TYPE. It will contain information whether the BAPI was successful or not. For e.x. S Success, E Error, W Warning, I Info, A Abort. It also has other fields like ID, NUMBER and MESSAGE which contains information on message id, message number and message text.

From this information you can identify whether the BAPI was successful or not and the exact message as well.

Regards,

Pulkit