Posts

Showing posts with the label SAP Inline Declarations

ABAP Inline Declarations Change - Before Vs After SAP 7.40

Image
Before 7.40, we always had to declare and define structures and internal table as shown below. After 7.40, SP08, there is no need to define structures and internal tables, the system automatically determines the structure of the internal table, based on the defined SELECT list. SAMPLE PROGRAM: Before SAP 7.40 REPORT ztest_before_7_40. TYPES: BEGIN OF gty_mara,          matnr TYPE mara-matnr,          mtart TYPE mara-mtart,          matkl TYPE mara-matkl,        END OF gty_mara. TYPES: BEGIN OF gty_makt,          matnr TYPE makt-matnr,          maktx TYPE makt-maktx,        END OF gty_makt. TYPES: BEGIN OF gty_final,          matnr TYPE mara-matnr,          maktx TYPE makt-maktx,         ...