Application Development and Automation 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: 
Read only

general

Former Member
0 Likes
410

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

2 REPLIES 2
Read only

Former Member
0 Likes
334

hi,

the answer s...

B: Remove the SORT statement .

reward if helpful,

Ashu

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
334

Hi,

Answer is 'B'.

Since the table is sorted ,no explicit SORT command is required...

Cheer,

Simha.

Reward all the helpful answers.