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

formating currency variable

Former Member
0 Likes
569

hi ,

i have a variable which is of type CURR 15 decimal 2. If this variable contains the value as 0 (0.00), then it should not be displayed as 0.00. Instead, a blank space should come in that place..

regards

chinnaiya

4 REPLIES 4
Read only

GauthamV
Active Contributor
0 Likes
545


loop at itab.
if itab-field = '0.00'.
itab-field  = ' '.
endif.
modify itab transporting field.
endloop.
clear itab.

Read only

Former Member
0 Likes
545

declare a character variable of type char(15).

now

if curr is initial.

display char.

else.

display curr.

endif.

Read only

Former Member
0 Likes
545

Hello

If you use classical report, then:

write: itab-variable NO-ZERO.

Read only

Former Member
0 Likes
545

Hi,

If you are using ALV to display the report, then there is a field in fieldcat 'NO_ZERO' pass 'X' to it.

Hope this resolves your query.

Regards,

Nikhil