cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in currency field in medruck

Former Member
0 Kudos

Hi all,

I am having problem in medruck form wherein when I am giving very high order value it is not giving the full spelling of the amount. so what should I do.

For small values entire spelling is comming in print layout

but for 1,234,567,890 has to be spelled as

One Billion Two Hndred Thirty Fou Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety but it is showig as

One Billion Two Hndred Thirty Fou Million Five Hundred Sixty Seven Thousand Ei

only in o/p

what might be the reason can any body suggest me......

I used FM spell_amout and trasferred the value to structure Out_pAr of ITCSY

whe I am returnig value in perform it is showing like this...

thanks in advance

Ravi

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

Problem is in your SAp script variable cannot hold more than 79 characters,

Do like this,

variable1 = "One Billion Two Hndred Thirty Fou Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety"

Note variable1 lenght = 150

var1 = variable1+0(79). "var1 Lenght 79

var2 = variable1+79(79) "var2 Lenght 79

Print var1 and var 2 in your SAP script.

Reward points to all useful answers.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

Can u pls tell me where to write the code

var1 = variable1+0(79)

var2 = variable1+79(79)

in driver program or script

former_member196280
Active Contributor
0 Kudos

write it down in driver program, where you used FM spell_amount

Regards,

SaiRam

former_member196280
Active Contributor
0 Kudos

What's up? able to solve it? if yes, close the thread else write it back to me I will help you to fix the problem.

Regards,

Sairam

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Tejo,

Note that the variable that is getting the value in Perform has a length of 255 characters, rectify the same.

<b>Reward points if helpful.</b>

Regards,

Atin

Former Member
0 Kudos

may be the out out width is not enough to print the whole text. once check it..

increadse the height of the window..