‎2006 Nov 22 6:01 AM
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
‎2006 Nov 22 6:09 AM
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.
‎2006 Nov 22 6:05 AM
BAPI does not return sy-subrc
u need to check the BAPIRET fro that BAPI.
Regards
- Gopi
‎2006 Nov 22 6:09 AM
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.
‎2006 Nov 22 6:10 AM
‎2006 Nov 22 6:26 AM
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