Do you have any question about this error?
Message type: E = Error
Message class: 37 - Screen Painter
Message number: 064
Message text: Specify loop block end line without continuation lines
Subsequent lines have already been defined for the loop block.
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.
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 correspondingENDLOOP
statement. The structure should look like this:LOOP AT itab INTO wa. " Your processing logic here ENDLOOP.
Review Continuation Lines: If you are using continuation lines, make sure they are correctly formatted. In ABAP, a continuation line should start with a space in the first column. For example:
DATA: lv_long_variable TYPE string. lv_long_variable = 'This is a very long string that needs to be continued' && ' on the next line.'.
Indentation and Formatting: Ensure that your code is properly indented and formatted. This can help in visually identifying any missing or misplaced statements.
Use the ABAP Editor: Utilize the ABAP editor's syntax check feature (by pressing
Ctrl + F2
) to identify and correct any syntax errors in your code.Debugging: If the error persists, consider debugging the code to see the exact line where the error occurs. This can provide more context on what might be causing the issue.
Related Information:
By following these steps, you should be able to resolve the error message 37064 and ensure that your ABAP code is correctly structured.
Get instant SAP help. Start your 7-day free trial now.
37063
Collision at target location. Operation not performed
What causes this issue? When moving or copying a block consisting of one or more elements, the target block must be the same size as the selected blo...
37062
Screen limit exceeded (&1 lines, &2 columns)
What causes this issue? The message appears either when you move screen elements or blocks, or when you change the length (number of columns) or heig...
37065
Loop block end line is not greater than first line
What causes this issue? When defining a loop block, you cannot position the cursor on a line above the first loop line.How to fix this error? To def...
37066
Insufficient space for loop continuation lines
What causes this issue? You can only increase the loop factor if there is an adequate number of blank lines for the next loop block.How to fix this e...
Click on this link to search all SAP messages.