/SAPAPO/OM_SPP_FORECAST_MODIFY - Create/Change/Delete SPP Forecast Orders
ROGBILLS - Synchronize billing plans General Material DataThis documentation is copyright by SAP AG.
Functionality
This function module enables you to create, change, and delete SPP (Spare Parts Planning) forecast orders. SPP_FORECAST_MODIFY processes SPP forecast orders only (order type gc_om_spp_forecast).
SPP forecast 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.
- For each pegging area, there is only one SPP forecast order. For this reason, the parameter PEGID is used as the GUID of the SPP forecast order.
- SPP forecast 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 forecast requisitions can be created, changed, or deleted by /SAPAPO/OM_SPP_FORECAST_MODIFYonly. Deletions are also possible with /SAPAPO/OM_ORDER_CHANGE (method APO_DELETE). If you attempt tomodify an SPP forecast 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_FORECAST_MODIFY works as follows:
- Creating a new order: If there is no order yet with the GUID PEGID, an SPP forecast order with the GUID and the appropriate specified schedule lines is created.
- 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.
- If the table IT_SPP_FORECAST_LINE is empty and the order no longer has any schedule lines after thereplacement (for example, the selection interval [IV_START_TIME, IV_END_TIME] = [GC_MINTIME, GC_MAXTIME]), the order with the GUID PEGID is deleted.
This means that an SPP forecast order always has at least one schedule line.
Example
Notes
Further information
Parameters
ET_RCIS_GEN_PARAMS
IT_SPP_FORECAST_HEADER
IT_SPP_FORECAST_LINE
IV_END_TIME
IV_START_TIME
Exceptions
LC_APPL_ERRORLC_COM_ERROR
LC_CONNECT_FAILED
Function Group
APO/SAPLOM_SPPRFUMSV00 - Advance Return for Tax on Sales/Purchases rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 2967 Date: 20120525 Time: 090514 triton ( 110 ms )






