cancel
Showing results for 
Search instead for 
Did you mean: 

Change the Default Value in an Standard SAP field

Former Member
0 Kudos

Hi,

Does anybody know a way to change the default value in ByD.

I have to change the Delivery Rule into "Single on-time delivery". Is it possible to do this. I have also the SDK.

Regards Manfred

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I want to add this code in a productive System.

How can I do this?

I tried to log in but i´m not able to create a Solution.

This is the issue:

But I have the administration role..

Regards manfred

Former Member
0 Kudos

Manfred,

Two things:

First, you can't create solutions in a Production tenant. They have to be created in Test and deployed to Production.

Second, make sure your development user has all the Work Center Views assigned in the "Partner Development" Work Center.

Former Member
0 Kudos

Thanks...

The WoC are assigned -

I wanted to download and assamble and download the solution but this issue is required:

Regards Manfred

Former Member
0 Kudos

Manfred,

You need to create a .BAC item. Look up "Business Adaptation Catalog" in the documentation.

Former Member
0 Kudos

Thanks...

This is the correct Topic:

5.4.1 Lifecycle Management for Customer-Specific Solutions on a

Customer's Test Tenant

Regards Manfred

Former Member
0 Kudos

Thanks for your help... GREAT Solution....

Regards Manfred