SAP ABAP IMG Activity SD_DELIVERY_GROUP_DE (BAdI: Deletion of Delivery Groups in SD Documents)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM-BF (Application Component) Basic Functions
     ATPG (Package) From APO Interfaces bapi_apotp_check
IMG Activity
ID SD_DELIVERY_GROUP_DE BAdI: Deletion of Delivery Groups in SD Documents  
Transaction Code S_EBJ_98000229   (empty) 
Created on 20130130    
Customizing Attributes SD_DELIVERY_GROUP_DE   BAdI: Deletion of Delivery Groups in SD Documents 
Customizing Activity SD_DELIVERY_GROUP_DE   BAdI: Deletion of Delivery Groups in SD Documents 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name SD_DELIVERY_GROUP_DE    

Use

This Business Add-In (BAdI) is used in the Availability Check component (SD-BF-AC). This BAdI is only relevant if you execute the ATP check with global available-to-promise in SAP Advanced Planning and Optimization (SAP APO) and use the global ATP multi-item single delivery location (MISL). This BAdI is called if you have deleted a delivery group or the assignment of an item to a delivery group in an SD document.

Note

The following actions cause a delivery group or a delivery group assignment to be deleted:

  • You remove the complete delivery indicator from the header of the SD document.
  • This causes the delivery group 0, which was automatically created when the complete delivery indicator was set, to be removed from all items and the delivery group to be deleted in ERP and SAP APO.
  • You remove the delivery group from an item.
  • This causes the assignment of the item to this delivery group to be deleted in ERP and in SAP APO. The delivery group itself is not deleted until the delivery group no longer has any items assigned to it.

You can use this BAdI to trigger follow-up activities in SAP APO and in the SD document. For example, you can have SAP APO also delete the MISL group or MISL group assignment that it created based on the delivery group or delivery group assignment.

Note

Delivery groups and delivery group assignments are sent to SAP APO when the delivery group correlation in SAP APO is called in the SD document (for example, automatically when setting the complete delivery indicator or manually). If the required Customizing settings have been made, a MISL group is automatically created in SAP APO for each delivery group and an item assigned to the delivery group is also assigned to the MISL group.

MISL groups and MISL group assignments are independent objects. If you delete a delivery group or a delivery group assignment in ERP, the delivery group or delivery group assignment is automatically deleted in SAP APO. However, the MISL group or MISL group assignment in SAP APO are not deleted in the standard system. If you want them to be deleted, you need to implement this BAdI.

This BAdI contains the following methods:

  • Trigger MISL Deletion Call to APO (ATP_MELL_LIEFERDATUM_RESET)

    You can use this method to trigger the deletion call the system sends to SAP APO after a delivery group or delivery group assignment has been deleted in the SD document so that the corresponding MISL group or MISL group assignment is also deleted. To trigger the deletion call, this method must set the parameter EV_MELL_DELETE to X. Based on this parameter value, the standard source code executes the actual deletion call.

  • Trigger ATP Check for All Items of SD Document (ATP_MELL_FORCE_ATPCHECK_DOC)

    You can use this method to trigger an ATP check for all items of the SD document after you have removed the complete delivery indicator. To trigger the ATP call, the method must set the parameter EV_FORCE_CHECK to X. Based on this parameter value, the standard source code executes the actual ATP call.

    To be able to use this method, there must be an implementation of method ATP_MELL_LIEFERDATUM_RESET. Reason: The MISL groups and MISL group assignments must be cleaned up in SAP APO before the ATP check starts.

Requirements

Standard settings

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

BAdI Implementations

The default implementation Trigger of MISL Deletion Call to APO (CL_IM_SD_DELIVERY_GROUP_DELETE) uses the method Trigger MISL Deletion Call to APO (ATP_MELL_LIEFERDATUM_RESET). After you have deleted a delivery group or delivery group assignment in the SD document, the default implementation checks if the ATP check will run for the location product of the item in SAP APO. If so, the default implementation sends a call to SAP APO so that a corresponding MISL group or MISL group assignment is also deleted. Note that ERP does not have any information as to whether or not an item is actually assigned to a MISL group in SAP APO.

If you want to use this BAdI implementation, you must activate it in Customizing for Sales and Distribution. Choose Basic Functions -> Availability Check and Transfer of Requirements -> Business Add-Ins (BAdIs) -> BAdI: Deletion of Delivery Groups in SD Documents.

Activities

Example

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG SD_DELIVERY_GROUP_DE 0 HLA0006562 Availability Check 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20130130 
SAP Release Created in 617