Shyam Chopra
23rd January 2018, 14:43
Hi,
I am trying to print 'Payment Reminder Letters' - AR (tfacr3508m000).
I have defined the layout of the letter considering all the variables required. By this way, I am also able to print the payment reminder letter.
Can someone please help me with the logic of picking BP name & address in the text editor?
There is some logic through which the system picks the name and address of the BP, something like $bpid, $add.
Please help.

bdittmar
23rd January 2018, 16:19
Hello,
the Report layout is defined in tfacr342011000
--------------------------------------------------

Before.field sort.cuno.rep 1 1
Before.field sort.cuno.rep 20 1
Before.field sort.cuno.rep 30 lattr.break and tfacr301.htxt <> 0 and tfacr000.evrt = tcyesno.no
Before.field sort.cuno.rep 35 lattr.break and tfacr301.htxt <> 0 and tfacr000.evrt = tcyesno.yes
Before.field sort.cuno.rep 40 not isspace(head.string)
Detail 10 1
After.field sort.cuno.rep 10 1
After.field sort.cuno.rep 20 not isspace(total.string1.cus)
After.field sort.cuno.rep 30 not isspace(total.string2.cus)
After.field sort.cuno.rep 40 not isspace(total.string3.cus)
After.field sort.cuno.rep 50 not isspace(total.string4.cus)
After.field sort.cuno.rep 60 1
After.field sort.cuno.rep 70 tfacr301.ftxt <> 0
After.field tfacr303.ccur 10 1
After.field tfacr303.ccur 20 not isspace(total.string1)
After.field tfacr303.ccur 30 not isspace(total.string2)
After.field tfacr303.ccur 40 not isspace(total.string3)
After.field tfacr303.ccur 50 not isspace(total.string4)
After.field tfacr303.ccur 60 1

Adress is defined in before.sort.cuno.rep.30 :
as Array with heco(1,1) a.s.o.

Because of the print condition, a Header text must exist !

Regards