Application Development 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: 

Abap dec

Former Member
0 Kudos

Hi ,

i have a data type data : i_temp type p decimals 2.

if there is no value comes for i_temp then its showing as i_temp = 0.00. In this case i just want to blank it the i_temp which should show i_temp = space rather than showing it as '0.00'.

Thanks,

Regards,

Vind.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try:

WRITE: /001 i_temp  no-zero.

Rob

3 REPLIES 3

Former Member
0 Kudos

Try:

WRITE: /001 i_temp  no-zero.

Rob

Former Member
0 Kudos

Hi

Since it is of TYPE P field it s default value is 0.00 is displayed

declare a char field

data v_char(15) type c.

move that P field to this field and display, it won't display zeros

or in the write statement

use NO-ZERO

write: / itab-netwr no-zero.

in alv output also field catalog attributes you put no-zero = 'X'.

Reward if useful

Anji

0 Kudos

Hi ,

i am using the variable i_temp to out put on scripts , since i dont have a condition to cut it , i need to use the same variable i_temp which should be a blank in case if the default value is '0.00'.

Thanks,

Regards,

Vind.