Hi Manfred,
In the PDI, please do the following:
- Create a new Business Object Extension for the BO "Service Order", Namespace "http://sap,com/xi/AP/CRM/Global"
- Add a Flag "Initialized" to the Item Node:
import AP.Common.GDT;
import AP.CRM.Global;
[Extension] businessobject AP.CRM.Global:ServiceOrder
{
node Item {
element Initialized : Indicator = false;
}
}
- Add an "AfterModify"-Event to the ItemDeliveryTerms node and set the field "PartialDeliveryCode":
import ABSL;
var SINGLE_ONE_TIME_DELIVERY_CODE = "2";
// only overwrite if it has already been defaulted but not by us
if (!this.PartialDeliveryControlCode.IsInitial() && !this.ToParent.Initialized) {
this.PartialDeliveryControlCode = SINGLE_ONE_TIME_DELIVERY_CODE;
this.ToParent.Initialized = true;
}
Please note that settings at Customer and Service Execution Team might overwrite this defaulted value by some other logic. If this is the case, it might be helpful to get additional feedback from the gurus in the CRM/SRM forums how to set the partial delivery code.
Best regards,
Ludger Bünger