Skip to Content
0
Former Member
Nov 28, 2008 at 02:12 AM

SAPscript: jumbled words when printing thai amount in words

63 Views

Hi,

I Hope somebody can help me with the issue. Here's the problem:

I have two variables that contain the thai characters retrieved using SPELL_AMOUNT.

When i display those two variables, &WORD& and &DECWORD&, on a window with length 7in, it is being displayed correctly.

But when i display it on a smaller window, the thai characters gets jumbled.

Here's a sample in English: the spell_amount of 123.45

if i display &WORD& = 123 and &DECWORD& = 45

Correct: ONE HUNDRED TWENTY THREE FORTY FIVE. ---displayed only in when the window is stretched fully

Messed Up: THREE FORTY FIVE ONE HUNDRED TWENTY

Here's are the pics of the actual printed document and the sapscript layout:

Link: [http://www.geocities.com/dextermarius/sdn_image.jpg]

WINDOW2 contains the same variables with AMOUNTW. WINDOW2 shows the correct output but AMOUNTW contained jumbled words.

What i really wanted to do is display just 1 string varible that contains the concatenated words of

&WORD& 'BAHT'&DECWORD& 'SATANG' and put it in window AMOUNTW.

I tried to expand the page width using SPAD and extended the window width but the output was still jumbled.

Thank you in advance.