SAP Message 5P419 - & The corresponding function for & is in schema &

Diagnosis
You have tried to end a logical block with a function. However, thefunction that started the logical block is in a different schema.Logical blocks represent the functions

  • IF ... ELSE ... ENDIF and

  • LPBEG ... LPEND.

  • Example:
    Schema BSPL:
    COPY BSP1.
    COPY BSP2.
    Schema BSP1: Schema BSP2:
    . .
    . ENDIF
    IF .
    . .
    The above setup is not allowed because there is no logical connectionbetween the schemas BSP1 and BSP2.

    Procedure
    Rearrange the schemas so that the logical blocks are clearly visible.
    Example:
    Schema BSPL:
    .
    IF
    COPY BSP1
    ENDIF
    .