D365FO – AX – Create Planned Transfer Order in X++

This is a simple job to create a planned Transfer order througth X++ static void PlannedTransferOrder(Args _args) {    ReqPo       ReqPo;    InventDim   inventDim;    InventDim   inventDimLocal;    ReqPlan                                 reqPlan;    ReqPlanData     reqPlanData;    ReqPlanId       reqPlanId = 'Piano Generale'; //Here you put your preferred ReqPlanId    reqPlanData = ReqPlanData::newReqPlanId(reqPlanId);    ReqPo.clear();    ReqPo.initValue();    ReqPo.initReqPOType(reqPlanData.parmReqPlanVersionRefRecId(),reqPoType::Transfer);    ReqPo.initFromItemId ("440440"); //Here you put your ItemId    ReqPo.Qty = 11; //Here you put your … Continua a leggere D365FO – AX – Create Planned Transfer Order in X++ →