2023 Jan 18 5:57 PM
Hello community!
I am doing an exercise on internal tables, and when writing the following code I have a syntax error.
The syntax error that it generates is the following: "USING" expected, not "READ TABLE HOLIDAY WITH".
could someone guide me?
thanks!
TYPES:
BEGIN OF ty_reg,
id(3) type n,
text(20) type c,
END OF ty_reg.
DATA:
day TYPE STANDARD TABLE OF ty_reg WITH HEADER LINE,
holiday TYPE STANDARD TABLE OF ty_reg WITH HEADER LINE.
SORT: day BY id, holiday BY id.
LOOP AT day
READ TABLE holiday WITH KEY id = day-id INTO day BINARY SEARCH.
IF sy-subrc EQ 0.
day-text = holiday-text.
MODIFY day INDEX sy-tabix.
ENDIF.
ENDLOOP.
2023 Jan 18 6:23 PM
2023 Jan 18 8:06 PM
Pay attention around the place. Statements must all end with a dot.
2023 Jan 19 8:46 AM
2023 Jan 19 5:27 PM