Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Date Fields from Flex to SAP

Former Member
0 Likes
689

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

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

4 REPLIES 4
Read only

Former Member
0 Likes
664

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

Read only

0 Likes
664

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

Read only

0 Likes
664

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

Read only

0 Likes
664

I have already used it Basheer. Thanks for the reply.