2006 Jun 08 12:28 PM
i have number in se38 and i want to take him to sapscript.
the number is decimal 2.
1.when i declare decimal 2 is not appear and when i declare
char is apper.
2.i want him to be postive all the time withou minus
2006 Jun 08 12:38 PM
SE38 declar a number for example as
<b>data w_dec type p decimal 2.</b>
and in Script use the offset address as
<b>&w_dec(10.1)&</b>
Cheers,
Thomas.
Please reward points if helpful.
i have number in se38 and i want to take him to sapscript.
the number is decimal 2.
1.when i declare decimal 2 is not appear and when i declare
char is apper.
2.i want him to be postive all the time withou minus
2006 Jun 08 12:38 PM
SE38 declar a number for example as
<b>data w_dec type p decimal 2.</b>
and in Script use the offset address as
<b>&w_dec(10.1)&</b>
Cheers,
Thomas.
Please reward points if helpful.
2006 Jun 08 12:42 PM
2006 Jun 08 12:47 PM
data: deci type p decimals 2,
char(10).
deci = '1.00'.
deci = deci * -1.
write deci to char.
replace '-' in char with '' .
condense char.
write char.use this char in script. that will work..., with out sign(+ve always).
Regards
vijay
2006 Jun 08 12:48 PM
<b>&var(10.2).
it's work only for data types DEC, QUAN and FLTP</b>
declare it as quan data type in programm than it will work...
A program symbol of one of the data types DEC, QUAN and FLTP can
contain decimal place data. This option overrides the Dictionary
definition for the number of decimal places to format this symbol
(c.2)
not work just remove c than it may be work same problem face by me..:-)
2006 Jun 08 12:49 PM
i explain again
i send from se38 value zxxx(15).
in sapscript i wrote &zxxx(c13.2)
or (c.2)
and it not work
2006 Jun 08 12:50 PM
how i declare quan?
i declare type p deci,al and it's not work
2006 Jun 08 12:51 PM
data:var like ekpo-menge.
(c.2)
not work just remove c than it may be work same problem face by me..:-)
write
&var(.2)&
2006 Jun 08 12:42 PM
hi
to omit leading sign
use <b>&value(S)&</b>
chk this out
Number of decimals
A program symbol of one of the data types DEC, QUAN and FLTP can contain decimal place data. This option is used to override the Dictionary definition for the number of decimal places for the formatting of this symbol value.
Syntax:
<b>&symbol(.n)&</b>
<b>Example:
The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies 3 decimal places and an output length of 17.
&EKPO-MENGE& 1,234.560
&EKPO-MENGE(.1)& 1,234.6
&EKPO-MENGE(.4)& 1,234.5600
&EKPO-MENGE(.0)& 1,235</b>
Message was edited by: Ganesh Mynampati
2006 Jun 08 12:59 PM
hi
hav u checked my post !
u hav to use
<b>&value(.n)&</b>
The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies 3 decimal places and an output length of 17.
&EKPO-MENGE& 1,234.560
&EKPO-MENGE(.1)& 1,234.6
&EKPO-MENGE(.4)& 1,234.5600
&EKPO-MENGE(.0)& 1,235
& to omit leading zeros
<b>&value(S)&</b>
2006 Jun 08 1:01 PM
2006 Jun 08 1:08 PM
i declare
ZP_SUM TYPE p DECIMALS 2.
and in layout
&ZP_SUM(.2)&
and it's not work
2006 Jun 08 1:16 PM
hi again
i've tried here & itz working fine ..
may b some problem with ur paragraph format !! juz try with default paragraph once ...if it works u need to change the paragraph format