Dear All,
We have some Purchase Requisitions which were approved but not generated into a Purchase Order. (The budget check is red).
I want to create PO from PurchReqCreatePurchListPage form couldn't find the related PurchReq (I cleared all filters). The form is empty. I also clicked “View distributions" on the Financial Tab but it didn't solve the problem.
I decided to make it by calling "PurchReqCreatePurch_Action" menuItem from code side but I am getting error. Below is the code:
static void SYK_GeneratePurchOrderFromPurchReq()
{
Args args = new Args();
PurchReqLine purchReqLine;
select firstonly purchReqLine where purchReqLine.PurchReqTable == 5637168454 ;
if(purchReqLine)
{
args.record(purchReqLine);
}
MenuFunction menuFunction = new MenuFunction(menuItemActionStr(PurchReqCreatePurch_Action(args)), MenuItemType::Action);
}
I appreciate all your supports and suggestions for above issue, thanks.
Omer Ferhat Hancer
static void SYK_GeneratePurchOrderFromPurchReq()
{
Args args = new Args();
PurchReqLine purchReqLine;
select firstonly purchReqLine where purchReqLine.PurchReqTable == 5637168454 ;
if(purchReqLine)
{
args.record(purchReqLine);
}
MenuFunction menuFunction = new MenuFunction(menuItemActionStr(PurchReqCreatePurch_Action(args)), MenuItemType::Action);
}