cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Date value to SAP R/3

Former Member
0 Kudos

Hi,

I am trying to send Date value from Text box (javascript) to SAP R/3 thru transaction and BAPI. But it is not accepting it. In SAP it accepting time value but it is not accepting date value. It take default date (current system date).

But when we give date value directly in transaction it accepts.

what is the problem. how to solve it?

Regards,

Senthil

Accepted Solutions (1)

Accepted Solutions (1)

agentry_src
Active Contributor
0 Kudos

Your text box is a string. If you assign it to a Local (or Transaction) Property of type DateTime, xMII may properly interpret it and allow the DateTime value to be populated. However when you try to map it to SAP, it will most likely fail as it is of datatype DateTime (which is actually xml datetime). You can assign the text box value to a Local Property with datatype String and format it from there. Or if your Local Property is correctly interpreting the string from the text box and is updated, then you can explicitly convert from xml datetime to string type.

functions which might be of interest or applicable are:

datefromxmlformat

dateformat

stringpart

Good luck,

Mike

Answers (0)