Skip to Content

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

SAP note to suppress leading zeros for character fields in REUSE_ALV_GRID_DISPLAY output in ECC

Hi Experts,

Iam working on Upgrade from 4.6C to ECC 6.0.

There are some Z-programs which are using the Function Module "REUSE_ALV_GRID_DISPLAY".

Iam facing issue with Leading zeros.

I have debugged the program in both the versions,

Data in the Internal Table which we are passing to the

function module REUSE_ALV_GRID_DISPLAY is same in both the versions.

But I dont know why it is displaying differently in the 2 versions.

Leading Zeros are Prefixed if the data type is Char  in ECC.

Example:

For MATNR - Data type is CHAR and Length is 18.

So the output of the ALV is showing as "000000000000000012"  in ECC 6.0. But in 4.6c it si showing as "12".

Simillary for LIFNR field also we are facing this issue.

Till now we identified two fileds.

So my requirement is leading zeros should not appear in ECC 6.0 for Z-programs.

EX: MATNR  should be ‘12’ instead of "000000000000000012".

I too have a option of using the conversion exits, but it is not easy to use this conversion exit logic in all the Z programs(say there are 100 programs).

Is there any SNOTE for the same to implement.

Please help.

Thanks in Advance.

Former Member
Not what you were looking for? View more on this topic or Ask a question