Skip to Content

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

Delete leading zeroes

Hello,

Does anyone know how to delete leading zeroes in a mapping ?

I don't think there is a standard function for this, or am I wrong ?

Regards,

Marco

Former Member
replied

hi Marco,

create a simple function that will use the code below:

String stringWithZeros = "0000123490";

String stringWithoutZeros = stringWithZeros.replaceFirst("^0+", "");

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

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