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

Post Journal, DI Server + Tax



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=\"\" xmlns:xsd=\"\" xmlns:env=\"\">





<dis:AddObject CommandID=\"\" xmlns:dis=\"\">