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

how to store char values into quantity variable

Former Member
0 Likes
690

Hi experts,

I developed one report, in this two quantity fields r there( in final table). If quantity values not there it is displaying

0.000 .My requirement is i don't want zeros instead i want empty space or nil like this.I tried all the possibilitiees but it

is giving run time error.It is not accepting char values .What is the solution ? pls help me in this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
627

Hello

Classic report: write menge no-zero.

ALV: in field catalog set no_zero = 'X'.

3 REPLIES 3
Read only

Former Member
0 Likes
628

Hello

Classic report: write menge no-zero.

ALV: in field catalog set no_zero = 'X'.

Read only

0 Likes
627

THNAK U for giving this tip.

problem is solved

Edited by: ram charan on Aug 4, 2010 10:47 AM

Read only

Former Member
0 Likes
627

If it is classical report then you can put a check(if quantity-field NE 0, write quantity-field) before writing the data.

If it not classical then it is a problem, in that case you need to have one more internal table(ITAB2) in which those quantity fields will be of char types, then move table(ITAB1) records to ITAB2 table. DELETE itab2 where field1 = '0.00'

If problem solved, see to the points section..