Skip to Content

DI Server - Delivery Cancel

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.

http://www.w3.org/2003/05/soap-envelope"> http://www.sap.com/SBO/DIS"> oDelivery 88

I am Getting an error 'Invalid execute command'

Please help as I am middle of Development.

Thanks

Surojit

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Mar 27 at 06:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded