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


SAP Error Message - Details

  • 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:

    1. 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 code directly into the program or refactor your code to avoid the need for an INCLUDE.

    2. Use Function Modules: If the code you are trying to include is reusable, consider encapsulating it in a function module. You can then call this function module from your BOR object type program instead of using an INCLUDE.

    3. Check for Other Errors: Sometimes, the error may be a symptom of a larger issue. Ensure that your BOR object type is correctly defined and that there are no other syntax or structural errors in your program.

    4. Consult Documentation: Review the SAP documentation related to BOR and object types to ensure that you are following best practices and guidelines.

    5. Seek Help from SAP Support: If you are unable to resolve the issue, consider reaching out to SAP support or consulting with a colleague who has experience with BOR object types.

    Related Information:

    • Business Object Repository (BOR): This is a framework in SAP that allows for the definition and management of business objects. It is used in various SAP applications to facilitate business processes.
    • ABAP Programming: Understanding the ABAP programming language and its syntax is crucial when working with SAP programs. Familiarize yourself with the rules and restrictions that apply to different types of programs.
    • SAP Notes and Knowledge Base Articles: Check SAP Notes for any specific fixes or updates related to the OL543 error. The SAP Support Portal can be a valuable resource.

    By following these steps, you should be able to address the OL543 error and ensure that your BOR object type program functions correctly.

    • 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's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker