on 03-06-2017 8:21 AM
Hi experts,
In BYD system, in "Quality Control","Change of Stock", at 2nd step, I change the status, as:
These is the Manual way, now I want to change the status using absl in studio.
How can I do? Or maybe someone can tell me the reference.
Thanks a lot.
Benny
Hi experts,
Thanks a lot, I had finish the issue, with the code:
var newBO = GoodsAndActivityConfirmation.Create();
newBO.TransactionDateTime = GlobalDateTime.ParseFromString(ls_datetime);
var itemData : elementsof GoodsAndActivityConfirmation.InventoryChangeItem;
itemData.InventoryChangeReasonCode = "7";
itemData.InventoryItemChange.IdentifiedStockInventorySeparatingValues.IdentifiedStockKey.ID.content = "";
itemData.InventoryItemChange.MainInventorySeparatingValues.InventoryRestrictedUseIndicator = false;
itemData.InventoryItemChange.MainInventorySeparatingValues.MaterialKey.ProductID.content = "0000000000000000000000000000405307020002";
itemData.InventoryItemChange.MainInventorySeparatingValues.SupplyPlanningAreaID.content = "72990000";
itemData.InventoryItemChange.MainInventorySeparatingValues.OwnerPartyID = "0001000000";
itemData.InventoryLocation.LogisticsAreaKey.ID = "3010";
itemData.InventoryLocation.LogisticsAreaKey.SiteID.content = "72990000";
itemData.InventoryMovementDirectionCode = "1";
itemData.LogisticsDeviationReasonCode.content = "007";
itemData.TransferGroupID = "30";
itemData.TypeCode = "11";
var newItem = newBO.InventoryChangeItem.Create(itemData);
var itemquantity : elementsof GoodsAndActivityConfirmation.InventoryChangeItem.InventoryItemChangeQuantity;
itemquantity.Quantity.content = 10;
itemquantity.Quantity.unitCode = "EA";
newItem.InventoryItemChangeQuantity.Create(itemquantity);
//接收
var itemData01 : elementsof GoodsAndActivityConfirmation.InventoryChangeItem;
itemData01.InventoryChangeReasonCode = "7";
itemData01.InventoryItemChange.IdentifiedStockInventorySeparatingValues.IdentifiedStockKey.ID.content = "";
itemData01.InventoryItemChange.MainInventorySeparatingValues.InventoryRestrictedUseIndicator = true;
itemData01.InventoryItemChange.MainInventorySeparatingValues.MaterialKey.ProductID.content = "0000000000000000000000000000405307020002";
itemData01.InventoryItemChange.MainInventorySeparatingValues.SupplyPlanningAreaID.content = "72990000";
itemData01.InventoryItemChange.MainInventorySeparatingValues.OwnerPartyID = "0001000000";
itemData01.InventoryLocation.LogisticsAreaKey.ID = "3010";
itemData01.InventoryLocation.LogisticsAreaKey.SiteID.content = "72990000";
itemData01.InventoryMovementDirectionCode = "2";
//itemData.LogisticsDeviationReasonCode.content = "007";
itemData01.TransferGroupID = "30";
itemData01.TypeCode = "11";
var newItem01 = newBO.InventoryChangeItem.Create(itemData01);
var itemquantity01 : elementsof GoodsAndActivityConfirmation.InventoryChangeItem.InventoryItemChangeQuantity;
itemquantity01.Quantity.content = 10;
itemquantity01.Quantity.unitCode = "EA";
newItem01.InventoryItemChangeQuantity.Create(itemquantity01);
Best Regards,
Benny huang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi experts,
Who can give me some advice, I am urgent, my email:huangb.mmsh@sinopec.com, thanks a lot.
Best regards,
Benny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.