cancel
Showing results for 
Search instead for 
Did you mean: 

DI Server - Delivery Cancel

former_member209771
Active Participant
0 Kudos
186

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member209771
Active Participant
0 Kudos

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

former_member209771
Active Participant
0 Kudos

My ultimate aim was to create "Credit Memo" after Delivery. This is the solution for that.