Ansicht
Dokumentation
/SAPAPO/OM_SPP_PUR_REQ_GET - Get SPP Purchase Requisition Orders
ABAP Short Reference General Material DataThis documentation is copyright by SAP AG.
Functionality
This function module enables you to read SPP (Spare Parts Planning) purchase requisitions. SPP_PUR_REQ_GET can read SPP purchase requisitions (order type gc_om_spp_pur_req) only.
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.
The function module /SAPAPO/OM_SPP_FORECAST_GET works as follows:
- If the parameter IV_USE_ORDER is set to GC_TRUE, the transfer table IT_SPP_ORDER is used; otherwise the table IT_PEGID_TO is used to call the function module /SAPAPO/OM_PEGID_SELECT_ORDERS.
- Orders, activities, input nodes, and output nodes are read with the function module /SAPAPO/OM_ORDER_GET_DATA.
- The orders, activities, input nodes, and output nodes are sorted.
- SPP orders are constructed from orders (headers), together with activities, input nodes, and output nodes (precisely one activity, input node, and output node for each schedule line).
Example
Notes
Further information
Parameters
ET_RCET_SPP_PUR_REQ_HEADER
ET_SPP_PUR_REQ_LINE
IS_GEN_PARAMS
IT_CATEGORY_TO
IT_PEGID_TO
IT_SPP_ORDER
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_SPPTXBHW - Original Tax Base Amount in Local Currency ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 2531 Date: 20240423 Time: 081526 sap01-206 ( 40 ms )