2007 Aug 22 10:45 AM
Hi
Im about to write a program that shall do GL postings based on IDocs, using standard FM BAPI_ACC_DOCUMENT_POST.
The challenge is that the program shall return the results of the postings back to the sending system in XML-format.
The interface team has defined an XML/XSD/WSDL document containing the required structure:
<i><?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Receipt xmlns:ns0="http://www.compello.com/xi/glposting">
<Header>
<Filler1/>
<Title/>
<Filler2/>
<Filler3/>
<Filler4/>
<Filler5/>
<Filler6/>
<Filler7/>
<Filler8/>
<b><Bilagsnr/></b>
<Filler9/>
</Header>
<b><Error> (Occurrence = 0 .. unbounded)
<Filler1/>
<ErrorCode/>
<ErrorText/>
</Error></b>
</ns0:MT_Receipt></i>
and Im supposed to fill this structure with the reference document number in the element <Bilagsnr/> and all messages returned from the BAPI (except those of type I and S) in the <Error>-table.
I have tried to understand what to do by looking into several threads, but as I am quite a novice when it comes to XML, Im still a bit uncertain of how to solve this task.
Can anyone give an example how to solve this, preferably referring to the above described structure?
Im working on an SAP ECC 6.0 system.
Thanks
2007 Aug 29 1:31 PM
Not exactly a rush of answers, maybe I should have posted it in the XI forum instead. However, I finally managed to resolve it myself.
Message was edited by:
Ole Kristian Branæ