Home > ABAP, ALV > ALV Tips – Remove leading zero

ALV Tips – Remove leading zero

October 17th, 2009 Leave a comment Go to comments

Business user always request to remove leading zero in the field. There are several methods to do it. But I think below one is the easiest.

When define the field catalog, we set field no_zero with value ‘X’. The ALV runtime will automatic remove the leading zero.

leadingzeor

The other method is that when build the output table, we can call function module named ‘CONVERSION_EXIT_ALPHA_OUTPUT’ or using statement like below:

    SHIFT GS_OUTPUT-VBELN LEFT DELETING LEADING0′.
  1. No comments yet.
  1. No trackbacks yet.