Fonction SAP BAPI_WHSE_TO_CREATE_STOCK - BAPI for Stock Data per Quant

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADDREFNO BAPI2018E-ADD_REF_NO C 20 SPACE X Additional number for transfer requirement
ADDREM BAPI2018E-ADD_REM C 4 SPACE X TO processing comment (code)
MINWMIND BAPI2018E-MIN_WM_IND C 1 SPACE X Transfer order transfers no real storage bin stock
NOTPRIIND BAPI2018E-NOT_PRI_IND C 1 SPACE X Do not print transfer order
PRICTLIND BAPI2018E-PRI_CTL_IND C 2 SPACE X Indicator: form and sort code for printing transfer orders
REQNUMBER BAPI2018E-REQ_NUMBER C 10 SPACE X Requirement Tracking Number
REQTYPE BAPI2018E-REQ_TYPE C 1 SPACE X Requirement Type
WHSEMVMT BAPI2018E-WHSE_MVMT N 3 Movement type for Warehouse Management
WHSENUMBER BAPI2018E-WHSENUMBER C 3 Warehouse number / warehouse complex

Paramètre Reférence Long. Facultatif Description
CREATEDATA BAPICR2018RET 42 BAPI Export Fields for Data Transmission BO 2018
IMPORTDATA BAPI2018D 168 Import Structure D for Business Object WhseTransOrder
RETURN BAPIRET2 548 Return parameter

Functionality
With this method, you can execute the transfer of initial stock datainto a warehouse.
Data transfer to a warehouse with Handling Unit Management is notpossible with this. Here a different procedure is provided.
This method can also perform other activities besides the initial stockdata entry.
The transmitted movement type controls the activities posted internallyby this method.
However, no other functions, except for the initial stock data entry,are guaranteed as for the supplied movement type 561.
The following fields are required entries for the initial data entry:

  • Warehouse number / warehouse complex

  • Movement type for Warehouse Management

  • Material number

  • Plant

  • Requested quantity in alternative unit of measure

  • Alternative unit of measure to stockkeeping unit or ISO code unit of
  • measure
    • Destination storage type

    • Destination storage section

    • Destination storage bin

    • Item in destination storage bin (only for split bins)

    • Destination storage unit number (ony for SU-managed warehouses)

    • The following fields are determined by the system:
      • Storage location

      • Storage unit type

      • Date of goods receipt (= current date)
      • Notes
        Please note!
        Make sure that after you call up this BAPI you submit a COMMIT WORK.
        This means it is not possible to use several write BAPIs in sequenceand that only one COMMIT WORK is submitted after the last BAPI. If thisis not the case, the second BAPI will be terminated since this chain ofcalls is not allowed.
        So that your data can be processed successfully, you requireauthorization for warehouse master data and the movement type forWarehouse Management.

        Description
        Additional number of transfer requirement.
        Optional parameter.
        Additional information

        Description
        Note on TO execution (indicator)
        Optional parameter.
        Additional information

        Description
        Indicator: TO does not move real bin stock
        Optional parameter.
        Additional information

        Description
        Do not print transfer order.
        Optional parameter.
        Additional information

        Value range
        Space = Print will be executed
        'X' = Print will not be executed

        Default
        Space = Print will be executed

        Description
        Indicator: Form and TO print sort
        Optional parameter.
        Additional information

        Description
        Requirement number.
        Optional parameter.
        Additional information

        Description
        Requirement category.
        Optional parameter.
        Additional information

        Description
        Movement type warehouse management.
        Required parameter.
        Additional information

        Description
        Warehouse number
        Required parameter.
        Additional information

        Description
        In this table you enter the key data of the quants created for theinitial stock data entry and the data of the transfer orders created.
        The table contains the warehouse number, the transfer order number, thetransfer order item, storage type, storage bin, item on the storagebin, and the quant number.

        Description
        Import table that contains all the data required for creating a storagequant.
        The table contains the following fields:
        Material number
        Plant
        Requested quantity in alternative unit of measure
        Alternative unit of measure for stockkeeping unit
        ISO code unit of measure
        Storage location
        Batch number
        Stock category in WMS
        Special stock indicator
        Special stock number
        Storage unit type
        Ship-to party
        Destination storage type
        Destination storage section
        Destination storage bin
        Item in destination storage bin
        Destination storage unit number
        Indicator: Confirmation of a TO item
        Certificate number
        Date of goods receipt
        Source storage type
        Source storage bin
        Expiry date or shelf-life expiration date

        Notes

        • Special stock number must be transmitted in internal format
        • Description
          Here the messages are collected and passed back to the caller. .