‎2007 Jun 06 10:11 AM
If the following code results in a syntax error, the remedy is:
DATA: itab TYPE SORTED TABLE OF rec_type WITH UNIQUE KEY field1
WITH HEADER LINE.
itab-field1 = 'Company'. itab-field2 = '1234'. INSERT TABLE itab.
itab-field1 = 'Bank'. itab-field2 = 'ABC'. INSERT TABLE itab.
SORT itab.
LOOP AT itab.
write: /1 itab-field1, itab-field2.
ENDLOOP.
A: There is no syntax error here
B: Remove the SORT statement
C: Change INSERT to APPEND
😧 Add a WHERE clause to the loop
‎2007 Jun 06 10:15 AM
hi,
the answer s...
B: Remove the SORT statement .
reward if helpful,
Ashu
‎2007 Jun 06 10:18 AM
Hi,
Answer is 'B'.
Since the table is sorted ,no explicit SORT command is required...
Cheer,
Simha.
Reward all the helpful answers.