on 05-27-2008 8:21 AM
Hi,
if source field value(text) is longer than target field value, then how i will truncate the data to fit the exisitng maximum length in message mapping.
Thanks in advance.
Thanks and Regards
Sai
Hi ,
I can give you the logic like this.
TLength = XXX;
SLength = Source.length;
if (SLength <= TLength)
Map it to target as it is;
else
{
target = Source.substring(0,TLength);
}
Write it as an UDF or do it in graphical mapping as you like it. This is what logic you are supposed to implement.
Regards
Aashish Sinha
PS : reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
We can Use Substring Function
Regards
Seshagiri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Komala,
You can use the Substring function provided in Message Mapping under Text Functions or you could go in for a UDF ( User Defined Function )
In the SubString Function you can specify the Starting Position and the number of characters you require thereof.
**************Reward points ,if found useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In graphical mapping u have predefined function called sub string tyr to use it.
ex: if u need only 10 chars at target side.
sustring(0,10).
Thanks and regards,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use standard functions as
source filed->length->if then else ->substring->target.
regards
mahesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
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.