How to Update Business Object at various contexts
Hi,
This document describes how to update a Business Object at various contexts, which includes the following:
within the BO,
within the DU,
outside the DU,
outside the Application.
Chapters mentioned could be opened from the link: http://help.sap.com/saphelpiis_studio_1602/studio_od_1602.pdf
Update Context | Description |
---|---|
Updating the Current BO |
Ex: As shown in the above diagram, BO1 updates itself. Where to update: How to update: This is applicable to all the BOs shown in the diagram, meaning |
Updating other BO in the same DU |
Ex: As shown in the above diagram BO2 updates BO3, both the BOs are in the same DU. Where to udate: we could use XML File input to upload data from XML into a BO, How to update: This is applicable to all the BOs in the diagram. Exception is: Foundation is the base DU. BOs in the Application DU can update BOs in the Foundation DU, where as the vice versa BO2, BO3, BO4, BO5 can all update BO1 this is because BO1 is in Foundation DU, Chapter: 7.2.4.7 Business Object Lifecycle (Business Logic) Chapter: 8.13.3.2 Create XML File Input |
Updating BO in other DU | Ex:As shown in the above diagram BO3 from DU1 updates BO4 in DU2
Where to update: How to update: This is applicable to the BO3 and BO4 in the diagram assuming there is an A2A defined Chapter: 8.13.3.1 Configure Internal Communication |
Updating BO outside the Application |
Ex: As shown in the above diagram BO3 is being updated from outside the application. Where to update: This can happen only via A2X webservice How to update: This is applicable to BO3 in the diagram assuming there is an A2X defined on the BO. Chapter: 8.14.5.1 Create a Web Service |
Thanks to Horst Schaude and Anant Ramesh Acharya for their feedback.
Thanks Pradeep for sharing this..
Hi Pradeep,
Thanks for your sharing document.
And then I want to know more about the use of “Configure Internal Communication”.
Because of, I tried "A2A" communication. Firstly, I tried the data creation from the data of
first custom BO to second custom BO by using the “Configure Internal Communication”, it was OK.
But I declare [DeploymentUnit(SupplierInvoicing)] at second custom BO, it was not OK.
Because I need to create "supplier invoice" from the data of second custom BO.
In the first custom BO the PO data is stored. So, I also declared
[DeploymentUnit(SupplierInvoicing)] at first custom BO. At this time, the PO data
can't store at first custom BO.
I think I will need somethings.
Thanks for your help!
Best Regards,
MyoMyo