Ansicht
Dokumentation
BAPI_MATERIAL_GETBATCHES - Create Batch List for a Material
TXBHW - Original Tax Base Amount in Local Currency CPI1466 during BackupThis documentation is copyright by SAP AG.
Functionality
This method is used to create a list of batches for a material. You can restrict this list by specifying input parameters.
For example, you can create a list of the batches whose shelf life expiration date is not yet exceeded.
Note
Note that the BAPI BAPI_MATERIAL_GETBATCHES is not supported for use in Developer Extensibility (Steampunk) scenarios. SAP strongly recommends that you use the class CL_MD_PRODUCT_GET_BATCHES
Example
Notes
Messages are returned in the RETURN parameter.
For the return values and their meanings, see the documentation for the RETURN parameter.
You can combine the parameters EXPIRYDATEFROM and EXPIRYDATETO (or AVAILABLEDATEFROM and AVAILABLEDATETO) as follows:
- If you enter an earliest and a latest availability date,
the system selects only the batch records whose availability date is within this interval.
- If you enter an earliest and a latest shelf life expiration date,
the system selects only the batch records whose shelf life expiration date is within this interval.
Further information
Parameters
AVAILABLEDATEFROMAVAILABLEDATETO
BATCHES
BATCHNUMBER
EXPIRYDATEFROM
EXPIRYDATETO
MATERIAL
MATERIAL_EVG
MATERIAL_LONG
PLANT
RETURN
Exceptions
Function Group
BUS1001CL_GUI_FRONTEND_SERVICES - Frontend Services rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 2630 Date: 20240523 Time: 172709 sap01-206 ( 30 ms )