Do you have any question about this error?
Stop Googling SAP errors. Use our Free Essentials plan instead - instant AI help, no credit card needed. Start Now →
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.
ED152
- Generated BOR programs can only be edited in BOR ?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. Sign up for our Free Essentials Plan.
ED151
The modified event is not contained in the old source
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ED150
Object & could not be reset
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ED153
Hit is in compressed area
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ED154
No documentation exists
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.