Thanks Dev,
Actual issue in M*** printing of Credit Notes.
Wherever there are 2 line items for a credit note for the same document number, I am having 2 printout in PDF.
For example: Document 1 has 1 line item, Document 2 has 3 line items and document 3 has 1 line item, then while doing a massprint
the output comes following
Document1
Document2
Document2
Document2
Document3
I want to remove the duplicate 2 printouts. Kindly help
As W_CNT and W_CNT2 always fluctuating numbers n referring code as above...