/SAPAPO/OM_ORDER_GET - Get Orders for Activities, Resources, and Pegging Areas
ABAP Short Reference Vendor Master (General Section)This documentation is copyright by SAP AG.
Functionality
The accompanying orders for the Pegging Area Keys (UIDs) in IT_RES, the activity keys (UIDs) in IT_ACT and the Pegging Area Keys (UIDs) in IT_PEGAREA are output in ET_ORDER.
For IT_RES, only those orders belonging to activities that are scheduled to a resource from IT_RES and overlap the time interval [IV_START_TIME, IV_END_TIME] are considered.
For IT_PEGAREA only those orders that have I/O nodes within the time interval [IV_START_TIME, IV_END_TIME[ and belong to pegging areas from T_PEGAREA are considered.
For IT_ACT, no check is made on a time interval. This means that all orders that belong to IT_ACT are output.
If IV_GET_ALL_PEG_DEPENDANTS = 'X', all orders that are linked to the first orders selected either directly or indirectly by pegging relationships are also recursively output in ET_ORDER.
If IV_GET_IO = 'X', information about the input/output nodes linked with the orders in IT_ORDER is returned in ET_IO.
The parameter IV_CONSTR_SELECTION controls what information about constraints between the activities should be returned in ET_CONSTR.
- If IV_CONSTR_SELECTION = 0, no constraint information is returned to ET_CONSTR.
- If IV_CONSTR_SELECTION = 1, only constraints between activities that both have orders in IT_ORDER are returned in ET_CONSTR.
- If IV_CONSTR_SELECTION = 2, all constraints that have at least one activity that belongs to an order in IT_ORDER are returned to ET_CONSTR.
The parameter IV_PEG_SELECTION controls what information about pegging relationships between the activities should be returned in the table ET_PEG:
- If IV_PEG_SELECTION = 0, no pegging information is returned in ET_PEG.
- If IV_PEG_SELECTION = 1, only pegging relationships between activities that both have orders in IT_ORDER are returned in ET_PEG.
- If IV_PEG_SELECTION = 2, all pegging relationships that have at least one order in IT_ORDER are returned in ET_PEG.
The parameter IV_ORDER_TYPE controls whether only orders of a certain type should be considered. If IV_ORDER_TYPE is blank, no filtering of certain order types will take place.
In ET_RC, individual error codes are returned for those pegging areas where errors were determined in processing.
Example
Notes
Return codes to be queried (see table ET_RC):
- om_invalid_resource: Invalid resource
- om_invalid_activity: Invalid activity
- om_invalid_pegarea: Invalid pegging area
Further information
Parameters
ET_CONSTRET_IO
ET_ORDER
ET_PEG
ET_RC
IS_GEN_PARAMS
IT_ACT
IT_CHARACT_REQ_OUTNODE
IT_CHARACT_VAL_INPNODE
IT_PEGAREA
IT_RES
IV_ACT_PLANNED_STATUS_SEL
IV_CONSTR_SELECTION
IV_END_TIME
IV_GET_ALL_PEG_DEPENDANTS
IV_GET_SUBORDERS
IV_IO_SEL
IV_ORDER_TYPE
IV_ORD_PLANNING_TYPE_SEL
IV_PEGAREA_SEL
IV_PEG_SELECTION
IV_RPM_GET_VIRTUAL_INPUTS
IV_SIMSESSION
IV_START_TIME
Exceptions
LC_APPL_ERRORLC_COM_ERROR
LC_CONNECT_FAILED
Function Group
APO/SAPLOM_PLANNINGTABLEGeneral Data in Customer Master ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 5937 Date: 20120525 Time: 043701 triton ( 115 ms )






