Hi All,
How to create Purchase requisition through X++?
regards,
MSDAXS
Hi All,
How to create Purchase requisition through X++?
regards,
MSDAXS
please give me some inputs…
Hi,
Can you please tell me how to create a Purchase request order through coding in X++ ??
Hi Thnakx for replaying but I need PRQ through Code …I had done this through code…
this is the code …to create PRQ
static void CreatePurchReqJob(Args _args)
{
PurchReqTable purchReqTable;
PurchReqLine purchReqLine;
ProjTable projTable = projTable::find(“XXXX”);
SalesLine salesLine = SalesLine::findInventTransId(“XXXXXXXXXX”);
purchReqTable.clear();
purchReqTable.initValue();
purchReqTable.PurchReqId = NumberSeq::newGetNum(PurchReqTable::numRefPurchReqId()).num();
purchReqTable.PurchReqName = “Testname”;
purchReqTable.ProjId = projTable.ProjId;
purchReqTable.ProjIdDataArea = projTable.dataAreaId;
purchReqTable.insert();
purchReqLine.clear();
purchReqLine.initValue();
purchReqLine.InventDimId = salesLine.InventDimId;
purchReqLine.initFromPurchReqTable(purchReqTable);
purchReqLine.ItemId = salesLine.ItemId;
purchReqLine.ActivityNumber = salesLine.ActivityNumber;
purchReqLine.BuyingLegalEntity = CompanyInfo::find().RecId;
purchReqLine.InventDimIdDataArea = salesLine.dataAreaId;
purchReqLine.initFromProjTable(projTable);
purchReqLine.insert();
info(purchReqTable.PurchReqId);
}
Thanks …