How To Fix OL543 - Statement 'INCLUDE &.' is not permitted in BOR object type programs


OL543 - Overview

  • Message type: E = Error

  • Message class: OL - Workflow object types: Run-time system

  • Message number: 543

  • Message text: Statement 'INCLUDE &.' is not permitted in BOR object type programs

  • Show details Hide details
  • What causes this issue?

    You have tried to reference an include with the INCLUDE statement.

    System Response

    No includes are allowed in BOR object type programs, since code
    fragments could make their way into the program, which would jeopardize
    the object encapsulation (in particular by including DATA statements).
    The only statements allowed in such an include could be TYPES and
    CONSTANTS. But these can also be implemented using a type group.

    How to fix this error?

    Define your constants and types using a type group and include it via
    the statement TYPE-POOLS. For new data, use attributes.

    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 OL543 - Statement 'INCLUDE &.' is not permitted in BOR object type programs ?
    The SAP error message OL543 indicates that there is an issue with the use of the INCLUDE statement in a Business Object Repository (BOR) object type program. This error typically arises when you are trying to include a program or a piece of code that is not allowed in the context of BOR object types.
    
    Cause: The primary cause of this error is that the BOR object type programs are designed to be modular and should not contain certain types of statements, including INCLUDE statements. The BOR framework has specific rules and restrictions to ensure that the object types are defined correctly and can be used effectively within the SAP system.
    Solution: To resolve the OL543 error, you can take the following steps: Remove the INCLUDE Statement: If you have control over the code, the simplest solution is to remove the INCLUDE statement from the BOR object type program. Instead, you can copy the necessary

    Already have an account? Login here!




Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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