on 01-22-2009 1:13 PM
Hi,
for those of you who used the FormatNumber function inside the Message Mapping, there is a quite strange change.
You must enter a decimal delimiter. Inside release 7.00 this was not a must. The error message you will receive from the mapping is a little, well, unusefull:
Check result for Message Mapping: MM_OSRBG_PP_SFC_TECO_RFC_REQUEST | http://osram-os.com/rbg/pp/sfc/teco/xi013:
Target field mapping '/ns0:MT_OSRBG_PP_SFC_TECO_RFC/ROW/ORDERID' incomplete; reason: char should be not empty
Well on my side the lead to several problems, because I had to assign fixed number length (without decimal digits).
The only solution I had on this is to build an own user function in java doing the same.
These are the two parameters given to the function:
numberString
numberFormat
You have to import this:
import java.text.*;
And that's the code:
int numberInteger = Integer.parseInt(numberString.trim());
DecimalFormat piNumberFormat = new DecimalFormat(numberFormat);
return piNumberFormat.format(numberInteger);
BR Markus
Hi,
how to do this?
BR Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jan,
Thanks for updating the forum with your finding. But uncheck the box "Mark this thread as a question" so that i does not look like a question.
VJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.