Do you have any question about this error?
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
You have tried to reference an include with the INCLUDE statement.
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.
Define your constants and types using a type group and include it via
the statement TYPE-POOLS. For new data, use attributes.
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.
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 code directly into the program or refactor your code to avoid the need for anINCLUDE
.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
.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.
Consult Documentation: Review the SAP documentation related to BOR and object types to ensure that you are following best practices and guidelines.
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:
By following these steps, you should be able to address the OL543 error and ensure that your BOR object type program functions correctly.
Get instant SAP help. Start your 7-day free trial now.
OL542
No methods defined
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
OL541
Organizational object type '&' not defined
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
OL544
Numeric constant expected as exception
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
OL545
Literal expected as parameter or attribute name
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.