2009 Oct 07 12:20 PM
Dear All,
I'm trying to pass two date fields as parameters of an event, However, when i display the data in WD App. It shows the date fields as follows:
From Date from Flex: t .Oc.Thu
To Date From Flex: t .Oc.Thu
The Actual date that has been passed on Flex side is : "2009/10/1".
Should i convert this date to String in Flex and then send them.
Please help me how i can get the date as it is sent from Flex.
Thank You,
Sai
2009 Oct 07 12:47 PM
Hi Sai,
If your using date type of 'java.util.GregorianCalendar' on SAP side then you can pass your date as new Date(2009,9,1) from Flex.
But if this is not the case then simple way is pass date as String parameter and then on SAP side you can convert it into required Date format and use further.
Regards,
Vivek
2009 Oct 07 12:54 PM
Hello Vivek,
Thank You for the reply. On the SAP Side I'm using Webdynpro ABAP. I was just curious if we can get the date field as it is. We can do the formatting on Flex Side. Converting String to Date would be my last resort.
Thank You Once again.
Cheers,
Sai
2009 Oct 08 8:11 AM
Hi Sai,
Change the date format in flex as 'YYYY-MM-DD' using formatstring property of the date field and pass it as a string to SAP. Hope it'll be solved.
Regards
Basheer
2009 Oct 08 8:14 AM