Skip to Content

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

Leading Zeros Padding in PI

I have a incoming field account number which is 10 integers into PI . I need to add leading zeros to it if the length is less than 10 integers.

Can you please let me know which function to use? I tried format fucntion but obviously that does not work.

Thanks,

Hari

Former Member
replied

Hello,

You just need to add the text function trim so that the leading and trailing spaces are eliminated. The adjusted mapping will look like this:

HKONT ---> trim ---> FORMATNUM 0000000000 -------> HKONT

Hope this helps,

Mark

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