How To Fix 37073 - Selection in loop continuation lines is not allowed


37073 - Overview

  • Message type: E = Error

  • Message class: 37 - Screen Painter

  • Message number: 073

  • Message text: Selection in loop continuation lines is not allowed

  • Show details Hide details
  • What causes this issue?

    You cannot select screen elements for moving or copying to lines in
    subsequent loop blocks.

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

    How to fix this error?

    You can only move elements within a loop block.

    Error message extract from SAP system. Copyright SAP SE.


37073 - Details

  • The SAP error message 37073, "Selection in loop continuation lines is not allowed," typically occurs in ABAP programming when there is an attempt to use a selection statement (like SELECT, SELECT-OPTIONS, or PARAMETERS) within a loop that is not allowed. This error is often related to the structure of the code and how the loops and selection statements are organized.
    
    Cause: Improper Placement of Selection Statements: The error usually arises when a selection statement is placed inside a loop that is not designed to handle it. For example, if you have a LOOP AT statement and you try to perform a SELECT query inside that loop, it can lead to this error. Nested Loops: If you have nested loops and the inner loop contains a selection statement, it may also trigger this error. Incorrect Use of Control Structures: Using control structures incorrectly can lead to this error, especially if the logic is not properly

    Already have an account? Login here!




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


37073 - Related SAP Errors

Click on this link to search all SAP messages.


Rating
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author