SAP / SAP Beginner (0 to 2 yrs) Interview questions
What is a structure in ABAP?
A structure groups several related fields of potentially different types together under one name —
similar to a struct in C or a plain data class in other languages — commonly used to
represent one row's worth of data, such as a single customer record with fields for ID, name, and address.
DATA: BEGIN OF ls_customer, kunnr TYPE kunnr, name1 TYPE name1_gp, land1 TYPE land1, END OF ls_customer. ls_customer-kunnr = '0000001234'. ls_customer-name1 = 'Acme Corp'.
Structures are frequently defined to mirror a database table's row layout, and they're what an internal table actually holds many of — you can think of an internal table as a list of structures, each structure representing one row's worth of data.
More Related questions...