How To Fix SECAUDIT047 - File name template does not contain the pattern '######'


SAP Error Message - Details

  • Message type: E = Error

  • Message class: SECAUDIT - Message class for security audit

  • Message number: 047

  • Message text: File name template does not contain the pattern '######'

  • Show details Hide details
  • What causes this issue?

    When checking the profile parameter FN_AUDIT, the system determined that
    the current value is invalid, since it does not contain a character
    string "######". The value (file name) must contain exactly six (6)
    number signs (#) in succession, since these are replaced by the system
    with a sequence number.

    System Response

    Since the profile parameter FN_AUDIT is instance-specific, the result of
    the parameter check also contains the instance name. You cannot save the
    kernel parameters while there are errors in the profile parameters.

    How to fix this error?

    Set the value of the profile parameter FN_AUDIT in such a way that it
    contains the character string "######" after the character string
    "++++++++". You can maintain profile parameters with transaction RZ10.
    Examples: audit_++++++++_###### or AUDIT++++++++_######.AUD

    Procedure for System Administrators

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message SECAUDIT047 - File name template does not contain the pattern '######' ?

    The SAP error message SECAUDIT047 indicates that there is an issue with the file name template used for security audit logs. Specifically, the error states that the file name template does not contain the required pattern '######', which is typically used to represent a sequence of digits in the file name.

    Cause:

    The error occurs when the file name template for the security audit logs is not correctly configured. The template is expected to include a placeholder for a numeric sequence (represented by '######') that allows SAP to generate unique file names for the audit logs. If this pattern is missing, SAP cannot create the necessary log files, leading to the error.

    Solution:

    To resolve this error, you need to modify the file name template for the security audit logs to include the '######' pattern. Here are the steps to do this:

    1. Access the Security Audit Log Configuration:

      • Go to transaction code SM19 in the SAP GUI.
      • This transaction is used to configure the security audit log settings.
    2. Check the File Name Template:

      • In the configuration screen, look for the section where the file name template is defined.
      • The template should be something like auditlog_######.log or similar, where '######' is included.
    3. Modify the Template:

      • If the '######' pattern is missing, add it to the file name template.
      • Ensure that the template follows the correct format and includes any necessary prefixes or suffixes.
    4. Save the Changes:

      • After making the necessary changes, save the configuration.
    5. Restart the Audit Log:

      • You may need to restart the security audit log for the changes to take effect. This can typically be done in the same transaction or by using transaction SM20 to monitor the logs.

    Related Information:

    • Documentation: Refer to the SAP Help Portal or the official SAP documentation for detailed information on configuring security audit logs.
    • Transaction Codes:
      • SM19: Configuration of Security Audit Log
      • SM20: Display Security Audit Log
    • SAP Notes: Check for any relevant SAP Notes that may provide additional guidance or updates related to security audit logging.

    By ensuring that the file name template is correctly configured with the '######' pattern, you should be able to resolve the SECAUDIT047 error and allow SAP to generate the necessary audit log files.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant