on 09-08-2016 6:33 AM
Hi All,
i am getting below error using date transformation function.
Client expected :2016-01-01T00:00:00-08:00
same format i maintain in graphical mapping level below is the screen shot
but when i test the total scenario with sample data i am getting below error .
Plz give some suggestions ASAP.
Thanks
Kavitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for all for your suggestions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kavitha,
please try using below UDF . have attached output screenshot also.
please check if it is feasible for you.
i am wondering why X timezone is not working with UDF, while same is working in eclipse.
Code:
try{
String D=var1;
DateFormat converter = new SimpleDateFormat("dd-MM-yyyy");
Date dt=(Date)converter.parse(D);
DateFormat converter1 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ:00");
converter1.setTimeZone(TimeZone.getTimeZone("PST"));
D=converter1.format(dt);
return D;
}
catch(ParseException e)
{
e.printStackTrace();
}
return null;
Mapping:
Output:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any suggestions plz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The error you are getting because web service is not accepting the date format which you are sending , so can you firstly try with SOAP UI and then do the required modification in mapping.
Additionally what i see is your source is and standard idoc MATMAS , and standard IDOC Date format is YYYYMMDD , are you really getting dd-mm-yyyy as the format ?
Hi All,
Any suggestion plz.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kavi!
Take a look at 's blog.
I guess that standard function "DateTrans" doesn't support your output date format.
Try with output format like yyyy-MM-dd'T'HH:mm:ss Z.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Kavitha,
please change your data type for "ValidFrom" field from string to Date and try.
Regards,
Bhavin Parmar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Raghu,
I gone through the link which you provide earlier .
here i have one more doubt
Target excepting :1900-01-01T00:00:00-08:00
In mapping level I applied this syntax format "yyMMddHHmmssZ" 010704120856-0700
i got the output like 2016-07-20T00:00:00+0000.
But here end of the of the date i need +00:00 like this.
Can you help me this .how to get .
Thanks
Kavitha
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.