cancel
Showing results for 
Search instead for 
Did you mean: 

script if conditon

Former Member
0 Kudos

HI ALL

i need to print the field &BSEG-WRBTR& in a script but the issue is if the &RF140-BEZSHKZG(2)& is DEBIT den i need to print the field &BSEG-WRBTR& under the column Debit amount and if the &RF140-BEZSHKZG(2)& is CREDIT den i need to print the firld &BSEG-WRBTR& under the Credit amount column and also please tell me how to have the total of the &BSEG-WRBTR& and print it in words....pleae help

vijay

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Vijay,

Here you can use tabs to position the field &BSEG-WRBTR& under the column you want. Something like -

/: IF &RF140-BEZSHKZG(2)& EQ 'DR'

P1 &BSEG-WRBTR&

/: ELSE

P1 ,, &BSEG-WRBTR&

/: ENDIF

You can define a paragraph format P1 with tab set as per your column width.

For printing total in words you can use the FM 'SPELL_AMOUNT'.

Hope this helps!

Regards,

Saurabh

Former Member
0 Kudos

Hai,

To Have total,<b>Use the Summing into option</b> available in script.

To printt it in words,

<b>Use the FM SPELL_AMOUNT,</b>

And store the words in a string variable.

(Declare a variable of string type)

<b>Pass this to the scipt</b> using WRITE_FORM(Better to use Text Element).

Hope this helps you.

<b>Reward points if it helps you.</b>

Regds,

Rama Chary.Pammi