Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Re: Change the Default Value in an Standard SAP field

$
0
0

Hi Manfred,

 

In the PDI, please do the following:

 

 

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


Viewing all articles
Browse latest Browse all 8594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>