on 10-10-2008 4:20 PM
Hi experts
iam working on message mapping
my requrement is
i have a filed FILED1 = "1234phonex"
i need to take first 4 digits (offset) form the value and pass it another filrd FIELD2.
please tell me what is the function should be used in message mapping
thanks
Hi,
if you always want the first 4 chars you could use the standard Text function substring .
Regards
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply.
actually my requriment is
if the SALESAREA = 'GE'
then convert DATE1 ( MMDDYY) to DATE3 (YYDDMM)
else
convert DATE2(DDMMYY) to DATE 3(YYDDMM)
here actual value of SALESAREA = 'GE12345678', i undestand that i have to use 'substring' and 'Transform date'
but please tell me more clearly to use the above condition
thanks
Hi
tahnks for your replies.
you use the standard substring function and extract the first 2 characters,
SALESAREA -
> substring (0..2)--->constant (GE)-date1------> DATE1 > transfdate-> date2
if the above line is correct how can i add other condtion (if other tahn GE)
please explain what are all other finction should beused
thanks
Hi
if the SALESAREA = 'GE'
then convert DATE1 ( MMDDYY) to DATE3 (YYDDMM)
else
convert DATE2(DDMMYY) to DATE 3(YYDDMM)
here actual value of SALESAREA = 'GE12345678', i undestand that i have to use 'substring' and 'Transform date'
use this way
Sales area - > Substring (0,2) pass this to equalS
now another parameter to equalS can be "GE" or anything you want
Date 1- Date Transform
Date 2- Date Transform
use ifThenElse
if (Sales Area -> Substring(0,2) equalS "GE") then (Date1 ->Date Transform) Else (Date 2-> Date Transform)
Thanks
Gaurav
Thanks you all.
finally i designed the mapping and the date also displaying in the required format. but still iam have a probelm that
if the file contain only one line with one date evrthing working fine
suppose afile contain 2 lines then only the first date in first line converting proeprly and the second date coming as blank
can you please tell how can i find the error in my message mapping
thanks
vasavi
its sloved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
First of all, you use the standard substring function and extract the first 2 characters, and check if your SALESAREA is equal to it,if it is, then DATE1->TRANSFORM DATE->TARGET FIELD.
Thanks
Saiyog
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.