cancel
Showing results for 
Search instead for 
Did you mean: 

Post Journal, DI Server + Tax

Former Member
0 Kudos
75

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>

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Managed to work it, simply a case that TaxCode should have been TaxGroup , all seems to work fine now

Is it possible to post Tax without passing in a Tax code, just the figures ?