Fonction SAP BAPI_WHSE_STOCK_GET_LIST - BAPI for Details of Stock per Material

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BATCH BAPI3016A-BATCH C 10 X Batch number
MATERIAL BAPI3016A-MATERIAL C 18 Material Number
MATERIAL_EVG BAPIMGVMATNR u 82 X
MAXROWS BAPIF4A-MAX_ROWS I 4 0 X Maximum Number of Lines of Hits
PICKAREA BAPI3016A-PICK_AREA C 3 X Picking area
PLANT BAPI3016A-PLANT C 4 Plant
SPECIALSTOCKIND BAPI3016A-SPEC_STOCK C 1 X Special Stock Indicator
SPECIALSTOCKNO BAPI3016A-SP_STCK_NO C 16 X Special stock number
STOCKCATEGORY BAPI3016A-STOCK_CAT C 1 X Stock category in the Warehouse Management system
STORAGELOCATION BAPI3016A-STGE_LOC C 4 X Storage Location
STORAGETYPE BAPI3016A-STGE_TYPE C 3 X Storage Type
WAREHOUSENUMBER BAPI3016A-WAREHOUSENUMBER C 3 Warehouse number / warehouse complex

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Return parameter
STOCKKEY BAPIQUANTKEY 16 BAPI Export Structure for Quants (only key data)
STORAGEBINSELECT BAPI3016B 23 X Import Structure B for Business Object Warehouse Stock

Functionality
This method supplies key data on quants.
Warehouse number, material, and plant are required parameters.
Depending on the additional selection criteria you choose, you canlimit the data to be read.

Notes
So that the data is read successfully, you require the authorization todisplay the warehouse master data.
Basically, 2 access paths for read optimization are supplied.

  • If you enter a material number, this is defined as the leading
  • component .
    • If you do not enter a material number, the system selects warehouse
    • number, storage type, storage bin as access sequence.

      Further information

      Description
      Batch number.
      Optionaler parameters.

      Description
      Material number.
      Required parameters.

      Description
      Parameter for the long material number
      You can use this parameter to transfer long material numbers whosemaximum length is 40 characters.
      To use this parameter, you have to switch on the LAMA (Long MaterialNumber) business function in the system.
      The LAMA business function is available as part of the business functionset for DIMP.

      Value range
      None

      Default
      None

      Description
      Maximum number of quants to be selected.
      The system counts the number of quants that correspond to theparameters specified.

      Default
      0 = All the found quants are transferred back.

      Description
      Picking area.
      Optional parameter.

      Description
      Plant.
      Required parameter.

      Description
      Special stock indicator.
      Optional parameter.

      Description
      Special stock number.
      Optional parameter.

      Description
      Stock category in the Warehouse Management system.
      Optional parameter.

      Description
      Storage location.
      Optional parameter.

      Description
      Storage type.
      Optional parameter.

      Description
      Warehouse number.
      Required parameter.

      Description
      Here the messages are collected and passed back to the caller.

      Description
      In this table, the key data of the quants found is transmitted.
      The table contains the client, warehouse number, and quant number.

      Description
      Optional range table (input oarameter) for the quants to be selected.
      The table contains the storage bins that you require to limit thequants.

      Value range

      • SIGN

      • I means "inclusive" (inclusion criterion)
        E means "exklusive" (exclusion criterion)
        • OPTION

        • If HIGH is empty, you can use EQ, NE, GT, LE, LT, CP, and NP.
          If HIGH is filled, you can use BT (BeTween) and NB (Not Between).
          • LOW

          • Lower limit of interval. If HIGH is empty, the system executes a singlefield comparison.
            • HIGH

            • Upper limit of interval.