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: 

Remove leading zeros in report

Former Member
0 Kudos

Hi all,

I do a clasical reoporting. Data in the internal table numeric types. But when writing in the report, is appearing as 000056 etc. I want to remove this leading zeros in the report output. Any helps?

Regards,

Mic.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You can remove the leading zeros in the output of a report by

Write: / itab-field NO-ZERO.

Hope this helps you,

Cheers,

Sam

4 REPLIES 4

Former Member
0 Kudos

Hi,

You can remove the leading zeros in the output of a report by

Write: / itab-field NO-ZERO.

Hope this helps you,

Cheers,

Sam

0 Kudos

hi sam,

Thanks it was working.

Mic.

0 Kudos

adding to the solution provided, to know more about options available with <b>write</b> statment, check out the abap key word documentation. (place the cursor on "WRITE" and hit the icon (blue) with "I" to get there - Control + F8)

Regards

Raja

Former Member
0 Kudos

Hi Michael,

u can use the function module for removing leading zeros

CONVERSION_EXIT_ALPHA_INPUT (adding zeros)

CONVERSION_EXIT_ALPHA_OUTPUT (removing zeros)

Regards

Nagesh