Sunday, August 24, 2014

Eliminate all leading '0' character in string by using SHIFT command

For example, we occasionally meet the string staring with '0' like below ,

"000000ABCDEF"

In general, we can use function 'CONVERSION_EXIT_ALPHA_OUTPUT',
But, there is another efficient way to remove preceding '0' character by using SHIFT command.

  SHIFT l_vbeln LEFT DELETING LEADING '0'.

No comments:

Post a Comment