Skip to Content

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

Deserialisation failed

Hello ,

I have a problem with decimal as input parameter for a webservice,

The decimal has 4 digits behind the decimal point. But if you instead give more than 4 (e.g. 5) digits as input, then you will get the following exception:

(The test was carried out using Web services navigator)

My question is, if SAP is not able to round down such a decimal to the predefined format automatically?

- <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">

- <soap-env:Body>

- <soap-env:Fault>

<faultcode>soap-env:Client</faultcode>

<faultstring xml:lang="en">Deserialisation failed</faultstring>

- <detail>

- <n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">

<MainName>/1BCDWB/WSS0071009153138917323</MainName>

<ProgName>/1BCDWB/WSS0071009153138917323</ProgName>

<Line>10</Line>

<Valid>X</Valid>

- <DeserialisationFault>

<DescriptionText>Im ST-Program /1BCDWB/WSS0071009153138917323 ist bei der Deserialisierung ein Fehler aufgetreten.</DescriptionText>

<DescriptionDetailText>Beim Konvertieren von 0.76000000 trat ein Verlust von Nachkommastellen auf.</DescriptionDetailText>

<TreePosition />

<ClassName>CX_SY_CONVERSION_LOST_DECIMALS</ClassName>

</DeserialisationFault>

- <Caller>

<Class>CL_SRG_RFC_PROXY_CONTEXT</Class>

<Method>IF_SXML_PART~DECODE</Method>

<Positions>1</Positions>

</Caller>

</n0:SimpleTransformationFault>

</detail>

</soap-env:Fault>

</soap-env:Body>

</soap-env:Envelope>

Thanks in advances

Yy

Former Member

Helpful Answer

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