Tuesday, January 14, 2014

Create plannedTransferOrder through X++

static void PlannedTransferOrder(Args _args)
{
    ReqPo       ReqPo;
    InventDim   InventDim;
    ;
    ReqPo.clear();
    ReqPo.initValue();
    ReqPo.ReqPlanId = "Master plan Id";
    ReqPo.RefType = ReqRefType::TransferPlannedOrder;
    ReqPo.ItemId = "ItemNumber";
    ReqPo.Qty = Qty;
    ReqPo.insertFromForm(inventDim,"10000088","10000113");
}

No comments: