web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to check the number sequence code is empty or not in general ledger-> numbersequence

(0) ShareShare
ReportReport
Posted on by 152

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.

pastedimage1606225890065v1.png

Thanks,

Nithin.

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    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!");
            }
        }
    }

  • nithinkumar_007 Profile Picture
    152 on at

    Thanks Nikolaos.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans