I have a custom BO, let's call it Librarian. Has usual fields like ID, names, date of birth etc. On creation of an instance of Librarian, I want to create an instance of standard BO BusinessPartner in the background. The challenge is to handle failures and errors in this background creation.
i) how do I know if creation of business partner fails?
ii) how can I meaningfully propagate any errors raised from the business partner creation?
Rohan you may find the attached file useful I used it to create a supplier record from a shadow business object, so it sounds very similar to your business requirement.