I am using PowerBuilder system as my Legacy system.
From Powerbuilder I get date in "dd-MMM-yyyy" format.
In XI, in request message mapping, I use date transform function and convert this date to "yyyyMMdd" format and in response message mapping, I use date transform function and convert this date from "yyyyMMdd" format to "dd-MMM-yyyy".
In R/3 my document is getting posted with the correct date that I supply from Powerbuilder. Eg, if I give date as "13-NOV-2007",in SAP document is getting created on the same date.
But, when I get a response in Powerbuilder it shows date 01-NOV-2006, inspite of creating a document with 13-NOV-2007 date in SAP. This is strange.
Only in Powerbuilder I am getting this incorrect date, but in SAP, it is getting posted with the correct date.