Skip to Content

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

Leading zeroes in ABAP

How to remove leading zeros in ABAP?

Tags:
replied

shift <field> left deleting leading '0'.

U write ur code like this

data a(9) value '000012345'.

SHIFT a LEFT DELETING LEADING '0'.

write:/ a.

Output will be : 12345

Or use this method also

data a(9) value '000012345'.

Call function 'CONVERSION_EXIT_ALPHA_OUTPUT'

Exporting

input = a

Importing

output = a.

write a.

output:

12345.

Thanks and best of luck

Reward if useful

Ankesh

3 View this answer in context
Not what you were looking for? View more on this topic or Ask a question