Hi,
Path:::::Procurement and Sourcing > Common > Purchase Requisitions
Whenever we click on Purchase Requisitions button, one Prepare a new purchase requisition open, Automatically by default current legal entity will be shown the Buying Show Entity Field.
Please Find the below attachment, kindly help me.
Advance Thanks & Regards,
Yogananda Reddy
There is already code to update the field in \Forms\PurchReqCreate\Data Sources\PurchReqTable\Methods\initValue. But it is dependent on Project.
Thank you ,
But I need to show the current legal entity once click the purchase requisitions Button ,please help me
Based on the project, already the code is there, But I need to show the current legal entity once click the Purchase Requisitions button, not for project .
I wrote like this in PurchReqCreate Form/Data Source> Init()
purchReqTable.companyinfodefault = str2int64(CompanyInfo::FindRecId(CompanyInfo::current()).Dataarea);
Why cannot you just use the code from initValue?
yeah, I got answer, Thank you.