Announcements
No record found.
procedure GetSalesInvoicesExcludingCreditMemos() var SalesInvoiceHeader: Record "Sales Invoice Header"; begin SalesInvoiceHeader.SETRANGE("Cancelled", false); // Exclude canceled invoices SalesInvoiceHeader.SETRANGE("Closed", false); // Exclude fully applied/closed invoices if SalesInvoiceHeader.FINDSET then repeat // Process your sales invoice data here until SalesInvoiceHeader.NEXT = 0; end;
Hi,
You can use the filter option or exclude negative amounts to refine the data. However, does this apply to the Sales Invoice Header?
Also, the Sales Cr. Memo Header table number is different from the Sales Invoice Header—I believe they are 112 and 114, respectively.
Thanks! Ramesh
If this helped you, please check the box Does this answer your question?
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!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,993 Super User 2026 Season 1
YUN ZHU 1,116 Super User 2026 Season 1
Khushbu Rajvi. 557 Super User 2026 Season 1