Ansicht
Dokumentation
/SAPAPO/OM_DRP_DS_REQ_GET - Get Aggregated Quantities for Pegging Area and Categories
CPI1466 during Backup General Data in Customer MasterThis documentation is copyright by SAP AG.
Functionality
This function aggregates and returns the receipt quantities and issue quantities for the pegging area/CHARACTID combinations defined in IT_PEGAREA, for the categories defined in IT_CATEGORY, for the time intervals [START_TIME, END_TIME] in IT_TIME_INTERVAL, and for the I/O node types specified in IV_IONODE_PEG_SEL. Issue quantities have a negative sign; receipt quantities have a positive sign. If the field CHARACTID is initial for an entry in IT_PEGAREA, the selection ignores descriptive characteristics.
If IT_ORDER_TYPE is not empty, the aggregation only includes those receipts or issues whose order type is in the table IT_ORDER_TYPE.
If IT_ORDER_EXCLUDE is not empty, the aggregation only includes those receipts or issues whose order type is NOT in the table IT_ORDER_TYPE.
If IT_ORDER_STATUS is not empty, the aggregation only includes those receipts or issues whose order status is in the table IT_ORDER_TYPE.
If IT_EXT_FIXED is not empty, the aggregation only includes those receipts or issues whose order status is in the table IT_EXT_FIXED. In this case, different EXT_FIXED values are aggregated separately.
The parameter IV_AGGREG_SEL controls whether the aggregation creates totals separately by order status values.
- If IV_AGGREG_SEL = GC_SCATTER_BY_PEG_CAT, there is only a separate aggregation by pegging area/ATP category combination (if IT_EXT_FIXED is not empty, by EXT_FIXED as well).
- If IV_AGGREG_SEL = GC_SCATTER_BY_PEG_CAT_STATUS, there is a separate aggregation by pegging area/ATP category/order status combination (if IT_EXT_FIXED is not empty, by EXT_FIXED as well).
If IV_AGGREG_PERIOD > 0, the base time IV_AGGREG_BASE_TIME and the period length IV_AGGREG_PERIOD are used to define a profile of time buckets [IV_AGGREG_BASE_TIME + n x IV_AGGREG_PERIOD, IV_AGGREG_BASE_TIME + (n+1) x IV_AGGREG_PERIOD], n = ..., -3, -2, -1, 0, 1, 2, 3, ... , in each of which there is a separate aggregation.
- IV_IONODE_PEG_SEL defines the types of I/O nodes (for example, all I/O nodes or just input nodes) used for the aggregation of receipt quantities or issue quantities.
ET_RC contains return codes for pegging areas with processing errors.
Example
Notes
Return codes (see table ET_RC):
- om_invalid_pegarea: A pegging area with this key does not exist in liveCache.
- om_invalid_time_interval: In the time interval for this pegging area, START_TIME is greater than END_TIME.
Further information
Parameters
ET_AMOUNTET_RC
IS_GEN_PARAMS
IS_TIME_INTERVAL
IT_AFS_CAT_FROM
IT_AFS_CAT_TO
IT_CATEGORY_FROM
IT_CATEGORY_TO
IT_PEGAREA_FROM
IT_PEGAREA_TO
IV_IO_SEL
IV_SIMSESSION
Exceptions
LC_APPL_ERRORLC_COM_ERROR
LC_CONNECT_FAILED
Function Group
APO/SAPLOM_TRANSFERrdisp/max_wprun_time - Maximum work process run time PERFORM Short Reference
This documentation is copyright by SAP AG.
Length: 3247 Date: 20240328 Time: 145018 sap01-206 ( 61 ms )