Customer Enhancements for CATS
You can use this SAP enhancement to validate any data already recorded. Validations are performed for one cell (an entry by one person on one day).
Example: You do not want user XYZ to record time data for receiver cost center 0000000666. The transfer structure used is the structure FIELDS.
This structure contains all the account assignment fields relevant to you. If you want to return messages to the standard program, you will also need to use internal table I_MESSAGES. In this example, error message "001" is issued with message class "ZZ", message type "E", and
parameter "XYZ". Making entries in table I_MESSAGES is equivalent to using the command "MESSAGE E001(ZZ) WITH 'XYZ'". However, to ensure that all the program flows can run, fill the internal table I_MESSAGES rather than use this command.
IF FIELDS-RKOSTL = '0000000666' AND SY-UNAME = 'XYZ'.
I_MESSAGES-MSGTY = 'E'.
I_MESSAGES-MSGID = 'ZZ'.
I_MESSAGES-MSGNO = '001'.
I_MESSAGES-MSGV1 = 'XYZ'.
- EXIT_SAPLCATS_003: CATS: Validate Recorded Data