Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Issue with Date format - ABAP to XML

Dear Users,

We are currently facing an issue with the date formats in XML.

We have a system (.Net), which has a webservice that we are calling for information from SAP. We created a Proxy class in SAP from the WSDL file and have attempted to use the method that gets us required information based on the Timestamp passed from SAP. However, the timestamp that the INPUT structure uses has a data element XSDDATETIME_Z.

All we can send from SAP is a simple TIMESTAMP, but the .Net system doesn't accept it since it wants the timestamp in XML format i.e. <dd-mm-yyyy>T<hh:mm:ss>Z. SAP documentation says that the field should automatically do conversion from ABAP to XML format, but that doesn't happen. We don't want to build a string from Timestamp in the XML format and send it out since we might surely miss out on the different cases involved.

Can anyone please suggest a way for us to send the date out in the required XML format?

Many thanks!

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question