点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)专家您好, 我尝试覆盖发运单中...
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)专家您好, 我尝试覆盖发运单中...
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
专家您好,
我尝试覆盖"发运单"中的"发运地址",但收到消息"必须更改"。
导入ABSL; 导入AP.CRM.Global; //定义SalesOrder根节点 var elSalesOrder_Root:SalesOrder的元素; var instSalesOrder; //定义SalesOrder项目节点 var elSalesOrder_Item:SalesOrder.Item的元素; var instSalesOrder_Item; elSalesOrder_Root.Name.content ="传热专家"; elSalesOrder_Root.BuyerID.content ="检查"; //SalesOrder:创建新实例 instSalesOrder = SalesOrder.Create(elSalesOrder_Root); //帐户 instSalesOrder.Party.GetFirst()。RoleCode =" 1001"; instSalesOrder.Party.GetFirst()。PartyKey.PartyID.content =" CP100140"; var saveAccountData = instSalesOrder.Party.Create(); //处理发货至地址 if(instSalesOrder.ProductRecipientParty.AddressSnapshot.IsSet()) { var address = instSalesOrder.ProductRecipientParty.AddressSnapshot.PostalAddress.GetFirst(); address.CountryCode =" US"; address.RegionCode.content =" AK"; address.CityName =" CHARLOTTE"; address.StreetPostalCode =" 28269-0000"; address.StreetName =" 7777 STATESVILLE ROAD"; } 其他 { var address = instSalesOrder.ProductRecipientParty.AddressSnapshot.PostalAddress.Create(); address.RegionCode.content =" AK"; address.CityName =" CHARLOTTE"; address.StreetPostalCode =" 28269-0000"; address.StreetName =" 7777 STATESVILLE ROAD"; } //项目 elSalesOrder_Item.ID =" 1"; instSalesOrder_Item = instSalesOrder.Item.Create(elSalesOrder_Item); instSalesOrder_Item.ItemProduct.ProductKey.ProductID.content =" P100205"; 如果(instSalesOrder_Item.FirstRequestedItemScheduleLine.IsSet()){ //设置产品数量和UOM(如果未设置,则系统默认) instSalesOrder_Item.FirstRequestedItemScheduleLine.Quantity.content = 10; instSalesOrder_Item.FirstRequestedItemScheduleLine.Quantity.unitCode =" EA"; }其他{ instSalesOrder_Item.FirstRequestedItemScheduleLine.Create(); instSalesOrder_Item.FirstRequestedItemScheduleLine.Quantity.content = 10; instSalesOrder_Item.FirstRequestedItemScheduleLine.Quantity.unitCode =" EA"; } //折扣头 if(instSalesOrder.PriceAndTaxCalculation.MainDiscount.IsSet()) { var discount = instSalesOrder.PriceAndTaxCalculation.MainDiscount; discount.TypeCode.content =" 0007"; discount.Rate.DecimalValue = -20; discount.Rate.MeasureUnitCode =" P1"; } 其他 { var discount = instSalesOrder.PriceAndTaxCalculation.MainDiscount.Create(); discount.TypeCode.content =" 0007"; discount.Rate.DecimalValue = -20; discount.Rate.MeasureUnitCode =" P1"; } //充电头 if(instSalesOrder.PriceAndTaxCalculation.MainSurcharge.IsSet()) { var discount = instSalesOrder.PriceAndTaxCalculation.MainSurcharge; discount.TypeCode.content =" 7PR8"; discount.Rate.DecimalValue = 30; discount.Rate.CurrencyCode =" USD"; } 其他 { var discount = instSalesOrder.PriceAndTaxCalculation.MainSurcharge.Create(); discount.TypeCode.content =" 7PR8"; discount.Rate.DecimalValue = 30; discount.Rate.CurrencyCode =" USD"; }
当ABSL创建SO时,如何覆盖发运至销售订单的地址?
此致
Quyen
@ May Thitsa Oo ,霍斯特·肖德
你有什么主意吗?
谢谢
Quyen
一周热门 更多>