Notifications
Announcements
No record found.
Hi,
I have a requirement, where I need to write a code to check whether a reference has a number sequence code or not in general ledger parameters-> number sequences for all the Legal entities.
can anyone help me with this.
Thanks,
Nithin.
You can call LedgerParamer::numRef* methods.
In order to check it in all companies, you can iterate DataArea table, and run changeCompany() for each company.
Something like this:
DataArea dataArea; while select dataArea where dataArea.id != 'DAT' { changeCompany(dataArea.id) { if (!LedgerParameters::numRefSomething()) { warning("Number sequence for something is missing!"); } } }
Thanks Nikolaos.
Good morning Nithin,
If there is nothing left open / not answered and your issue is fixed then please be so kind and verify the answer to let also other community members know what helped you getting this fixed.
Many thanks and best regards,
Ludwig
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 449 Super User 2025 Season 2
Martin Dráb 422 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional