on 02-20-2006 4:09 PM
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi anand,
I am doing lsmw conversion for mm01. The problem is when i am converting 18 char matnr, it is carry 6 more characters for matnr. I tried to use conversion function module. Again it is showing 24 matnr. How can we restrict leading zeros right side of the matnr? I tried to use SHIFT right deleting trailing spaces..but again showing same error... how can i restrict the zeros?
Thanks and Regards,
Partha SArathi
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.