on 02-06-2019 9:33 AM
Hi Friends,
I want to cancel a closed delivery. I am sending the following structure to cancel delivery:
Before that I am doing the followings.
Sales Order add -> A/R Reserve Invoice -> Delivery(open)->Delivery(closed)
Now, I am trying to cancel the delivery which is closed.
<Envelopes> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> <env:Header> <SessionID> <xsl:value-of select ="$SessionID"/> </SessionID> </env:Header> <env:Body> <dis:CancelObject xmlns:dis="http://www.sap.com/SBO/DIS"> <BOM> <BO> <AdmInfo> <Object>oDelivery</Object> </AdmInfo> <QueryParams> <DocEntry>88</DocEntry> </QueryParams> </BO> </BOM> </dis:CancelObject> </env:Body> </env:Envelope> </Envelopes>
I am Getting an error 'Invalid execute command'
Please help as I am middle of Development.
Thanks
Surojit
The solution has been found. It is working in local SAP and client environment also. The following structure is needed to create a credit memo :
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header><SessionID>{0}</SessionID></env:Header><env:Body><dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS"><BOM><BO><AdmInfo><Object>oCreditNotes</Object></AdmInfo><Documents><row><DocObjectCode>14</DocObjectCode><DocType>dDocument_Items</DocType><DocDate>20190327</DocDate><DocDueDate>20190327</DocDueDate><CardCode>BPC001</CardCode><DocTotal>560.000000</DocTotal></row></Documents><Document_Lines><row><LineNum>1</LineNum><ItemCode>item001</ItemCode><ItemDescription>Kashmiri Green Apple</ItemDescription><Quantity>1.000000</Quantity><Price>560.000000</Price><BaseType>13</BaseType><BaseEntry>18</BaseEntry><BaseLine>0</BaseLine><UnitPrice>560.000000</UnitPrice><ActualBaseEntry>18</ActualBaseEntry><ActualBaseLine>0</ActualBaseLine></row></Document_Lines></BO></BOM></dis:AddObject></env:Body></env:Envelope>
where two things are very important in document lines section. One is "base entry" which should be the value of A/R Reserve Invoice's DocEntry and second one is "Actual Base Entry" which should be the value of Delivery's DocEntry. "ActualBaseLine" is also need to provide.
Thanks
Surojit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.