Skip to Content
0
Former Member
May 28, 2013 at 11:51 AM

Problem with XML transformation

987 Views Last edit Nov 11, 2019 at 02:53 PM 2 rev

Hi.

I have some strange problem after installinh ehp6. Problem appears during deserialization of XML flow. There is some interface provided by PI(XI), optional field 'fieldname' type xsd:integer. Then xml come in SAP it contain empty tag <fieldname></fieldname>. When method IF_SXML_SERIALIZABLE~DESERIALIZE of class CL_SXMLP_DATA_ST try to deserialize this it throw exception:

An error occurred when deserializing in the simple transformation program /1SAI/SAS409DF387E8A7C5C0483B

The value '' is not in the value range of the XML schema type 'integer' or it does not meet the specified limitations

exeption occured in

CALL TRANSFORMATION (m_transformation_deserialize)
PARAMETERS (l_ref_params)
SOURCE XML reader
RESULT (l_data_refs)
OPTIONS value_handling = m_opt_value_handling_d.

As i know, before EHP6 there was no problems with such XML. For some reasons it's hard to change mapping in PI. I already tried change technical type of this field in 'sproxy' on string, but it has no any effect. Maybe smbdy know reasons of this, or any ideas about solving this problem.

Thanks, BR, Alex.