Skip to Content

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

Chart2.PNG

Abbreviation3.PNG

Update Context Description
Updating the Current BO

Ex: As shown in the above diagram, BO1 updates itself.

Where to update:
This can happen at UI and at the events AfterModify and BeforeSave

How to update:
This.<BO element> = value;

This is applicable to all the BOs shown in the diagram, meaning
BO1, BO2, BO3, BO4 and BO5 could all be updated in their respective BO events

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:
This can happen at UI and at the events AfterModify and BeforeSave,

we could use XML File input to upload data from XML into a BO,
Also Process extension scenario could be defined.

How to update:
Obtain result from Retrieve and Query operations and update the result.

This is applicable to all the BOs in the diagram.
BO2 can update BO3 and BO3 can update BO2

Exception is:

Foundation is the base DU.

BOs in the Application DU can update BOs in the Foundation DU, where as the vice versa
is not allowed, that is BOs in Foundation DU cannot update BOs in Application DU.

BO2, BO3, BO4, BO5 can all update BO1 this is because BO1 is in Foundation DU,
BO in application DUs can update BO in Foundation.
But, the other way is not allowed, that is , BO1 cannot update BOs in application 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:
This can happen only via A2A

How to update:
Define A2A selecting source BO and target BO and mapp between these BOs

This is applicable to the BO3 and BO4 in the diagram assuming there is an A2A defined
between these two BOs.
Similarly other BOs could also update cross DO BO by defining A2A between the BOs

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:
Define A2X on a BO defining the operations to be exposed

This is applicable to BO3 in the diagram assuming there is an A2X defined on the BO.
Similarly other BOs could also be updated by defining A2X webservice on the BO.

Chapter: 8.14.5.1 Create a Web Service

Thanks to Horst Schaude and Anant Ramesh Acharya for their feedback.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply