/SAPAPO/OM_STOCK_GET - Get Supply Objects from liveCache
ROGBILLS - Synchronize billing plans ABAP Short ReferenceThis documentation is copyright by SAP AG.
Functionality
This function identifies the items for the stock item keys specified in IT_STOCK_KEY and copies them to ET_STOCK_POS.
You can use IV_ANCHOR_FIELDS to control whether the anchor table-related fields in the ET_STOCK_POStable (ADDLOCID, MATID) are filled. This switch is performance-relevant, since it requires SQL table accesses to determine these fields:
- If IV_ANCHOR_FIELDS is set to GC_DO_NOT_USE_ANCHOR (default), the affected fields are not calculated; instead, they have their default values.
- If IV_ANCHOR_FIELDS is set to GC_USE_ANCHOR, the affected fields are filled from the /SAPAPO/STOCKANC table in liveCache.
GET_PEG is used to control whether pegging relationships are returned:
- If GET_PEG is set to GC_FALSE (default), no pegging relationships are returned.
- If GET_PEG is set to GC_TRUE, pegging relationships are returned.
If GET_PEG is set to GC_TRUE, GET_FIX_PEG_ONLY controls whether only fixed pegging relationships are returned:
- If GET_FIX_PEG_ONLY is set to GC_FALSE (default), both fixed and dynamic pegging relationships are returned.
- If GET_FIX_PEG_ONLY is set to GC_TRUE, only fixed pegging relationships are returned.
For negative quantities, GET_HIDDEN_ATTR controls whether "hidden" attributes (such as stock time and shelflife data) are returned instead of the planning-relevant values of these attributes.
Any existing characteristic value assignments (for stock with a positive quantity) or characteristic requirements (for stock with a negative quantity) are returned in ET_CHARACT_VAL_OUTNODE.
ET_RC contains return codes for stock objects with processing errors.
Example
Notes
Return codes (see table ET_RC):
- om_invalid_order:
- No (stock) object with this key exists in liveCache.
- om_invalid_order_type:
- The object with this key is not a stock object and has a different order type.
Further information
Parameters
ET_CHARACT_VAL_OUTNODEET_PEG
ET_RC
ET_STOCK
IS_GEN_PARAMS
IT_STOCK_KEY
IV_ANCHOR_FIELDS
IV_GET_FIX_PEG_ONLY
IV_GET_HIDDEN_ATTR
IV_GET_PEG
IV_SIMSESSION
Exceptions
LC_APPL_ERRORLC_COM_ERROR
LC_CONNECT_FAILED
Function Group
APO/SAPLOM_STOCKGeneral Material Data General Material Data
This documentation is copyright by SAP AG.
Length: 3740 Date: 20120525 Time: 091124 triton ( 127 ms )






