Ansicht
Dokumentation

TB037_CHECK - BAdI: Validate data input when maintaining authorization groups

TB037_CHECK - BAdI: Validate data input when maintaining authorization groups

General Data in Customer Master   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the SAP Business Partner (AP-MD-BP) component. You can use this BAdI for data validation when maintaining authorization groups using the view V_TB037(corresponding table TB037). With the help of the assigned filter, you can define implementations for different applications, such as business partner, customer or vendor.

The following actions can be performed by implementing this BAdI:

  • Validate authorization group data. The type of validation that is performed depends on the implemented logic of the consuming applications (see section BAdI implementations).
  • Raise error messages in case of invalid data being entered in maintenance view V_TB037. The types of checks to be performed on entered data depends on the consuming applications (see section BAdI implementations).

The BAdI is called from the subroutine TB037_CHECK, registered at TGM event (05) of view V_TB037.

Methods

The BAdI contains method TB037_CHECKwith the following parameters:

Import Parameters

  • I_TB037: Generated Table for View
The input data is passed on to the BAdI method on runtime (runtime structure V_TB037).

This BAdI has the filter AUOBJ (authorization group) assigned. Before starting with the implementation, you should check if the authorization group object for which you want to create an implementation exists in table TB036.

Please note that a single implementation can have multiple filters assigned.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

  • BP_DP_TB037_CHECK
This implementation ensures that any new authorization group defined for authorization group object BUPA in table TB037 is not already used as authorization group value in table BUT_AUGRP_BLK (Set Authorization Group Value for Blocked BP). The value in this table is reserved for blocked business partners only.
In addition, the implementation checks that only valid data (letters and numbers) is entered for an authorization group. This check is conducted in an S/4HANA Cloud system only.

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 Create, and continue as follows:

1. In the dialog box, enter a name for the implementation of the Add-In and choose Create. The system displays the initial screen for creating Business Add-In implementations.
2. On this screen, enter a short description for your implementation in the Implementation Short Textfield.
3. If you choose the Interface tab, you will notice that the system has populated 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 ~. and endmethod. statements.
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 perform the following step:
8. Choose Activate.
When the application program is executed, the code you created is run through.

For information about implementing BAdIs as part of the Enhancement Framework, see SAP Library for SAP NetWeaver Platform on SAP Help Portal at http://help.sap.com/nw_platform. Choose a release and then select Application Help. In SAP Library, choose SAP NetWeaver Library: Function-Oriented View -> Application Server -> Application Server ABAP-> Application Development on AS ABAP-> ABAP Customer Development-> Enhancement Framework.






rdisp/max_wprun_time - Maximum work process run time   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 5069 Date: 20240523 Time: 162323     sap01-206 ( 84 ms )