Skip to Content
0
Former Member
Apr 22, 2008 at 09:33 AM

removing leading zero on a char field (MATNR) on an ALV grid

3819 Views

Hi all,

I am having trouble removing the leading zeros on a char field (MATNR) in an ALV grid.

When I select the option no-zero in the field catalog, it doesn't work as MATNR is a char field.

If i process the line item manually, using

SHIFT lt_data LEFT DELETING LEADING '0'.

It appears to work when I check the table contents in the debugger. However, the ALV grid output shows all MATNR fields converted this way as blank. Why is this happening, and what can I do to avoid it?

Cheers