Ansicht
Dokumentation

/SAPAPO/OM_STOCK_GET - Get Stock Objects from liveCache

/SAPAPO/OM_STOCK_GET - Get Stock Objects from liveCache

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

Further information

@0P@Stocks

Functionality

This module gets the stock items that belong to the keys in the import table IT_STOCK_KEY from liveCache.

The switch IV_ANCHOR_FIELDS determines whether the fields ADDLOCID and MATID of the stock item are filled or whether they are returned with initial values. Determining these fields from the stock anchor table has a negative effect on performance.

The table ET_CHARACT_VAL_OUTNODE contains the characteristic value assignments of the stock items. See the corresponding section in the documentation for the module OM_STOCK_CHANGE.

If the switch IV_GET_PEG is activated, the peggings of the stock items are written to the export table ET_PEG. If IV_GET_FIX_PEG_ONLY is set, only fixed peggings are written.

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.

Notes

Error Handling and Troubleshooting

Possible return codes:

  • 108 = om_invalid_stock:
    A stock item with this key does not exist in liveCache.

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.





Parameters

ET_CHARACT_VAL_OUTNODE
ET_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_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_STOCK

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 3311 Date: 20240419 Time: 193913     sap01-206 ( 48 ms )