/SAPAPO/OM_STOCK_GET_BY_UID - Get Supply Objects from liveCache

CL_GUI_FRONTEND_SERVICES - Frontend Services   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Functionality

This function identifies the items for the stock object keys (UIDs) specified in IT_STOCK_KEY and copies them to ET_STOCK_POS.

Using the optional characteristics selections for output nodes specified in the table IT_CHARACT_REQ_OUTNODE,you can restrict the quantity of selected stock items further (for a positive quantity >= 0). Thoseitems are selected whose pegging area UID matches the UID specified in the field OBJECT_ID and whosecharacteristic value assignments are compatible with the specified characteristic requirements. The fields POSITION_NO and LINE_NO are ignored and can be left empty.

You can also use the optional table IT_CHARACT_VAL_INPNODE to make a characteristics selection of the stock items with a negative quantity (< 0).

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 items with a positive quantity (quantity >= 0) or characteristic requirements for stock items with a negative quantity (quantity < 0) in ET_CHARACT_VAL_OUTNODE.

ET_CHARACT_REQ_INPNODE gets any existing objects.

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_OUTNODE
ET_PEG
ET_RC
ET_STOCK
IS_GEN_PARAMS
IT_CHARACT_REQ_OUTNODE
IT_CHARACT_VAL_INPNODE
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

ROGBILLS - Synchronize billing plans   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.


Length: 4767 Date: 20120525 Time: 091151     triton ( 128 ms )