×

[PR]この広告は3ヶ月以上更新がないため表示されています。
ホームページを更新後24時間以内に表示されなくなります。




Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>Batch



Index

Batch

Batch


Quantity of a certain material, representing a homogeneous unit that cannot be reproduced, and that has unique specifications.


Structure


The batch object contains the following key fields:


  • Material

  • Batch

  • Plant

  • The plant key field is only relevant if plant level is chosen as the batch level.


    Integration


    Batches can be used in all processes throughout the supply chain. Batches are


  • always assigned to a material

  • can only be created for materials that are to be handled in batches

  • 11-Dec-2005


    Methods

    Available Methods


    • Change : Change Batch [ BAPI_BATCH_CHANGE ]
    • Create : Create batch [ BAPI_BATCH_CREATE ]
    • GetDetail : Batch detailed information [ BAPI_BATCH_GET_DETAIL ]
    • GetLevel : Determine batch level [ BAPI_BATCH_GET_LEVEL ]
    • Replicate : Distribute batch [ BAPI_BATCH_REPLICATE ]
    • SaveReplica : Replicate batch [ BAPI_BATCH_SAVE_REPLICA ]

    11-Dec-2005


    Change

    Change


    You use this method to

  • Change a batch master record
  • Create and/or change classification of a batch in the background (object characteristics only)
  • You use this method, for example, when distributing batches.

    The INPUT information contains


  • the batch key; parameters Material, Batch and Plant
  • the batch attributes; parameter BatchAttributes
  • control parameters; parameter BatchControlFields
  • Notes


    The following authorization objects with activity 01 (create) are checked:

  • M_MATE_CHG Material master: Batches/Packaging
  • M_MATE_WRK Material master: Plant
  • Batch Level

    If the batch level (BatchControlFields) is on plant level, you must specify a plant in the Plant
    parameter.

    Classification

    If the batch is to be classified, you must specify a class in the BatchControlFields parameter. Only single classification is possible.

    Confirmations

    Messages are returned in the parameter Return.


    If the table contains messages of types E or A, an error has occurred.

    Further Information

    You will find further information in the R/3 library under Batch Management.


    11-Dec-2005


    Create

    Create


    You use this method to

  • Create a batch master record
  • Create the classification of a batch in the background (object characteristics only)
  • You use this method, for example, when distributing batches.

    The INPUT information contains


  • the batch key; parameters Material, Batch and Plant
  • the batch attributes; parameter BatchAttributes
  • control parameters; parameter BatchControlFields
  • the storage location; parameter BatchStorageLocation

  • Notes

    The following authorization objects with activity 01 (create) are checked:

  • M_MATE_CHG Material master: Batches/Packing
  • M_MATE_WRK Material master: Plant
  • Batch Level

    If the batch level (BatchControlFields) is on plant level, you must specify a plant in the Plant
    parameter.

    Classification

    If the batch is to be classified, you must specify a class in the BatchControlFields parameter. Only single classification is possible.

    Confirmations

    Messages are returned in the parameter Return.


    If the table contains messages of types E or A, an error has occurred.

    Further Information

    You will find further information in the R/3 library under Batch Management.


    11-Dec-2005


    GetDetail

    GetDetail


    This method transfers the detailled information for the batch from the batch master record.

    You use these methods, for example, when distributing batches.

    The INPUT information contains the batch key with the parameters Material, Batch and Plant
    .

    Notes

    The following authorization objects with the activity 01 (Create) are checked:

  • M_MATE_CHG Material master: Batches/Packing
  • M_MATE_WRK Material master: Plant
  • Confirmations


    Messages are returned in the parameter Return.

    If the table contains messages of types E or A, an error has occurred.

    Further Information

    You will find further information in the R/3 library under Batch Management.



    11-Dec-2005


    GetLevel

    GetLevel


    This method transfers the batch level as set up in Customizing.

    You use this method when distributing batches, for example, to ensure a uniform batch level in the distributed systems.

    Further Information

    For further information, see the Batch Management section in the R/3 library.



    11-Dec-2005


    Replicate

    Replicate


    This method transfers the detailed information for the batch from the batch master record.

    You use this method, for example:

  • To distribute batches and batch specifications
  • In connection with a decentralized warehouse
  • When creating a batch in process confirmation

  • The INPUT information contains the batch key with the parameters Material, Batch and Plant.

    Notes

    The method calls the function module VB_BATCH_GET_DETAIL.

    Confirmations

    Messages are returned in the parameter return. The parameter
    documentation shows the return codes and their meanings.

    Further Information

    You will find further information in the R/3 library under Batch Management.


    11-Dec-2005


    SaveReplica

    SaveReplica


    You use this method to replicate a batch in the target system.

    For example, you use this method

  • To distribute batches
  • In connection with a decentralized warehouse
  • The INPUT information contains

  • The batch key; parameters Material, Batch and Plant

  • The batch attributes; parameter BatchAttributes
  • The control parameter; parameter BatchControlFields
  • The storage location; parameter BatchStorageLocation
  • The batch status; parameter BatchStatus

  • Notes

    The following authorization objects with activity 01 (Create) are checked:

  • M_MATE_CHG Material master: Batches/Package
  • M_MATE_WRK Material master: Plant
  • Confirmations

    Messages are returned in the parameter Return.


    If the table contains messages of types E or A, an error has occurred.

    Further Information

    You will find further information in the R/3 library under Batch Management.


    11-Dec-2005