ltannous
4th February 2005, 19:03
I have a report that is using the table tfgld410. I am trying to get this report to print tfgld410.dim2, but I noticed that the records that are credits contain this data but the records that are debits dont. How can I hold the value from dim2(credits) and use them for dim2(debits) in my report?
Similarities :
Item, docn, quantity, trans type ...
There are many fields where debit = credit so I want to look up the value for dim2 in credits, and use that on my report for dim2 in debits.
I was trying something with hold.dim2... but not sure how to write this report script.
example of report
leac......dim2........item...........docn................deb/cred
12345...ASDFFD...1212121.....10022333............credit
12211................1212121.....10022333............debit
if I have the similarities of item/docn how can I carry the dim2 from credit line to dim2 debit line??
Similarities :
Item, docn, quantity, trans type ...
There are many fields where debit = credit so I want to look up the value for dim2 in credits, and use that on my report for dim2 in debits.
I was trying something with hold.dim2... but not sure how to write this report script.
example of report
leac......dim2........item...........docn................deb/cred
12345...ASDFFD...1212121.....10022333............credit
12211................1212121.....10022333............debit
if I have the similarities of item/docn how can I carry the dim2 from credit line to dim2 debit line??