Hi All,
I have created a Dataport with 'Cust. Ledger Entry'.I want to export the last 6-month invoice records.
Can you please suggest me some code to retrieve last 6 months records.
Or use the "Document Date" for date filtering.
If you mean the last six months invoice records created, this is only possible if you add
a creation date to the table.
Or use the "Document Date" for date filtering.
If you mean the last six months invoice records created, this is only possible if you add
a creation date to the table.
Answers
OnPreDataItem()
setrange("Entry Type",Entry Type::sale);
setrange("Source Type",Source Type"::customer);
setrange("Posting Date",calcdate('<-6M>',WORKDATE),WORKDATE);
Or use the "Document Date" for date filtering.
If you mean the last six months invoice records created, this is only possible if you add
a creation date to the table.