on 2005 Nov 17 1:06 PM
<b>Hi everybody.
I'm trying to add an serviceinvoice (DocType = 'Service Transaction') with DI Server AddObject method.
The xml-request document looks like this:</b>
<?xml version='1.0' encoding='UTF-16' ?>
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header>
<SessionID>........</SessionID>
</env:Header>
<env:Body>
<dis:AddObject xmlns:dis='http://www.sap.com/SBO/DIS'>
<BOM>
<BO>
<AdmInfo>
<Object>oInvoices</Object>
</AdmInfo>
<Documents>
<row>
<DocNum>1241</DocNum>
<HandWritten>1</HandWritten>
<DocDate>10/08/2005</DocDate>
<DocDueDate>10/08/2005</DocDueDate>
<CardCode>V1010</CardCode>
<DocType>S</DocType>
</row>
</Documents>
<Document_Lines>
<row>
<Currency>USD</Currency>
<LineTotal>7500,00</LineTotal>
<AccountCode>_SYS00000000001</AccountCode>
<TaxCode>LA</TaxCode>
</row>
<row>
<Currency>USD</Currency>
<LineTotal>-7500,00</LineTotal>
<TaxCode>LA</TaxCode>
</row>
</Document_Lines>
</BO>
</BOM>
</dis:AddObject>
</env:Body>
</env:Envelope>
<b>...But I get error eveytime I try to do it, the response document as follows:</b>
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Body>
<env:Fault>
<env:Code>
<env:Value>env:Receiver</env:Value>
<env:Subcode>
<env:Value>-1114</env:Value>
</env:Subcode>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">Schema Validation Failed</env:Text>
</env:Reason>
<env:Detail>
<ErrorList>
<Error>System Id = 193271344, Line Number = 1, Column Number = 359, Description = Datatype error: Type:InvalidDatatypeFacetException, Message: Invalid chars encountered..</Error><Error>System Id = 193271344, Line Number = 1, Column Number = 488, Description = Datatype error: Type:InvalidDatatypeFacetException, Message: Invalid chars encountered..</Error>
</ErrorList>
<Object>13</Object>
<ObjectIndex>1</ObjectIndex>
<Command>AddObject</Command>
<SessionID>............</SessionID>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>
<b>Why? Which fields are missing or which field values of those I'm sending might be wrong?</b>
Did you try to set the AccountCode also for the 2nd line?
HTH,
Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
9 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.