cancel
Showing results for 
Search instead for 
Did you mean: 

20070930 is not a valid date in accord with the XML format for ABAP Kernel

Former Member
0 Kudos

Hi,

I am trying to call a server proxy on a BI system. The proxy has a date field which is of type "DATE" in the yyyyMMdd format. I am passing a date in the same yyyyMMdd format yet its failing with the following error:

<SAP:P4>XML Bytepos.: 227 XML Path: ns1:_-BIC_-CQZSEGMEN00002000(1)DATA(1)item(1)DATETO(4) Error Text: Value 20070930 is not a valid date in accord with the XML format for ABAP Kernel ErrorId: CONVT_NO_DATE</SAP:P4>

<SAP:Stack>Error during XML => ABAP conversion (Request Message; error ID: CX_ST_DESERIALIZATION_ERROR; (/1SAI/TXS22FCAA3CC1E05CEACE7B XML Bytepos.: 227 XML Path: ns1:_-BIC_-CQZSEGMEN00002000(1)DATA(1)item(1)DATETO(4) Error Text: Value 20070930 is not a valid date in accord with the XML format for ABAP Kernel ErrorId: CONVT_NO_DATE)) An error occurred when deserializing in the simple transformation program /1SAI/TXS22FCAA3CC1E05CEACE7B Value 20070930 is not a valid date in accord with the XML format for ABAP</SAP:Stack>

Can someone please help me with this?

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor

An ABAP Proxy requests the date in this format: 2007-09-30

The same is for RFC XML. But IDoc XML wants date without hyphen.

You can use the date function: DateTrans to add the hyphen.

Hope that helps

Stefan

Former Member
0 Kudos

Hi Stefan,

Yes it worked after inserting the hyphen

Thank you very much.

Regards,

Babs

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

did you try sending without parsing the date...

Regards,

Sukarna.