NAV Report Sql Query Question

stomar_3
Member Posts: 26
Dear Collegs,
I am currently bussy with Navision reports making with one BI tool. In that process I faced with one issue for which do not know exact solution.
Namely, my problem is that customer want report in which will be presented Outstanding Amounts of their customers ordered by Due Date.
Theoreticly it means that they want to see report which all open Invoices and Credit Notes with the Due Date information.
How much I understand NAV database and tabels for this report should to use two tabels :
CRONUS $Cust_ Ledger Entry and CRONUS $Detailed Cust_ Ledg_ Entry .
In the tabel CRONUS $Cust_ Ledger Entry is one column with the name Open which can have values 0 or 1. How much I understand if value is 0 it means that this document (Invoice or Credit Note) is closed and if value is 1 it means that document (Invoice or Credit Note) is Open.
If it translate to my report it means that is neccesery to Select only document for which column Open has value 1.
Something like this :
Select [CRONUS Mexico S_A_$Cust_ Ledger Entry1000000021].[Document No_] As DocNo,
[CRONUS Mexico S_A_$Cust_ Ledger Entry1000000021].[Open] As Status,
[CRONUS Mexico S_A_$Cust_ Ledger Entry1000000021].[Due Date] As DueDate
From [CRONUS Mexico S_A_$Cust_ Ledger Entry1000000021]
Where [CRONUS Mexico S_A_$Cust_ Ledger Entry1000000021].[Open] = 1
Further how much I understand is neccesery to create Left Join with the tabel CRONUS $Detailed Cust_ Ledg_ Entry and to add Open Amounts to all documents which which in column Open has Value 1.
Here starts my problems.
My Question , how can do this, which querry is neccesery to make in CRONUS $Detailed Cust_ Ledg_ Entry to achive to have all correct Open Amounts for ceartin documents (Sales Invoices and Credit Notes).
Is this good way to build this query or not ? How can summarize this Outstanding Amounts in CRONUS $Detailed Cust_ Ledg_ Entry tabel.
Hope that somebody can help.
Thanks in advance.
I am currently bussy with Navision reports making with one BI tool. In that process I faced with one issue for which do not know exact solution.
Namely, my problem is that customer want report in which will be presented Outstanding Amounts of their customers ordered by Due Date.
Theoreticly it means that they want to see report which all open Invoices and Credit Notes with the Due Date information.
How much I understand NAV database and tabels for this report should to use two tabels :
CRONUS $Cust_ Ledger Entry and CRONUS $Detailed Cust_ Ledg_ Entry .
In the tabel CRONUS $Cust_ Ledger Entry is one column with the name Open which can have values 0 or 1. How much I understand if value is 0 it means that this document (Invoice or Credit Note) is closed and if value is 1 it means that document (Invoice or Credit Note) is Open.
If it translate to my report it means that is neccesery to Select only document for which column Open has value 1.
Something like this :
Select [CRONUS Mexico S_A_$Cust_ Ledger Entry1000000021].[Document No_] As DocNo,
[CRONUS Mexico S_A_$Cust_ Ledger Entry1000000021].[Open] As Status,
[CRONUS Mexico S_A_$Cust_ Ledger Entry1000000021].[Due Date] As DueDate
From [CRONUS Mexico S_A_$Cust_ Ledger Entry1000000021]
Where [CRONUS Mexico S_A_$Cust_ Ledger Entry1000000021].[Open] = 1
Further how much I understand is neccesery to create Left Join with the tabel CRONUS $Detailed Cust_ Ledg_ Entry and to add Open Amounts to all documents which which in column Open has Value 1.
Here starts my problems.
My Question , how can do this, which querry is neccesery to make in CRONUS $Detailed Cust_ Ledg_ Entry to achive to have all correct Open Amounts for ceartin documents (Sales Invoices and Credit Notes).
Is this good way to build this query or not ? How can summarize this Outstanding Amounts in CRONUS $Detailed Cust_ Ledg_ Entry tabel.
Hope that somebody can help.
Thanks in advance.
0
Comments
-
INNER JOIN the Detailed Cust. Ledg. Entry table
On Detailed Cust. Ledg. Entry.Cust. Ledger Entry No. = Cust. Ledger Entry.Entry No.
Use the field Amount (LCY) from the Detailed Cust. Ledg. Entry table0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions