Documentation View

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

/SCWM/MFG_READ_STOCK_EXT - Stock Information from Production

/SCWM/MFG_READ_STOCK_EXT - Stock Information from Production

rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This function module determines production supply related stock information from the production supply areas related to production material requests of manufacturing orders.

If called with a manufacturing order number, the stock is determined for all goods movement bins of the products of the items of the related production material request.

If called with a production supply area, the stock on this production supply area is determined. For the order-related stock (single order parts), the references to the production material request items and the manufacturing order number are determined.

This function module can also determine the consumed stock of a manufacturing order to perform a consumption reversal.

Import Parameters

  • IV_LOGSYS (mandatory)
Contains the logical system of the ERP system.
  • IV_PLANT (mandatory)
Contains the plant of the ERP system. The ERP plant and the logical system name are used to map the production supply area names between ERP and EWM
  • IV_WHS_NUMBER (mandatory)
Contains the ERP warehouse number. The ERP warehouse number and the logical system are used to determine the EWM warehouse number.
  • IV_SUPPLY_AREA (optional)
Contains the ERP production supply area. This function module determines all stock of this production supply area.
  • IV_ORDER_NUMBER (mandatory)
Contains the manufacturing order number. This number is usually the ERP manufacturing order number. This function module determines all stock on the production supply areas releated to the items of the manufacturing order.
  • IV_HU_EXID (optional)
Contains the external identification of a handling unit. This function module determines all stock information about this handling unit.
  • IV_HU_EXID_TYPE (optional)
Is not used in EWM.
  • IV_MATNR (optional)
Contains the ERP material number.
  • IV_WITH_CONSUMED
This parameter controls whether the function module determines the available stock or the consumed stock of a manufacturing order.

The values are:
  • ' ' = Determine only available stock

  • '1' = Determine only consumed stock

  • '2' = Determine available stock and consumed stock

Export Parameters

  • ET_STOCK_INFO
Contains the determined stock information. It consists of the material, the quantities, the handling unit information, the batches and the stock references to production material request items of the manufacturing orders (for single order parts).
Parameter CONSUMED_IND indicates lines with consumed stock.
  • ET_SERIAL_NUMBERS
Contains the serial numbers for serial number managed products of the stock.
  • ET_BAPIRET
Contains message information.





Parameters

ET_BAPIRET
ET_SERIAL_NUMBERS
ET_STOCK_INFO
IV_HU_EXID
IV_HU_EXID_TYPE
IV_LOGSYS
IV_MATNR
IV_ORDER_NUMBER
IV_PLANT
IV_SUPPLY_AREA
IV_WHS_NO
IV_WITH_CONSUMED

Exceptions

Function Group

M/SAPLMFG_EXTERNAL

rdisp/max_wprun_time - Maximum work process run time   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 3936 Date: 20211130 Time: 132807     sap01-206 ( 53 ms )