Announcements
No record found.
Hi,
How to export a single purchase order data in NAV? Is there any development logic to be built in NAV?
Thanks in Advance..
*This post is locked for comments
Hi
in which format do you want to export the PO ?
In text format..
You can open a purchase order and Export to Excel and then save that file as .csv. Or you need to build an xmlport
In that case you can build an XMLport. On the request page of XMLPort you can apply filter on whichever PO No. you want to export.
I have tried following code it works for word. but I need it for text. If I put .txt instead of .doc, notepad is corrupted..Its like decoded. I used this in purchase order actions...
PurchaseHdr.RESET;
PurchaseHdr.SETRANGE("No.",Rec."No.");
Save12 := Rec."No.";
REPORT.SAVEASWORD(REPORT::ReportName,('C:\'+FORMAT(Save12)+'.doc'),PurchaseHdr);
MESSAGE('Document Created');
"SaveAsWord" the function name says it all. If you dont want to do it with XMLPort, then exporting the report as .csv is the best option and it does not require any modification.
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.