Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

numeric field

Hi all....

Iam having one internal table with five fields and 10 records...

Now iam going to add one more record to that internal table in my program by using append statement...

itab-f1 = ' '.

itab-f2 = ' '.

itab-f3 = ' '.

itab-f4 = 'india '.

itab-f5 = ' '.

append itab.clear itab.

with above syntax i have to get four spaces and one entry....

but i am getting 0 for the last field, which is the numeric field...

how to avoid that zero...

there is no chanse to change numeric as char or others....because it is database table field using in some other reports and in other conditions in this reoprt also....


one more thing is iam dispalying this internal table by using table control, not with normal reporting!!!!

thank you,


Former Member replied


while displaying or writing maintain as

no zero.

data : begin of itab occurs 0,

f1(10) type n,

f2(10) type n,

f3(10) type n,

f4(10) type c,

f5(10) type n,

end of itab.

data : india(10) type c.

parameters : i type i.

itab-f1 = ' '.

itab-f2 = ' '.

itab-f3 = ' '.

itab-f4 = 'india '.

itab-f5 = ' ' .

append itab.

write itab-f5 no-zero to india.

write india.

or if u want to display in table control then show india it will work,

with Regards,


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question