cancel
Showing results for 
Search instead for 
Did you mean: 

Add price component to sales order

Jimmy1
Participant
0 Kudos

Hello

Can we add a price component to the sales pricing via development in BYD? In the sales order, we would like to add CDT - 7PRA - PR in the pricing automatically. The source would be a another object based on product category.

Ideally, the WS calculatepricein should also find 7PRA.

KR

Jimmy

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Jimmy,

Yes this is possible. Example code:

var lsPriceComponent : elementsof SalesOrder.PriceAndTaxCalculation.Item.ItemPriceComponent;

lsPriceComponent.TypeCode.content = "0009";
lsPriceComponent.Rate.BaseDecimalValue = 1;
lsPriceComponent.Rate.BaseMeasureUnitCode = "EA";
lsPriceComponent.Rate.CurrencyCode = "EUR";
lsPriceComponent.Rate.DecimalValue = 10;

this.PriceAndTaxCalculationItem.OperationalItemPriceComponent.Create(lsPriceComponent);

You would have to change some of the values here.

Answers (0)