Ansicht
Dokumentation

PBCS_1004 - BAdI: Check Transfer Posting Rules

PBCS_1004 - BAdI: Check Transfer Posting Rules

CL_GUI_FRONTEND_SERVICES - Frontend Services   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

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

You can use an implementation of this BAdI to realize checks that the system is to process when the control variable is transfer posted between two positions.

This enables the system to validate the permissibility of a transfer posting between two positions depending on certain properties of the positions.

In the implementation, you can fill the fields ERROR_CODE (error code) and ERROR_CATEGORY (error category) accordingly in the interface parameter of the method CHECK_RELATION CS_CHECK_ERROR. 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_T_ER and the error category SAP_T_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 HRFPMCUSTOM201. 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 infotype data on the interface of the CHECK_RELATION method:

  • 1000 Object
  • 1005 Planned Compensation
  • 1013 Employee Group/Subgroup
  • 1514 Valuation of Additional Data (D)
  • 1513 ADT
  • 1511 Alternative Valuations
  • 1512 Personnel Budget Plan Attributes

Create your own implementation. Proceed as follows:

  1. Before you are able to create an implementation for the BAdI, you first need to maintain corresponding filter values. You define these first in the Customizing activity Define Filter Values for BAdI Implementation.
  2. For the system to be able to use the filter values, you first need to indicate the filter values as active in the Customizing activity Define Sequence of Checks.
You can then use these filter values for the implementation of the BAdI.
  1. If the system is to send a message other than the one defined in the standard system for the error code SAP_T_ER, you need to make corresponding settings in the Customizing activity Define Error Codes. You can also define your own error codes in the same place.
  2. If you require data other than that provided in the standard system for customer-specific checks, you can proceed as follows:
  • The additional data is defined in a customer-defined infotype ZZZZ.

Enhance the data structure HRFPM_S_TRNS_CHK_ITYPES. Create a component with the name ZZZZ and reference the data structure of the infotype.
  • The additional data is not defined in an infotype

If the data is not defined in an infotype, you need to create an implementation of the BAdI Provide Data for Checks.






RFUMSV00 - Advance Return for Tax on Sales/Purchases   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 4472 Date: 20240523 Time: 213926     sap01-206 ( 61 ms )