Ansicht
Dokumentation

PBCS_QUOTA_02 - BAdI: Check Allocation Rules

PBCS_QUOTA_02 - BAdI: Check Allocation Rules

Addresses (Business Address Services)   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

BAdI: Assignment Rule Checks

In this activity, you create an implementation of the BAdI HRFPM_FTE_QUOTA_RULES_CHK.

You can use an implementation of this BAdI to implement checks that the system is to execute when allocating the budget of a "sending" apportionment budget of a budget structure element to another "receiving" budget structure element.

This enables the system to ensure the permissibility of a budget allocation depending on the characteristics of an apportionment budget and the receiving budget structure element.

In the implementation, you can fill the fields ERROR_CODE (error code) and ERROR_CATEGORY (error category) accordingly in the interface parameter CS_CHECK_ERROR of the method CHK_QUOTA_SNDR_RCVR_CHARACT.

The field Error Code is a required field, whereas the field Error Category does not have to be filled.

Note

In the standard system, the error code SAP_Q_ER and the error category SAP_Q_ER are predefined. In this case, the system raises the message stored for the error code in the Customizing activity Define Error Codes. In the standard system, this is the message HRFPMCUSTOM231. You can also define your own error messages. If you wish to override the way in which the system creates error messages, you can use the BAdI Postprocessing of Check Result for this purpose.

The standard SAP system does not contain an implementation or a filter value.

The standard system contains the following data on the interface of the method CHK_QUOTA_SNDR_RCVR_CHARACT:

  • Interface parameter IS_RCVR_QUOTA_DATA:Apportionment budget data that is to be created when an allocation is created. The standard system contains the infotype data of infotype 1521 here.
  • Interface parameter IS_SNDR_QUOTA_DATA:Apportionment budget data for which allocation is to take place. The standard system contains the infotype data of infotype 1521 here.
  • Interface parameter IS_SNDR_BU_DATA: Data of the budget structure element for which the sending apportionment budget was created. The following infotypes are available for this in the standard system:
  • 1000 Object Description

  • 1005 Planned Compensation

  • 1013 Employee Group/Subgroup

  • 1500 Budget Control

  • 1513 ADT

  • 1514 Valuation of Additional Data (D)

  • Interface parameter IS_RCVR_BU_DATA: Data of the budget structure element for which an allocation is to be created. In the standard system, the same infotype data is available here as in parameter IS_RECEIVER_DATA.
  • Interface parameter IS_QUOTA_CHARACTERISTIC: Characteristics of the quota that is to be created for the receiving budget structure element.

Create your own implementation.






ABAP Short Reference   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 4033 Date: 20240523 Time: 185306     sap01-206 ( 57 ms )