Application Development 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: 

Date Format problem in ABAP Proxy

Former Member
0 Kudos

Hi All,

We have a Inbound ABAP proxy which recieves data from XI.

We use a date field in that which is defined as DATS datatype.

When we trigger the interface from XI with date in format YYYYMMDD, we are getting an exception.

when the date is sent in format YYYY-MM-DD, the interface is run successfuly.

when we test the interface in SPROXY transaction the date is displayed in YYYY-MM-DD format.

does it have anything to do with the defenition of the date format in XI?

I want to know whether DATS format in XI is different from ABAP?

should the date that is sent from XI be in YYYY-MM-DD format all the time.

Kindly suggest a solution for the date problem when it is passed from XI to ABAP proxy

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos

XML always requires YYYY-MM-DD format

Former Member
0 Kudos

Hi Uday,

Check the pattern used in XI/PI for the date definition.

If it's set to:

pattern="[0-9]-[0-9]-[0-9]"

Then it will enforce the pattern. You could try changing the pattern in XI to exclude the hyphen then you have a normal DATS format.

Regards, Trevor