Skip to main content

SAP ABAP Structure Creation in SE11 – Complete Step-by-Step Guide With Real-Time Examples

Learn "SAP ABAP Structure Creation" in "SE11" with step-by-step "real-time examples" for beginners and developers.

6 BULLET POINTS – WHAT YOU WILL LEARN IN THIS BLOG.

  1. Understanding SAP ABAP Structure creation in SE11 and its role as a reusable data object in ABAP Dictionary.
  2. Learning how to define DDIC Structures with components, data elements, and descriptions for real-time scenarios.
  3. Using Structures in ABAP Programs for internal tables, work areas, and modular reusable designs.
  4. Adding Structures into SAP ABAP Database Tables using .INCLUDE with DDIC types.
  5. Difference Between ABAP Structures and Tables including memory allocation, storage, and usage.
  6. Real-time SAP ABAP Structure Implementation with examples like ZMM_STR, customer details, and material structures.
In SAP ABAP, a structure (or structured type) is a data object defined in the ABAP Dictionary that groups together multiple fields (components) of various data types into a single unit. 

  1.  It acts as a template or blueprint for data
  2.  No memory will be allocated to it.
  3.  it is reuseable objects.
  4. Key Characteristics of Structures:
  5.  Data Container
  6.  Defined in ABAP Dictionary
  7.  No Data Storage
  8.  Reusability
  9.  Reference in ABAP Programs
  10.  Includes

GO TO TOCDE SE11

SELECT  DATA TYPE RADIO BUTTON  

AND

SELECT  STRUCTURE RADIO BUTTON TO CREATE STRUCTURE

CLICK ON CREATE BUTTON

ABAP DDIC


ENTER STRUCTURE NAME  BEGIN  WITH Z OR Y 

CLICK ON CREATE BUTTON


SAP ABAP STRUCTURE CREATION SCREEN


ENTER THE DISCRIPTION OF THE STRUCTURE 

SAP ABAP DDIC  STRUCTURE  CREATION


CREATE  REQUIRED FIELDS  AS WE HAVE CREATED BEFORE FOR FOR TABLE CRATION

WHEN YOU CREATE  A FIELD IT WILL ASK FOR THE BELOW OPTIONS

AND SELECT  THE DATA ELEMENT RADIO BUTTON

CLICK ON  CONTINOU

SAP ABAP OUT PUT SCREEN

WE CREATED 3 FIELDS

FNAME  : FATHER NAME

MNAME :  MOTHER NAME

CITY      :  CITY NAME

SAP ABAP ADDING  FIELDS IN STRUCTURE

SAVE CHECK  AND ACTIVITED  

WHEN IT IS ACTIVITED THE N YOU CAN USE THE STRUCTURE IN ANY TABLE CREATION

HOW TO ADD  A STRUCTURE IN  DATA BASE TABLE

SE11

CREATE ANOTEHR  TABLE 

ADD REQUIRED KEY FIELD

THE N ADD THE STRUCTURE

SAP ABAP FIELD ADDED SCREEN

IN FIELD AREA  TYPE

.INCLUDE

DATA ELEMT AREA  ENTER

STR NAME : ZMM_STR

SAP ABAP

SAVE CHECK AND ACTIVATED 

SAP ABAP

STRUCTURE FIELDS WILL BE HIGH LIGHTED IIN  BLUE COLORS  THOSE ARE CALLED AS

STRUCTURE FIELDS.


10 REAL-TIME INTERVIEW QUESTIONS & ANSWERS (SAP ABAP STRUCTURES.

1. What is a Structure in SAP ABAP?

A structure is a reusable DDIC object in SE11 that groups multiple fields without storing any data. It is used as a template for tables and programs.


2. Does a Structure store data in SAP ABAP?

No. A structure does not store data because it has no physical storage in the database. It is only a logical definition.


3. Where do we create Structures in SAP ABAP?

Structures are created in SE11 → Data Type → Structure using the ABAP Dictionary.


4. What is the naming convention for structures in SAP ABAP?

All custom objects must start with Z or Y, such as ZMM_STR.


5. How do you add a Structure inside a Database Table?

In SE11 table fields → under the field name type, enter .INCLUDE, and in data element section provide the structure name (e.g., ZMM_STR).


6. What is the use of .INCLUDE while creating ABAP Tables?

.INCLUDE imports all fields from the structure into the table, making them reusable and consistent across multiple objects.


7. Why are structure fields highlighted in Blue in SE11?

Blue color indicates Structure-Included Fields, meaning the fields came through .INCLUDE and not created manually.


8. What is the difference between a Structure and a Table?

  • Structure: No storage, reusable design, logical definition.

  • Table: Stores actual data, physical database object.


9. Can we use a Structure in ABAP Programs?

Yes. Structures can be used to define work areas or internal table line types in ABAP coding.


10. What happens after activating a Structure in SE11?

Once activated, the structure can be used in tables, views, data elements, or ABAP programs without any additional steps.


NOTE : 




Comments

Popular posts from this blog

SAP ABAP SE11 Data Dictionary Tutorial | Step-by-Step Explanation with Real-Time Examples

    SAP ABAP Data Dictionary (SE11) – Complete Guide to Tables, Views, Domains & Data Elements    What is the ABAP Data Dictionary? The SAP ABAP data dictionary serves as a primary and structured source of data for creating objects. It is an independent database DDL (Data Definition Language) that primarily deals with creating, editing, and dropping database tables. The data dictionary allows you to define and maintain database-related items. The ABAP data dictionary is readily connected with the ABAP workbench, allowing all of the workbench's components to simply access the definitions contained in the dictionary. Functions of Data Dictionary The important functions of data dictionary objects are as follows. 1. Database tables 2. Domains 3. Data elements 4. Views 5. Search helps 6. Lock Objects 1. Database Tables: –  Database tables are collections of fields that store physical data. It is an object that holds data in the form of rows and columns. So databa...

SAP ABAP ALV Report Using REUSE_ALV_GRID_DISPLAY – Complete Tutorial with Examples

  📘 SAP ABAP ALV Report Using REUSE_ALV_GRID_DISPLAY – Complete Step-by-Step Guide (With Real Examples) SAP ABAP developers frequently use ALV (ABAP List Viewer) to present data in a clean and interactive format. One of the most commonly used ALV function modules in classical reporting is: This function module allows developers to create professional ALV reports with features such as sorting, filtering, totals, layout saving, and exporting to Excel. In this guide, I will explain: What REUSE_ALV_GRID_DISPLAY is How field catalogs work How to build an ALV report using MARC and KNA1 tables Real-time business examples Clean, fully working ABAP code This post is written from my personal learning and hands-on experience while working on SAP ABAP reports. 🧩 What is REUSE_ALV_GRID_DISPLAY? REUSE_ALV_GRID_DISPLAY is a function module-based ALV used in SAP ECC and compatible with S/4HANA systems. It displays internal table data in a grid-style output , which is more user...

SAP ABAP Control Break Statements – Complete Guide with AT FIRST, AT NEW & AT END OF Examples

📘 SAP ABAP Control Break Statements – Complete Guide with Example Learn about Control Break Statements in SAP ABAP including AT FIRST, AT NEW, AT END OF, AT LAST, and ON CHANGE OF. Includes a real-time example program with explanation and output. Perfect for SAP ABAP beginners and developers. SAP ABAP Control Break Statements AT NEW ABAP example AT END OF ABAP tutorial ABAP loop control SAP ABAP report programming AT FIRST, AT LAST in ABAP SAP ABAP internal table sorted 📘 Introduction In SAP ABAP , control break statements are used to trigger events inside a loop . They are essential for creating grouped or hierarchical reports , especially when working with sorted internal tables. There are 5 main control break statements in ABAP: AT FIRST – ENDAT AT NEW – ENDAT AT END OF – ENDAT AT LAST – ENDAT ON CHANGE OF FIELD. SAP ABAP Loop Control Tutorial:  How to Use AT NEW, AT END OF, AT FIRST, AT LAST, & ON CHANGE OF  FIELD. 🧠 Key Control Break Statements Explai...