Decimal Values not exported !!

Jacob1227
Member Posts: 128
Hi All,
I have created a process only report to export Cust. Ledger Entry table details as CSV.
Here Customer no, Name, Posting date is exported correctly. But, Decimal values (like Amount, Remaining Amount)exported as Zero.
I don't know why these decimal values are not exported...
Please suggest me some idea to export the decimal values correctly.
Thanks in Advance,
Jacob A.
I have created a process only report to export Cust. Ledger Entry table details as CSV.
Here Customer no, Name, Posting date is exported correctly. But, Decimal values (like Amount, Remaining Amount)exported as Zero.
I don't know why these decimal values are not exported...
Please suggest me some idea to export the decimal values correctly.
Thanks in Advance,
Jacob A.
0
Answers
-
Use
calcfields(amount) before exporting.
They are probably flowfields1 -
Thanks,Tally
It came now but the value is not coming properly.
Ex: Amount is : 80,530.10
But exported in two columns ->
First column 80
Second Column 530.10
It happened because of , comma symbol.
How can i get the whole value in a single column like 80,530,10?0 -
Use another separator (;) or add quotations (")
To separate your fields.0 -
Tally,
Where i have to add the separator here?
Cust. Ledger Entry - OnAfterGetRecord()
fFileToExport.WRITEMODE(TRUE);
fFileToExport.TEXTMODE(TRUE);
fFileToExport.WRITE(STRSUBSTNO('%1;%2;%3;%4;%5',"Cust. Ledger Entry"."Customer No.","Cust. Ledger Entry"."Posting Date",
"Cust. Ledger Entry"."Document Type","Cust. Ledger Entry".Amount,"Cust. Ledger Entry"."Remaining Amount"));
0 -
Try this:
'"%1";"%2";"%3";"%4";"%5"'0 -
Use <Standard Format,1> to export decimal values >1000
......"Document Type",FORMAT("Cust. Ledger Entry".Amount,0,'<Standard Format,1>'),FORMAT("Cust. Ledger Entry"."Remaining Amount",0,'<Standard Format,1>')));0 -
Thanks, Tally and Muca.
I have tried this . It works.
"Cust. Ledger Entry"."Document Type",DELCHR(FORMAT("Cust. Ledger Entry".Amount),'=',',')
Warm regards,
Jacob A.0
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