Skip to Content
0
Former Member
May 24, 2016 at 01:48 PM

Post Journal, DI Server + Tax

26 Views

Hi


Fairly new at this so forgive my naivety (and fluff) picked up someone elses code where they are posting documents/ document_lines to the SAP DI Server, via a soap (xml message) this all works well (including Tax), and appear in the Purchasing->AP Invoice “tray”


They also want to post Journal’s, so I have changed to message to JournalEntries with JournalEntries_Lines, changed the lineamount to Credit/Debit, and a few other changes that the errors indicated I should do, however I can’t get TaxCode to get passed across, VatGroup I get “Property x of JournalEntryLine” is invalid. TaxCode just gets consumed.

If I set VatAmount, I get told that “Vat Fields can only be edited in Automatic VAT Mode” if I have AutoVat = “Y” then I get told “You cannot edit VAT Amount Field”

I’ve tried to find examples of how to post tax, with no success …

Below is the message that posts ok … but no VAT

<?xml version=\"1.0\"?>

<env:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\">

<env:Header>

<SessionID>44657F11-A39A-49F9-9F70-3FDEBAB54656</SessionID>

</env:Header>

<env:Body>

<dis:AddObject CommandID=\"\" xmlns:dis=\"http://www.sap.com/SBO/DIS\">

<BOM>

<BO>

<AdmInfo>

<Object>oJournalEntries</Object>

</AdmInfo>

<JournalEntries>

<row>

<AutoVAT>Y</AutoVAT>

<TaxDate>5/24/2016</TaxDate>

</row>

</JournalEntries>

<JournalEntries_Lines>

<row>

<AccountCode>112020</AccountCode>

<Debit>100</Debit>

<TaxCode>O1</TaxCode>

<TaxDate>5/24/2016</TaxDate>

</row>

<row>

<AccountCode>140070</AccountCode>

<Credit>100</Credit>

</row>

</JournalEntries_Lines>

</BO>

</BOM>

</dis:AddObject>

</env:Body>

</env:Envelope>