Inbound Delivery No Goods Movement In MD04

How to delete an old ASN/inbound delivery using Tcode: VL32N. For this inbound delivery, related GR and IR was reversed.
I get the error:
System cancels the deletion process.

Possible causes include:
Document items have already been invoiced.
Doc items cannot be deleted because of goods movement status.

In Inbound delivery, the GR status is C-Completed. POD (Proof of delivery) - A (Relevant w/o differences).

Solution:

You will not be able to delete since you have reversed the goods receipt in this case.  One thing that you can do is to set to inbound quantity to zero.  For that you have to implement the program ZCORR_EKESMENGE.

Take a look the following oss notes:

199703 - Goods receipt for inbound delivery using MB0A, MIGO, VL32 
521164 - MD04: Correction EKES-MENGE after reversal of goods receipt
491785 - Return delivery after GR with VL32 or VL32N

PROGRAM ZCORR_EKESMENGE

** ------------------------------------------------------------------ **
** This report corrects the field EKES-MENGE and sets it to the
** quantity of the field EKES-DABMG if the confirmation is a shipping
** notification and the quantity of the shipping notification can not
** be changed via transaction VL32/VL32N.
** For further information see note 521164
** ------------------------------------------------------------------ **

Once you run the program ZCORR_EKESMENGE, your completed No Goods Movement Inbound Delivery will disappear from MD04.

or

Just asked your Abaper to create a simple program to update the field EKES-DABMG = EKES-MENGE.

tables: ekes.

clear: ekes.

select single * from ekes where ebeln = ZMD04-EBELN
                            and ebelp = ZMD04-EBELP
                            and etens = '1'.

if sy-subrc = 0.
EKES-DABMG = EKES-MENGE.
MODIFY EKES.
write:/ 'EKES ', EKES-EBELN, EKES-EBELP, EKES-MENGE,
                  EKES-DABMG.
else.
write:/ 'Not found', ZMD04-EBELN, ZMD04-EBELP.
endif.

Notes:

ekes-etens -> Browse the table using SE16 first to get the correct ETENS number to be input as a selection parameter.

SAP SD Tips

Also Read
Delivery Item And Shipment Cost Item

Get help for your SAP SD problems
SAP SD Forums - Do you have a SAP SD Question?

SAP Sales and Distribution Books
SAP SD Books  - Certification, Interview Questions and Configuration

Delivery Hints
SAP Logistics Execution

SAP Sales and Distribution Tips
SAP SD Discussion Forum and Sales/Distribution Tips

Main Index
SAP ERP Modules, Basis, ABAP and Other IMG Stuff

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.