Skip to main content
Microsoft Dynamics NAV forum
Answered

Codeunit Function

editSubscribe (0) ShareShare
ReportReport
Posted on by UG Leader

Hi Experts,

                I am a fresher in NAV. I want to know about the DATABASE function used in C/AL coding. Example in Navigate page(344) this function is present

 InsertIntoDocEntry(

          DATABASE::"Sales Shipment Header",0,Text005,SalesShptHeader.COUNT);

Thanks in Advance.

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,636 on at
    RE: Codeunit Function

    The DATABASE function will return the table number, for ex: Instead of using 37 for table Sales Line you can use DATABASE::"Sales Line"

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,045 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,570 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans