Do you have any question about this error?
Message type: E = Error
Message class: ED - ABAP/4 Editor messages
Message number: 152
Message text: Generated BOR programs can only be edited in BOR
The program includes the implementation of a business object type.
These programs may only be maintained via the Business Object
Repository (Transaction SWO1).
The object type name can be seen as a comment in the first line of the
object type implementation.
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.
The SAP error message ED152, which states "Generated BOR programs can only be edited in BOR," typically occurs when you attempt to edit a Business Object Repository (BOR) program directly in the ABAP Workbench or other development tools, rather than through the appropriate BOR interface.
Cause:
- Editing Restrictions: The error indicates that the program you are trying to edit is a generated program from the BOR, which means it is automatically created based on the definitions in the BOR. These generated programs are not meant to be edited directly in the ABAP Workbench.
- Incorrect Access Method: You may be trying to access or modify the program using the wrong transaction or tool, which does not support direct editing of BOR-generated programs.
Solution:
Use the BOR Interface: To edit the generated BOR programs, you need to use the Business Object Builder (transaction code
SWO1
). This is the correct interface for managing and modifying business objects.
- Open transaction
SWO1
.- Locate the business object you want to edit.
- Make the necessary changes to the object definition.
- After making changes, regenerate the program if needed.
Regenerate the Program: After making changes in the BOR, you may need to regenerate the associated program to reflect the updates. This can usually be done within the BOR interface.
Check Authorizations: Ensure that you have the necessary authorizations to edit business objects in the BOR. Lack of proper permissions can also lead to issues when trying to access or modify these objects.
Related Information:
SWO1
(Business Object Builder) and SWO2
(Business Object Explorer) for managing business objects.By following these steps and using the appropriate tools, you should be able to resolve the ED152 error and successfully edit the BOR programs.
Get instant SAP help. Start your 7-day free trial now.
Feature | Free Access | Free Trial |
---|---|---|
Basic SAP error explanation | ![]() |
![]() |
Step-by-Step Usage Guide | ![]() |
![]() |
Interactive SAP Coach Assistance | ![]() |
![]() |
AI Troubleshooting for T-Code Errors | ![]() |
![]() |
ED151 The modified event is not contained in the old source
Self-Explanatory Message Since SAP believes that this specific error message is ...
ED150 Object & could not be reset
Self-Explanatory Message Since SAP believes that this specific error message is ...
ED153 Hit is in compressed area
Self-Explanatory Message Since SAP believes that this specific error message is ...
ED154 No documentation exists
Self-Explanatory Message Since SAP believes that this specific error message is ...
SAP messages fall into 3 different categories: Error messages
(message type = E), Warnings (W) or Informational (I) messages.
An error message will prevent you from continuing your work - it is a hard stop and you need to fix the error before you can proceed. A warning message will stop your work, however, you can then bypass the warning by pressing the Enter key on your keyboard. That said, it is still good practice to investigate the cause of the warning message and address it. An information message will not stop your work and is truly just for informational purposes.
Click on this link to search all SAP messages.