Ansicht
Dokumentation

SPP_INC_LAST_NETDEM - BAdI: Calculate Date of Last Net Demand

SPP_INC_LAST_NETDEM - BAdI: Calculate Date of Last Net Demand

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

The Business Add-In (BAdI) /SAPAPO/INC_LAST_NETDEMANDis used in the Service Parts Planning (SPP) application component.

You use this BAdI to define when distribution requirements planning (DRP) calculates a net demand for a location product for the final time. You can also define when distribution requirements planning (DRP) considers safety stock for a location product for the final time.

It is sensible, for example, to no longer calculate the net demand or consider the safety stock of a location product after a certain time for predecessor products in product supersession. A forecast or safety stock possibly still exists for the predecessor product in a product supersession.

In this BAdI, you can use the method EP_CP_DATE_GET to define to which date DRP calculates a net demand for the entry location for the final time (or if this is supplied by a contract packager for storage, the final date for this contract packager for storage). You use the method NON_EP_CP_DATE_GET to define which date DRP calculates a net demand for a child location for the final time. You use the method DATE_SAFETY_STOCK_GET to define which date DRP calculates a net demand for a location product for the final time.

The BAdI is not filter-dependent.

The BAdI is not designed for multiple use.

The BAdI is active in the standard setup.

In the standard implementation, DRP determines the date up to which it calculates a net demand for a location product for the final time, only for entry locations. If the BAdI is called for a child location (or a contract packager for storage of an entry or child location), then it calculates the date of the corresponding entry location. DRP differentiates between product supersession with a successor product and product supersession without a successor product (one-to-zero substitution).

Note:
If a location product is part of multiple supersessions, the system determines the date of the final net demand calculation for each of these supersessions and chooses the latest date.

For supersession without successor product, DRP proceeds as follows:

  • Date of final net demand calculation = successor product-planning date

For supersession with successor product(s), DRP proceeds as follows:

  • If the use-up strategy is set to No, then DRP sets the date of the final net demand calculation to the day before the valid from date of the supersession.
  • Otherwise DRP proceeds as follows:
  1. DRP adds the duration of the limited freeze horizon of the successor product to the valid from date of the supersession. If the location in the bill of distribution (BOD) of the successor product is not an entry location, the system determines the entry location of this location and defines the limited freeze horizon at this entry location.
  2. DRP compares the date determined in step a with the stock exhaustion date and choose the later date as the date for the final net demand calculation.

In the standard implementation, DRP determines the date up to which it considers safety stock for a location product for the final time, only for entry locations. If the BAdI is called for a child location (or a contract packager for storage of an entry or child location), then it calculates the date of the corresponding entry location. DRP differentiates between product supersession with a successor product and product supersession without a successor product (one-to-zero substitution).

Note:
If a location product is part of multiple supersessions, the system determines the date of the final consideration of safety stock for each of these supersessions and chooses the latest date.

For supersession without successor product, DRP proceeds as follows:

  • Date of final consideration of safety stock = day before valid from date of supersession

For supersession with successor product(s), DRP proceeds as follows:

  • If the use-up strategy is set to No, then DRP sets the date of the final consideration of safety stock to the day before the valid from date of the supersession
  • Otherwise DRP sets the date of the final consideration of safety stock to the successor product receipt date

For more information about the above date values, see Product Assistancefor SAP S/4HANAon SAP Help Portal at https://help.sap.com/viewer/product/SAP_S4HANA_ON-PREMISE/1909.000/en-US. In Product Assistance, choose Enterprise Business Applications -> Supply Chain -> Extended Service Parts Planning (eSPP) -> Master Data and General Functions for eSPP -> Product Interchangeability in eSPP -> Supersession.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

This BAdI uses the interface /SAPAPO/IF_EX_INC_LAST_NETDMD. For more information, display the interface in the class builder.






PERFORM Short Reference   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 6323 Date: 20240523 Time: 172441     sap01-206 ( 174 ms )