Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

translate number SAPSCRIPT

Former Member
0 Likes
784

in se38 i made change number 1.000.000,00

(i have option <b>1</b> in <b>SU01</b> optoin 2 is good )

with this code

TRANSLATE l_num USING ', ' .

CONDENSE l_num NO-GAPS.

MOVE l_num TO l_num2.

i get 1.000.000<b>00</b> and this the err.

how can i solve it so it will be good to option 2 too in SU01

in se38 i made change number 1.000.000,00

(i have option <b>1</b> in <b>SU01</b> optoin 2 is good )

with this code

TRANSLATE l_num USING ', ' .

CONDENSE l_num NO-GAPS.

MOVE l_num TO l_num2.

i get 1.000.000<b>00</b> and this the err.

how can i solve it so it will be good to option 2 too in SU01

7 REPLIES 7
Read only

Former Member
0 Likes
757

SU01-details-option 1,2 in numbers

sorry

Read only

Former Member
0 Likes
757

What ever u set in SU01, use this code:

Write l_num TO l_num2.

Do not write any other statements like Translate, condnse.

Read only

0 Likes
757

i tried write but it not giving me to activate it

it's err

Read only

0 Likes
757

Declare the l_num2 as character of length equivalent to the l_num1.

Read only

0 Likes
757

num1 is type string

num2 is decimal 2

i need the number to be decimal 2

Read only

0 Likes
757

I MUNST WRITE CONDESE BCUS I GET NUMBER

1.000.00 00 I HAVE <b>SPACE</b>

Read only

0 Likes
757

no one had it before