BAPIs with bad return codes

We are in the process of implementing the SAP Business Connector for order create, inventory movements and physical inventory counts using BAPI's. If the BAPI has a bad return code, we want to send the transaction to workflow. Is there a function module that we call to get this work item started? Will it be started from the BAPI or the Business Connector? Any help you can provide would be much appreciated.


    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.

Glad you enjoyed the conference. I was just happy for an excuse to go to Vegas!

I discussed your question with a colleague of mine (thanks Craig!) If the BAPI is being called synchronously from the Business Connector then you should display the error message back to the User. This is not a preferable solution, as the BAPI will not always issue nice error messages that are easy to understand.

What would be preferable is for you to kick off an IDOC from the Business Connector. This would be an asynchronous approach. You could then configure SAP to kick off a Workflow that would process the IDOC. If any errors occur then an Item can be sent to an Administrator.


This was first published in April 2002