How can we know whether a BAPI call is successful?

How can we know whether a BAPI call is successful?

How can we know whether BAPI call is successful?

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

If no exception was thrown, then look at the standard 'Return' parameter that every BAPI should have. Mostly, this is a structure parameter. If field TYPE contains 'S' or an empty string then the BAPI call was okay. Note that sometimes the 'Return' parameter is a table, in which case you must check each table row for an error. If the table is totally empty, all is well.

This was first published in December 2003