Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

select...endselect query.

former_member770121
Participant
0 Kudos

select and endselect query act as loop and define functationality of function module read-text ????

4 REPLIES 4

abo
Active Contributor

and your question is ?

former_member770121
Participant
0 Kudos

my question is so simple select and endselect query is act as loop????

0 Kudos

Thanks but don't precise your question by an answer 😉

Please use the COMMENT button for comments, questions, adding details, replying to a comment or a proposed solution or to the OP question, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.

Sandra_Rossi
Active Contributor
0 Kudos

Yes select ... endselect is a loop. It's why it's also called in short a "select loop".

Look at ABAP documentation https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapselect.htm:

  • "In the following cases, the statement SELECT opens a loop that must be closed using ENDSELECT."
  • ...
  • "In each loop iteration, the SELECT statement assigns a row or a packet of rows to the data objects specified in target."
  • ...