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

any function module to display blank for initial values in data type P

Former Member
0 Likes
1,066

Hi,

I wanna display blank instead of 0.00

data type is packed decimal

any function module is there..

this is alv...so i cant use write statement

pls help me

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,031

Hi Rajkamal,

Just move those valuse to the Chareter type..

data lv_char type c.

if value = 0.00.
move value to lv_char.

endif.

thanks!

6 REPLIES 6
Read only

Former Member
0 Likes
1,032

Hi Rajkamal,

Just move those valuse to the Chareter type..

data lv_char type c.

if value = 0.00.
move value to lv_char.

endif.

thanks!

Read only

0 Likes
1,031

Prasanth,

I will have to display the variable which is of data type P.

Read only

Former Member
0 Likes
1,031

Hi,

While displayingt he output use the following:


DATA : G_TEXT TYPE P DECIMALS 2.
G_TEXT = '0.00'.
WRITE : G_TEXT NO-ZERO.

Read only

0 Likes
1,031

i am not using write statement to display it...

this is alv

Read only

Former Member
0 Likes
1,031

answered

Read only

0 Likes
1,031

Hi,

what did you do to fix the problem, I am facing the same scenario.

Thanks

Anne