SAP Message 5P420 - & Beginning of function & or end of function & missing

Diagnosis
You have tried to end a logical block with the function 'X'. However,the logical block that was started with the function 'Y' has not yetended. Logical blocks represent the functions

  • IF ... ELSE ... ENDIF or

  • LPBEG ... LPEND.

  • Example:
    IF (Function Y)
    .
    .
    LPEND (Function X)

    Procedure
    This situation could have occurred because:

    • You have forgotten to end the logical block IF .. ENDIF by placing
    • ENDIF before LPEND.
      • You have forgotten to begin the logical block LPBEG .. LPEND by placing
      • LPBEG after IF.
        Insert the required function.