remove this filter GenLine.SETFILTER("Account No.",GenLine."Account No.");
sort on vendor no and create a global variable called prevvendorno.
check in repeat statement that Prevvendorno is same as account no. of the genjnlline.
if yes then add the amounts and delete the line
if not assign account no. to prevvendorno.
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
sort on vendor no and create a global variable called prevvendorno.
check in repeat statement that Prevvendorno is same as account no. of the genjnlline.
if yes then add the amounts and delete the line
if not assign account no. to prevvendorno.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Could you please tell me in writing the code
I have understand your logic , but I don't know how to write it properly
please suggest me the code
please try yourself
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
"Give a Man a Fish, and You Feed Him for a Day. Teach a Man To Fish, and You Feed Him for a Lifetime"
...I believe Mibuso (a fantastic forum) is for teaching people how to fish - not giving them a fish