Posts

Showing posts from April, 2025
Image
  SAP ABAP , structures are data types that group together components (fields) under one name, where each component can have a different data type. They are used to represent a record or a logical grouping of data fields — similar to a "struct" in languages like C or a "record" in Pascal. 🔹 Key Characteristics of Structures in ABAP: Non-repetitive : Unlike internal tables, structures hold only one row of data at a time. Composite data type : They consist of multiple fields, each with its own data type. Used in : Data declarations, interfaces between programs and function modules, data transport between screens and programs, etc. 🔸 Types of Structures: . Flat Structures C . Nested Structures 🔸 Declaring and Using Structures: Declaration using TYPES and DATA : abapCopyEdit TYPES: BEGIN OF ty_person, name TYPE string, age TYPE i, END OF ty_person. DATA: ls_person TYPE ty_person. Assigning Values: abapCopyEdit ls_person-name = 'Alice'. ls_person-age = 3...