I need an user exist for delivery that when there is an exicise invoice is there ( J1ij) depot invoice. The delivery should not be deleted.
Since people are deleting the delivery when there is an excise invoice is there. This should not happen.
There is no straight way to achieve this through some routine or configuration. You need to go with delivery exit MV50AFZ1 where your ABAPer should add a code such that whenever VL09 is executed, system should, in the background, check for Field STATUS from table J_1IEXCHDR where the status should not be B or D or R.
Delivery related exits
Customer exits (CMOD transaction)
Enhancement code Description
V50PSTAT Delivery: Item Status Calculation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50R0001 Collective processing for delivery creation
V50R0002 Collective processing for delivery creation
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50S0001 User Exits for Delivery Processing
V53C0001 Rough workload calculation in time per item
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53W0001 User exits for creating picking waves
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
V02V0001 Sales area determination for stock transport order
V02V0002 User exit for storage location determination
V02V0003 User exit for gate + matl staging area determination (headr)
V02V0004 User Exit for Staging Area Determination (Item)