/SAPAPO/OM_SPP_FC_EXT_MODIFY - Create/Change/Delete SPP ForecastExt Orders
Fill RESBD Structure from EBP Component Structure BAL Application Log DocumentationThis documentation is copyright by SAP AG.
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 modifyan 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 schedulelines (of the order) whose time interval [SPP_LINE_BUCKET_START, SPP_LINE_BUCKET_END] (saved in theactivity) 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 thoseschedule lines (of the order) whose time interval [SPP_LINE_BUCKET_START, SPP_LINE_BUCKET_END] (savedin 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 afterthe 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_RCIS_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_ERRORLC_COM_ERROR
LC_CONNECT_FAILED
Function Group
APO/SAPLOM_SPPABAP Short Reference Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 3712 Date: 20120525 Time: 090014 triton ( 151 ms )






