Ansicht
Dokumentation

VBDOCUBATCH - BAdI: Documentary Batch

VBDOCUBATCH - BAdI: Documentary Batch

CPI1466 during Backup   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this Business Add-In (BAdI) to influence the use of documentary batches.
This Business Add-In (BAdI) is used in the component Batch Management (LO-BM).

You can use the following methods:

  • You can use the method PRODUCT_CHANGE to override the settings for the material type and, for example, permit the entry of documentary batches for certain materials or plants.
  • You can use the method PROCESS_CHANGE to override the settings for process steps.
    This method is called when the system checks for the first time whether documentary batches are used for document items.
  • You can use the method DOCUBATCHES_PRELOAD to allow the system to enter documentary batches.
    This method is called only once for each document item, for example, before you enter the documentary batches on the detail screen or before you post a document.
  • You can use the method BATCH_MASTER_CREATE to override the Customizing setting for the material type for the automatic creation of a material master in the background. In other words, you can decide whether a batch master record is created, depending on the process step and additional information (order number and so on).
  • You can use the method BATCH_NUMBER_CHECK to check the admissibility of the documentary batch numbers that have been entered.

This BAdI is not active in the standard system.
This BAdI is not filter-dependent in the standard and cannot be reused.

After you have called the IMG activity, proceed as follows:

  1. In the following dialog box, enter in the field "Implementation" a name for the BAdI implementation and choose Copy.
If implementations have already been created for the BAdI, a dialog box with the existing implementations will be displayed. In this dialog box, choose Create.
  1. In the corresponding field, enter a short text for implementation .
  2. In the tab Propertiesenter filter properties - if this is a filter-dependent BAdI.
  3. Choose the tab Interface.
The name of the implementing class is generated by the system based on the name of your impmlementation. You can change the name.
If the BAdI is a menu exit, the tab FCodes also appears.Enter a function here and, if necessary, additional data.
  1. Save your entries and assign a package.
  2. Position the cursor on a method. Call up the Class Builder by double-clicking it.
  3. Between the statements method <Interface-Name>~<Name of Method>. and endmethod, enter the coding you request for the implementation.
  4. Save and activate your coding, and navigate back to the screen Change Implementation.
  5. Save on the screen Change Implementation.
Note: You can first create an implementation for the BAdI and then activate this later on. In this case, close the processing function at this time.
  1. Choose Activate.
When the application program is executed, the coding you have created will be run.

Methods

Change Material Settings (PRODUCT_CHANGE)
Change Process Step Settings (SETTINGS_CHANGE)
Preload Documentary Batches (DOCUBATCHES_PRELOAD)
Change Setting 'Create Batch Master' (BATCH_MASTER_CREATE)
Check Documentary Batch Number (BATCH_NUMBER_CHECK)






RFUMSV00 - Advance Return for Tax on Sales/Purchases   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 4590 Date: 20240523 Time: 163834     sap01-206 ( 62 ms )