Show TOC

 Performing Subtype Checks

Procedure

As delivered, the system supports generic subtype checks, but cannot determine all of the applications that pertain to a particular infotype. For this reason, subtype checks are performed by means of the Business Add-In (BAdI) HRPAD_SUBTY_CHECK . A number of standard implementations are delivered with this BAdI, the most useful of these being implementations CHECK_BY_T512Z , CHECK_BY_T531 and CHECK_BY_T591A . If your infotype requires subtype checks in relation to other tables, you may also create new implementations. To this end, you may refer to and copy standard implementation CHECK_BY_T591A_CHAR1 – which checks the first character of the Subtype (SUBTY) field in relation to the Subtype Characteristics table (T591A) – then modify the copy to suit your requirements.

Caution Caution

If foreign key checks and Business Add-In HRPAD_SUBTY_CHECK are simultaneously active, then the system may issue inconsistent error messages. If you do choose to perform subtype checks by means of this BAdI, it is therefore vital that you disable foreign key checks for your subtype fields.

End of the caution.