![]() ![]() ![]() The reading is based on a table, so you can use the FILTER operator, for example, to generate the. That is, instead of making a LOOP inside LOOP between two tables, you can use REDUCE to directly access the items you need to read. So, it is always best practise of specifying FROM, TO or WHERE options to improve performance. With REDUCE it is possible to do a mathematical operation grouping by the items of a certain table for example. Without the WHERE option, the system read all lines. The WHERE option filters the lines that satisfies the condition. The FROM and TO options restrict the number of lines and specifies the number of lines that the system must read. SY-SUBRC = 0: If at least one line retrieved. The loop processing ends as soon as all lines of the table have been processed. SY-TABIX contains the index of the current retrived line once the LOOP statement gets executed.
0 Comments
Leave a Reply. |