/SAPAPO/OM_SPP_PUR_REQ_MODIFY - Create/Change/Delete SPP Purchase Requisition Orders
TXBHW - Original Tax Base Amount in Local Currency ROGBILLS - Synchronize billing plansThis documentation is copyright by SAP AG.
Functionality
This function module enables you to create, change, and delete SPP (Spare Parts Planning) purchase requisitions.
SPP_PUR_REQ_MODIFY processes SPP purchase requisitions only (order type gc_om_spp_pur_req).
SPP purchase requisitions have the following special properties:
- Defined structure: For each order object, there are n schedule lines, each with an activity, an input node, and an output node.
- All input nodes have the same ATP category and the same ATP category type.
- All output nodes have the same ATP category and the same ATP category type.
- All output nodes are in the same pegging area.
- There is only one SPP purchase requisition for each pegging area/CATEGORY_TO combination.
- SPP purchase requisitions 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 purchase requisitions can be created, changed, or deleted by /SAPAPO/OM_SPP_PUR_REQ_MODIFY only.Deletions are also possible with /SAPAPO/OM_ORDER_CHANGE (method APO_DELETE). If you attempt to modifyan SPP purchase requisition 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_PUR_REQ_MODIFY works as follows:
- 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_TO combination.
- Creating a new order: If an order does not yet exist with this pegging area/CATEGORY_TO combination, a new SPP purchase requisition is created with the appropriate schedule lines.
- Change/delete: If an SPP purchase requisition with this pegging area/CATEGORY_TO combination alreadyexists, then those schedule lines (of the order) whose time (SPP_LINE_TIME_TO) is in the specified selection interval [IV_START_TIME, IV_END_TIME] are replaced by the schedule lines in the table IT_SPP_PUR_REQ_LINE.
- If the table IT_SPP_PUR_REQ_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 purchase requisition always has at least one schedule line.
Example
Notes
Further information
Parameters
ET_RCIS_GEN_PARAMS
IT_SPP_PUR_REQ_HEADER
IT_SPP_PUR_REQ_LINE
IV_END_TIME
IV_SIMSESSION
IV_START_TIME
IV_USE_ORDER_IDS
Exceptions
LC_APPL_ERRORLC_COM_ERROR
LC_CONNECT_FAILED
Function Group
APO/SAPLOM_SPPFill RESBD Structure from EBP Component Structure Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 3409 Date: 20120525 Time: 090615 triton ( 138 ms )






