Do a dataport off the customer table. In the Onbeforeexportrecord do a check if there is any customer ledger entries and skip the customer if none found.
e.g.
CLE.reset;
CLE.setrange( "customer no.", customer."no." );
CLE.setfilter( "posting date", '01/01/08..31/12/08' );
if NOT CLE.findset then
Currdataport.skip;
where CLE is a variable of type record subtype Cust. Ledger Entry
You don't want to do that, because that way the system actually retrieves all CLE's for the customer. Since you're not doing anything with those CLE's that is a complete waste of energy. Better:
[
You don't want to do that, because that way the system actually retrieves all CLE's for the customer. Since you're not doing anything with those CLE's that is a complete waste of energy. Better:
Comments
Do a dataport off the customer table. In the Onbeforeexportrecord do a check if there is any customer ledger entries and skip the customer if none found.
e.g.
CLE.reset;
CLE.setrange( "customer no.", customer."no." );
CLE.setfilter( "posting date", '01/01/08..31/12/08' );
if NOT CLE.findset then
Currdataport.skip;
where CLE is a variable of type record subtype Cust. Ledger Entry
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
RIS Plus, LLC
Good point :oops:
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html