Comments on the article
balu - 09/02/2024 - 14:53
INSERT LINES OF CORRESPONDING #( lt_booking ) INTO gt_booking.
above statement is not working. how to solve?
In the above statement GT_BOOKING is SORTED table.
LT_BOOKIG is with Different Structure but both are having Common fields.
balu - 09/02/2024 - 14:26
Is it possible to insert Internal table into Sorted Internal table? if possible how to do that using New ABAP Syntax?
Hello balu,
normally you would use this one, the error message says, that it can not derive the right type:
INSERT LINES OF CORRESPONDING tt_sorted( lt_unsorted ) INTO TABLE lt_sorted.
When you have duplicates in you unsorted table, you will get a dump. For this case you can use this statement to get rid of the duplicates:
lt_sorted = CORRESPONDING #( BASE ( lt_sorted ) lt_unsorted DISCARDING DUPLICATES ).