Ansicht
Dokumentation
BOM_BEFORE_SAVE - BAdI: Validate BOM Before Saving
Fill RESBD Structure from EBP Component Structure RFUMSV00 - Advance Return for Tax on Sales/PurchasesThis documentation is copyright by SAP AG.
This Business Add-In (BAdI) is used in the Bill of Materials (LO-MD-BOM) component.
You can use this BAdI to custom validate the bill of material before saving.
This BAdI is created under Enhancement Spot ES_BOM_UPDATE.
This BAdI definition uses the standard interface IF_BOM_BEFORE_SAVE.
The BAdI consists of the following method:
HANDLE_BEFORE_SAVE: This method allows you to read the BOM-related data and validate the BOM before saving. The method sends an error message if there are any discrepancies during the validation of BOM.
The following parameters are used in the method:
Parameter | Type | Description | |
---|---|---|---|
IT_BOM_MATERIAL | Importing | Stores BOM and material link details. | |
IT_BOM_HEADER | Importing | Stores BOM header details. | |
IT_BOM_PERMANENT | Importing | Stores BOM permanent details. | |
IT_BOM_PROJECT | Importing | Stores BOM project details. | |
IT_BOM_ITEM | Importing | Stores BOM item details. | |
IT_BOM_ITEM_SELECTION | Importing | Stores BOM item selection details | |
IT_BOM_SUBITEM | Importing | Stores BOM subitem details. | |
IT_BOM_SALESORDER | Importing | Stores BOM and sales order link details. | |
CT_MESSAGE | Changing | Stores error messages. |
For more information about the standard settings (filters, single or multiple uses), see the Enh. Spot Element Definitions tab in the BAdI Builder transaction SE18.
- In the standard system, the Business Add-In is activated.
- This BAdI is designed for multiple uses.
- The BAdI is not filter-dependent.
After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.
If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Creation of Enhancement, and continue as follows:
1. In the dialog box, enter a name for the implementation of the Add-In and choose Creation of Enhancement.
The system displays the initial screen for creating Business Add-In implementations.
2. On this screen, enter a short description for you implementation in the Implementation Short Textfield.
3. If you choose the Interface tab, you will notice that the system has filled in the Name of the Implementing Classfield automatically, by assigning a class name based on the name of your implementation.
4. Save your entries and assign the Add-In to a package.
5. To edit a method, double-click its name.
6. Enter your implementation code between the method
7. Save and activate your code. Navigate back to the Change Implementationscreen.
Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not carry out the following step:
8. Choose Activate.
When the application program is executed, the system carries out the code in the method you wrote.
CPI1466 during Backup RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 4719 Date: 20240523 Time: 234102 sap01-206 ( 56 ms )