Fonction SAP BAPI_BATCH_GET_DETAIL - Batch detailed information

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BATCH BAPIBATCHKEY-BATCH C 10 Batch Number
MATERIAL BAPIBATCHKEY-MATERIAL C 18 Material Number
MATERIAL_EVG BAPIMGVMATNR u 82 X Long Material Number
PLANT BAPIBATCHKEY-PLANT C 4 X Plant

Paramètre Reférence Type Long. Description
BATCHATTRIBUTES BAPIBATCHATT u 137 Batch Attributes
BATCHSTATUS BAPIBATCHSTATUS u 1 Batch Status

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Confirmations

Functionality
This method transfers the detailed information for the batch from thebatch master record.
You use these methods, for example, when distributing batches.
The INPUT information contains the batch key with the parametersMaterial, Batch and Plant.

Notes
The following authorization objects with the activity 01 (Create) arechecked:

  • M_MATE_CHG,,Material master: Batches/Packing

  • M_MATE_WRK,,Material master: Plant

  • Confirmations
    INCLUDE BAPI_PARAM_RETDD

    Further information
    You will find further information in the SAP Library under BatchManagement.

    Description
    The table contains the batch attributes.
    INCLUDE BAPI_DATAELEMENT

    Description
    You will find information on the meaning of the batch status in theappropriate data element documentation: Batch inrestricted-use stock.

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    Parameter for the long material number
    This parameter can be used to transfer long material numbers. Thesenumbers can be up to 40 characters long.
    To be able to use this parameter you must activate the switch for thebusiness function LAMA (long material number) in the system.
    The business function LAMA is available as a component of the businessfunction set for DIMP.

    Value range
    None

    Default
    None

    Description
    INCLUDE BAPI_KEYFIELD
    Note
    If the batch level is on material or client level, you do not need tospecify the plant.
    If the batch level is on plant level, you must specify a plant.

    Default
    INCLUDE BAPI_PARAM_RETURN