Fonction SAP BAPI_MATERIAL_AVAILABILITY - ATP information

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BATCH BAPICM61V-CHARG C 10 X Batch
CHECK_RULE BAPIT441V-PRREG C 2 X Checking rule
CUSTOMER BAPIKNVVKY-CUSTOMER C 10 X Customer number
DEC_FOR_ROUNDING BAPICM61M-ANDEC s 2 X No. of decimal places to which rounding should be performed
DEC_FOR_ROUNDING_X BAPIUPDATE C 1 X Updated information in related user data field
DOC_NUMBER BAPISDHEAD-DOC_NUMBER C 10 X Document number
ITM_NUMBER BAPISDITM-ITM_NUMBER N 6 X Item number
MATERIAL BAPIMATVP-MATNR C 18 Material number
MATERIAL_EVG BAPIMGVMATNR u 82 X
PLANT BAPIMATVP-WERKS C 4 Plant
READ_ATP_LOCK BAPICM61V-VFPST C 1 X Control indicator for availability check
READ_ATP_LOCK_X BAPIUPDATE C 1 X Updated information in related user data field
STGE_LOC BAPICM61V-LGORT C 4 X Storage location
STOCK_IND BAPICM61V-SOBKZ C 1 X Special Stock Indicator
UNIT BAPIADMM-UNIT C 3 Unit of measure for display
WBS_ELEM BAPISDITM-WBS_ELEM C 24 X WBS Element

Paramètre Reférence Type Long. Description
AV_QTY_PLT BAPICM61V-WKBST P 7 Quantity available at plant level
DIALOGFLAG BAPICM61V-DIAFL C 1 Indicator (X = not available, N = no check)
ENDLEADTME BAPICM61M-WZTER D 8 End of replenishment lead time
RETURN BAPIRETURN u 452

Paramètre Reférence Long. Facultatif Description
WMDVEX BAPIWMDVE 35 Output table (date and ATP quantity)
WMDVSX BAPIWMDVS 24 Input table (date and quantity)

Functionality
Using this function module, you can determine the receipt quantitystill available for a particular material in a certain plant accordingto ATP logic (MRPII).
The availability check is carried out on transferring the materialnumber, the plant and the input table (WMDVSX). The scope of the check,that is, which stocks, receipts and issues are to be included in thecheck is defined by the combination of checking group (material master)and cheking rule. In the function module, the system uses the checkingrule defined in Sales & Distribution (A). You can overrule thischecking rule by using an interface or a user-exit (exit_saplw61v_001).A similar procedure is also valid for the plant parameters. Thecustomer number in the user-exit means that the plant selection can becontrolled via the customer. If no plant parameters are given via theinterface, the system uses the parameter 'WRK' saved in the user'sfixed values.
The results of the availability check are recorded in the output table(WMDVEX). This table contains dates and available receipt quantities(ATP quantities). The results of the check depends on the followingentries:

  • If no date and no quantity is transferred, the system displays the ATP
  • situation from today's date into the future as the result.
    • If only a date and no quantity is transferred, the system displays the
    • ATP situation from the corresponding date as the result.
      • If both a date and a quantity are transferred, the system calculates
      • the availability situation for the quantity specified.
        In the last two cases, the parameter 'DIALOGFLAG' is supplied. This canresult in the following:
        • ' ' (blank) <=> quantity completely available

        • 'X' <=> only partial quantity available or not available at

        • all
          • 'N' <=> Material not included in the availability check

          • (Material not relevant to the availability check)
            The system also displays the end of the replenishment lead time(ENDLEADTME).

            Description
            Parameter for the long material number
            This parameter can be used to transfer long material numbers that areallowed to have a maximum length of 40 characters.
            To use this parameter, you need to switch on the business function LAMA(long material number) in the system.
            The business function LAMA can be obtained as a component of thebusiness function set for DIMP.

            Value range
            None

            Default
            None

807387ATP information: Batch is not assigned
528347CRM ATP-information: Plant determination in R/3