How To Fix 37064 - Specify loop block end line without continuation lines


SAP Error Message - Details

  • Message type: E = Error

  • Message class: 37 - Screen Painter

  • Message number: 064

  • Message text: Specify loop block end line without continuation lines

  • Show details Hide details
  • What causes this issue?

    Subsequent lines have already been defined for the loop block.

    How to fix this error?

    To define a loop block, position the cursor in the first line of the
    loop and press F16. To define a loop block with several lines, repeat
    the above procedure for the last line of the block. Then define the
    loop factor by pressing F22. If the loop factor was increased following
    definition of a single-line loop and the loop block must be changed,
    then delete all subsequent lines using F23.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 37064 - Specify loop block end line without continuation lines ?
    The SAP error message 37064, "Specify loop block end line without continuation lines," typically occurs in ABAP programming when there is an issue with the structure of a loop block in your code. This error indicates that the ABAP compiler has detected a loop block that is not properly terminated or has continuation lines that are not correctly formatted.
    
    Cause: Improper Loop Block Structure: The loop block may not have a proper ending statement, or there may be continuation lines that are not correctly defined. Syntax Errors: There could be syntax errors in the loop structure, such as missing ENDLOOP statements or incorrect indentation. Continuation Lines: If you are using continuation lines (for example, when a statement is too long and is split across multiple lines), they may not be formatted correctly.
    Solution: Check Loop Structure: Ensure that every LOOP statement has a corresponding ENDLOOP statement. The structure should look like this: LOOP AT itab INTO wa.

    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