cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms Extra zero printing

Former Member
0 Kudos

Hi all,

I am printing a field of type quan with length 13 and decimals 3.On debugging ,it contains the right value but the layout contains an extra zero in the figure.

Example if the field contains the value 1500.000 while debugging , it prints 15000.000.

Please guide.

Thanks in advance,

Garima

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

Please see the different formatting options below.

&SYMBOL& No formatting

&SYMBOL+4& Offset - Output begins here. Offset refers to formatted value

&SYMBOL(5)& Length - Output data in the specified length

&SYMBOL(I)& Suppress initial value - If the field has been initialized, nothing is output

&SYMBOL(Z)& Suppress leading zeros

&SYMBOL(C)& Compress blank spaces - Consecutice spaces are compressed into a single space. Leading spacesare suppressed.

&SYMBOL(R)& Right align output

&SYMBOL(S)& Operators are suppressed

&SYMBOL(*)& Dictionary length - The data length is defined by the ABAP dictionary

&SYMBOL(8.2)& Decimal format. Length 8 decimals 2

<b>Reward if helpful.</b>

Thanks,

Nagendra

Former Member
0 Kudos

hi,

check &quan(C.2)&

raj

atul_pande
Explorer
0 Kudos

Hi,

while u define zstructure ,

create new zdomain with data type :QUAN and no of characters : 13(for example) and decimal places : 2 assign it to zdata element and use it for MENGE field of zstructure as data element.

Former Member
0 Kudos

Hi,

Number of Decimal Places A program symbol of one of the data types DEC, QUAN, and FLTP can contain decimal place data. Use the option below to override the Dictionary definition for the number of decimal places for the formatting of this symbol value. Syntax &symbol(.N)&

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

can u try tthis in ur form as

&itab-netpr(CR)& or

&itab-netpr(.2)&

Regards

Former Member
0 Kudos

Hi,

check whether its getting added or incremented.

is that in the loop?check did u write any code or

condtions...

Dinakar.

Former Member
0 Kudos

Hello,

Divide the feild value by 100.

Regards,

Vasanth