cancel
Showing results for 
Search instead for 
Did you mean: 

Spell Amount in Script

Former Member
0 Kudos

Hi All,

I have used SPELL_AMOUNT FM to spell the amount.

And I am displaying in the Script. Here the spell amount is getting truncated.

Eg : in my PO total value is 23789989.16 with Currency is EURO.

It is spell the amount like this correctly.

EUR TWENTY-THREE MILLION SEVEN HUNDRED EIGHTY-NINE THOUSAND NINE HUNDRED EIGHTY-NINE & SIXTEEN CENTS ONLY

While passing this variable to Script, it is displaying only

EUR TWENTY-THREE MILLION SEVEN HUNDRED EIGHTY-NINE THOUSAND NINE HUNDRED EIGHTY-

it is truncating after 80 characters.

Please help me in this regards. Because this error happening in Production.

I need to correct with high priority.

Regards.

Deekshitha.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi

you can use the function moduel SPELL_AMOUNT ..this should resolve this issue.

thanks,

shamim

Former Member
0 Kudos

Hi,

In ITCSY table the VALUE field will have the 255 lenght, it should have hold the data, but printing the the value from SCRIPT should also contain the same lenght, so that the value will come as it is.. other wise split this value in the PERFORM and get the 2 fields in the SCRIPT, then Print the 2 values side by side in the layout

Regards

Sudheer

Former Member
0 Kudos

Hi,

Split the value and display it.

Split it as 3 or 4 varaibles and display it.

String1 = text+0(80)

String2 = text+80(160)

String3 = text+160(240)

String4 = text+240(320)

While passing the values check whether it is initial or not.

Reward if helpful.

former_member196280
Active Contributor
0 Kudos

Yes, script variable(text symbols)cannot hold more than 80 character, split it and send it in two variables and print like this

&variable1&&variable2&

In form routine do it like this

&variable1& = AMOUNT+0(80).

&variable2& = AMOUNT+80(80).

Message was edited by:

Yes, text symbol cannot hold more then 80 chars.. So it is happening. Try to follow what I have told you above it will solve your problem.

Message was edited by:

regards,

sairam

Former Member
0 Kudos

Can u help me, why this is issue is happening in script.