Ansicht
Dokumentation

/SAPAPO/OM_SPP_FC_EXT_MODIFY - Create/Change/Delete SPP ForecastExt Orders

/SAPAPO/OM_SPP_FC_EXT_MODIFY - Create/Change/Delete SPP ForecastExt Orders

CPI1466 during Backup   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module enables you to create, change, and delete SPP (Spare Parts Planning) ForecastExt (Ext = extended) orders. SPP_FC_EXT_MODIFY processes SPP ForecastExt orders only (order type gc_om_spp_forecast_ext).

SPP ForecastExt orders have the following special properties:

  • Defined structure: For each order object, there are n schedule lines, each with an activity and an input node.

  • All input nodes have the same ATP category and the same ATP category type.

  • All input nodes are in the same pegging area.

  • There is only one SPP ForecastExt order for each pegging area/CATEGORY combination.

  • SPP ForecastExt orders are not involved in pegging, do not update the ATP time series, are not copied to SAP systems using CIF, and do not trigger alerts.

  • SPP ForecastExt orders can be created, changed, or deleted by /SAPAPO/OM_SPP_FC_EXT_MODIFY only. Deletions are also possible with /SAPAPO/OM_ORDER_CHANGE (method APO_DELETE). If you attempt to modify an SPP ForecastExt order with a different LCA routine, this LCA routine will return the return code 342 = om_spp_not_allowed: SPP orders cannot be changed.

The function module /SAPAPO/OM_SPP_FC_EXT_MODIFY works as follows:

  • Change/delete: If an SPP forecast order with the GUID PEGID already exists, then those schedule lines (of the order) whose time interval [SPP_LINE_BUCKET_START, SPP_LINE_BUCKET_END] (saved in the activity) is in the specified selection interval [IV_START_TIME, IV_END_TIME] are replaced by the schedule lines in the table IT_SPP_FORECAST_LINE.

  • IT_USE_ORDER_IDS = true: The specified ORDERIDs are used.

  • IT_USE_ORDER_IDS = false: liveCache determines the GUIDs for the order from the specified pegging area/CATEGORY combination.

  • Creating a new order: If an order does not yet exist with this pegging area/CATEGORY combination, a new SPP ForecastExt order is created with the appropriate schedule lines.

  • Change/delete: If an SPP ForecastExt order with the pegging area/CATEGORY already exists, then those schedule lines (of the order) whose time interval [SPP_LINE_BUCKET_START, SPP_LINE_BUCKET_END] (saved in the activity) is in the specified selection interval [IV_START_TIME, IV_END_TIME] are replaced by the schedule lines in the table IT_SPP_FORECAST_EXT_LINE.

If the table IT_SPP_FORECAST_EXT_LINE is empty and the order no longer has any schedule lines after the replacement (for example, the selection interval [IV_START_TIME, IV_END_TIME] = [GC_MINTIME, GC_MAXTIME]), the order is deleted.

This means that an SPP ForecastExt order always has at least one schedule line.

Example

Notes

Further information





Parameters

ET_RC
IS_GEN_PARAMS
IT_SPP_FORECAST_EXT_HEADER
IT_SPP_FORECAST_EXT_LINE
IV_END_TIME
IV_START_TIME
IV_USE_ORDER_IDS

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_SPP

Vendor Master (General Section)   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 3914 Date: 20240329 Time: 100348     sap01-206 ( 66 ms )