Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
anujawani2426
Active Participant
This is the next blog post in this series. Here is the previous blog post Getting Started With ABAP: Table Maintenance Generator

In the previous blog post, we learned what is table maintenance generator.

In this blog post we will learn types of structure and how to create flat and nested structure.

Types of Structure



  1. Flat Structure

  2. Nested Structure

  3. Deep Structure


For more information you can refer this document Types of structures

Flat Structure


We can create this structure from SE11 that is global structure that means we can reuse it in more than one program. Also, we can create structure through ABAP programming that we will see in later part.

In this blog post we will see how to create structure through SE11.

How to Create Flat Structure


Step 1: Go to SE11 and click on Data Type.


Step 2: Enter the name of Structure that you want to create and click on Create.


Step 3: Select Structure and press Enter.


Step 4: Give the short description.


Step 5: Enter Component that means field name Employee_id and select typing method as Types.


Step 6: We have already created Employee_id field in table so we can use here. Enter Component type as data element name which is created earlier. If not created you can create data element first and enter that name.


In this way, you can add more fields as per your requirement.

Step 7: Save and activate structure.


Here Flat Structure is created.

Nested Structure


How to create Nested Structure


Step 1: Go to SE11 and select Data type. Enter name of structure that you want to create. Click on Create.


Step 2: Select Structure and Press Enter.


Step 3: Give short description. Enter the name of component and select types.


Step 4: Enter component type as flat structure name that we have created earlier. Save and activate it.


You can add more components and more than one flat structure as component. Nested structure contains at least one flat structure.

Here you can check next blog post Getting Started with ABAP: How to Create Table Type and Deep Structure

Here we have completed the how to create Flat and Nested structure.

Follow my profile to be notified of the next blog post. Please feel free to ask any questions you have in the comments section below.

 
4 Comments