cancel
Showing results for 
Search instead for 
Did you mean: 

Under line issue for amount in words variable in Script layout

Former Member
0 Kudos

Hi,

i have one box in script in that im displaying cash receipt which contains amount in words with under line then im giving one blank line then by cash/check as shown in below..

Output coming like this :

* the sum of &LV_AMT_WORDS&----


-


here providing one blank space....then

* by Cash/Check No:<U> -


</>Date<U> -


</>Drawn on

<U> -


</>

Now in my case requires like this:

* the sum of &LV_AMT_WORDS&----


need one line space

-


amount in words

here providing one blank space....then

* by Cash/Check No:<U> -


</>Date<U> -


</>Drawn on

<U> -


</>

in my case if amount in words is coming more char automatically it is coming in next line..but i need to provide blank line specified above.

cheers,

Dileep Reddy.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

keep condition like

if length > 100.
   &words&
   blank line.
Else.
    &words&
endif.
blank line.

Thanks,

suma.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Write a Subroutine for converting amount into words. In corresponding program call FM SPELL_AMOUNT to convert amount into words. Pass the words string into one variable and calculate its length and store the length in one variable. Then come again into script window and code is as follows:

If &Var& > 100 "Say lenthr is 100 characters where var is to store lenght from program

  • &AMOUNT_WORDS&

*

else

&AMOUNT_WORDS&

endif.