Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

/SAPAPO/OM_DRP_AMOUNT_GET - Get Aggregated Quantities for Pegging Area and Categories

/SAPAPO/OM_DRP_AMOUNT_GET - Get Aggregated Quantities for Pegging Area and Categories

BAL Application Log Documentation   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

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_AMOUNT
ET_RC
IS_GEN_PARAMS
IT_AFS_CAT
IT_CATEGORY
IT_CHARACT_REQ_OUTNODE
IT_CHARACT_VAL_INPNODE
IT_EXT_FIXED
IT_ORDER_EXCLUDE
IT_ORDER_STATUS
IT_ORDER_TYPE
IT_PEGAREA
IT_PEGAREA_CHAR_CLASS
IT_SHLF_INTERVAL
IT_TIME_INTERVAL
IV_AGGREG_BASE_TIME
IV_AGGREG_PERIOD
IV_AGGREG_SEL
IV_INTERVAL_ENDPOINTS
IV_IONODE_PEG_SEL
IV_SIMSESSION

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_TRANSFER

Addresses (Business Address Services)   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 3478 Date: 20211204 Time: 030838     sap01-206 ( 68 ms )