Skip to Content
0
Former Member
May 27, 2008 at 12:45 PM

DI Server Journal Entry

164 Views

I am having problems trying to figure out the syntax for my DI Server command to create a journal entry. I have not been able to find an example of the actual command. I know that I am very close, I can log onto the service and the service is responding. I know it will be somthing obvious and simple, but for now I am stumped.

<?xml version="1.0" ?>

http://schemas.xmlsoap.org/soap/envelope/">

<env:Header>

<SessionID>ECC3C365-41EA-DF50-A7F8-D4D49792CC18</SessionID>

</env:Header>

<env:Body>

http://www.sap.com/SBO/DIS/">

<BOM>

<BO>

<AdmInfo>

<Object>30</Object>

</AdmInfo>

<JournalEntries>

<row>

<Memo>Estimated Accrual from Invoice</Memo>

<ProjectCode>1000</ProjectCode>

</row>

</JournalEntries>

<JournalEntries_Lines>

<row>

<AccountCode>_SYS00000000214</AccountCode>

<Credit>25</Credit>

<ProjectCode>1000</ProjectCode>

<U_SubJobID>1000001</U_SubJobID>

<U_ItemNo>Tile</U_ItemNo>

</row>

<row>

<AccountCode>_SYS00000000215</AccountCode>

<Debit>25</Debit>

<ProjectCode>1000</ProjectCode>

<U_SubJobID>1000001</U_SubJobID>

<U_ItemNo>Tile</U_ItemNo>

</row>

</JournalEntries_Lines>

</BO>

</BOM>

</dis:AddObject>

</env:Body>

</env:Envelope>

This is the result from the DI Server;

<?xml version="1.0" ?>

http://www.w3.org/2003/05/soap-envelope">

<env:Body>

<env:Fault>

<env:Code>

<env:Value>env:Receiver</env:Value>

<env:Subcode>

<env:Value>-2053</env:Value>

</env:Subcode>

</env:Code>

<env:Reason>

<env:Text xml:lang="en">Could not Generate XML Schema</env:Text>

</env:Reason>

<env:Detail>

<Object>NotFound---</Object>

<Object>NotFound---</Object>

<ObjectIndex>1</ObjectIndex>

<Command>AddObject</Command>

<CommandID>Add object</CommandID>

<SessionID>DC703486-75C0-ADED-97D1-0E10D8197155</SessionID>

</env:Detail>

</env:Fault>

</env:Body>

</env:Envelope>

It obviously has a problem with how I am defiing my journalentries and journalentries_lines, but without an example to check my syntax against I am not sure what the object definition should look like. The original schema I used had the oJournalEntries in the object. I substituted that for the object value because using the values worked better for me when I was getting a session ID.

Any help would be appreciated, I am sure that this is trivial once you have successfuly submitted a transaction once. Just a matter of getting it to work once.