How To Fix ED351 - Source code of &1 contains modification parenthesis/es (line &2)


ED351 - Overview

  • Message type: E = Error

  • Message class: ED - ABAP/4 Editor messages

  • Message number: 351

  • Message text: Source code of &1 contains modification parenthesis/es (line &2)

  • Show details Hide details
  • What causes this issue?

    The ABAP source code of &V1& contains modification parentheses.

    System Response

    Modification parentheses are comments as follows:
    *{ INSERT
    *} INSERT
    *{ DELETE
    *} DELETE
    *{ REPLACE
    *} REPLACE

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

    The modification assistant in ABAP Editor uses these parentheses in
    customer systems to flag modified sections of source code in mod
    ification mode. These help customers to insert their modifications again
    after an upgrade.
    If modification parentheses are delivered in source code from SAP (more
    specifically, unpaired or nested parentheses), customers cannot benefit
    from modification assistant functions. After an upgrade, customers can
    no longer insert modifications automatically and it is also not possible
    to make new modifications in ABAP source code using the modification
    assistant.
    This means modification parentheses cannot be added manually to ABAP
    source code at SAP and then delivered in this source code.
    The only exception to the delivery of source code with modification
    parentheses are some industry solutions (or other special solutions)
    that themselves are developed using the modification assistant at SAP.
    In these cases, the modification parentheses are inserted automatically
    by the modification assistant.

    How to fix this error?

    Remove (at the least) all unpaired and nested modification parentheses.
    If the ABAP source code was not edited using the ABAP Editor
    modification mode (the regular case at SAP), all modification
    parentheses should be removed.
    You can use the program RS_CHECK_MOD_BRACKETS_SAP to find all
    modification parentheses in programs (even across a complete package).

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message ED351 - Source code of &1 contains modification parenthesis/es (line &2) ?
    The SAP error message ED351 indicates that there are modification parentheses in the source code of a program or function module. This typically means that the code has been modified in a way that is not compliant with the standard SAP development guidelines, which can lead to issues during transport or execution.
    
    Cause: Modification Parentheses: The presence of modification parentheses in the source code indicates that the code has been modified directly in the SAP system. This is often done to customize the behavior of standard SAP programs or function modules. Transport Issues: If the modified code is part of a transport request, it may cause issues when trying to transport the changes to another system (e.g., from development to quality assurance or production). Incompatibility: The modifications may not be compatible with future updates or support packages from SAP, leading to potential problems during upgrades.
    Solution: Review Modifications: Check the source code for any modification parentheses.

    Already have an account? Login here!




Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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