New ABAP – 7.5

Dynamic Declaration

SELECT * FROM mara
  UP TO 10 ROWS
  INTO TABLE @DATA(lt_mara).

Internal Table Access

TRY.
    DATA(lv_material) = lt_mara[ 1 ]-matnr.
  CATCH cx_sy_itab_line_not_found.
ENDTRY.

Conversion Exit

lv_material = |{ lv_material ALPHA = IN }|.

Copying internal table with Mapping and Except.

lt_mailing_addr = CORRESPONDING #( lt_service_addr MAPPING adrnr = addrnum EXCEPT postal_code2 ).
%d bloggers like this: