on 2015 Aug 25 12:25 AM
A small requirement. If the field length is greater than the target field lenth, i need to map only the first "X" chars to the target.
e.g if the target field is 50 chars and the source is greater than 50, I need to map first 50 to the target field.
Need help to close this asap..
your help is appreciated.
S
Shyam,
If you are using FCC in receiver channel use fixedLengthTooShortHandling.
You could have got this by searching SCN or SAP Help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Shyam,
If target is text file use fieldLengthExceeded of StrictXml2PlainBean.
Adding StrictXml2PlainBean (XML to Text) in the Module Processor
If you want to cut length in message mapping create below UDF.
public String udf_trim(String in, int len, Container container) throws StreamTransformationException {
if (in.length() > len) {
return in.substring(0, len);
}
return in;
}
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.