ED152 - Generated BOR programs can only be edited in BOR


SAP Error Message - Details

  • 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

  • Show details Hide details
  • What causes this issue?

    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.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 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:

    1. 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.
    2. 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:

    1. 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.
    2. 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.

    3. 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:

    • Business Object Repository (BOR): The BOR is a central repository in SAP that defines business objects and their methods, events, and attributes. It is used for workflow and integration purposes.
    • Transaction Codes: Familiarize yourself with relevant transaction codes such as SWO1 (Business Object Builder) and SWO2 (Business Object Explorer) for managing business objects.
    • Documentation: Refer to SAP documentation or help resources for more detailed guidance on working with BOR and 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.

    Artificial intelligence solution provided by tomco.ai.
    Disclaimer
    • 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.


Feature Free Access Free Trial
Basic SAP error explanation T-Code Explanation T-Code Explanation 2
Step-by-Step Usage Guide Step-by-Step Step-by-Step 2
Interactive SAP Coach Assistance Interactive SAP Interactive SAP 2
AI Troubleshooting for T-Code Errors AI Troubleshooting AI Troubleshooting 2

Related SAP Error Messages

Click the links below to see the following related messages:


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.


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