As displayed in the below image you can find the Update Behavior of Fields in the End Routine button next to the End Routine button in your Transformation.
When you click on the button you would get the below two options as displayed in the image below.
You can only set this indicator for standard DataStore objects and master data attributes.
Significance of the “Update Behavior of End Routine” Button
Using this function, you can change the update behavior of fields in the end routine of a standard Data Store object or master data attribute.
Depending on the scenario in question, it may be useful to update all target fields or only target fields with an active rule:
- Only Target Fields with Active Rule (Default)
This setting is especially useful if various fields of a data record have to be filled from different sources. In this case, updating all the fields would overwrite the fields (with the initial value of each data field) which were loaded exclusively from the initial source.
- All Target Fields (independent of Active Rules)
This setting is always useful for filling fields in the end routine. If this setting is chosen, the filled fields in the end routine are retained and are not lost.
Caution: If only the key fields are updated for master data attributes,
all the attributes are initialized anyway, whatever the settings described here. For more information, see SAP Note 1096307.
Example for better Understanding
The following two charts show, using a simple scenario, how the two setting variants for the update behavior affect the way a data record in a standard DataStore object is refreshed. Here a target field is filled using an end routine.
Only Target Fields with Active Rule (Default)
All Target Fields (independent of Active Rules)