Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

Chapter 4. INTERNAL TABLES > 27. How do you determine whether an internal table... - Pg. 88

88 SAP ABAP Q UESTIONS AND A NSWERS statement. Like the refresh statement, it also works on the body of a table. The header line remains unchanged if it exists. The following syntax is used for the free statement: free <itab>. In this code, <itab> is an internal table with or without a header line. 26. How do you process table entries in loops? The LOOP statement is used to read some or all rows from an internal table. Syntax: LOOP AT <itab> <into <to y><where expression> <statement block> ENDLOOP. In this code: itab is the name of an internal table. wa1 is the name of the work area. x and y are integer literals, constants, or variables. expression denotes a logical expression. wa1> <from x> The lines of the table are read one by one and are processed in the statements within the L O O P . . . E N D L O O P control structure. 27. How do you determine whether an internal table is empty? The following statement is used to determine whether an internal table is empty: if itab[] is initial.