Internal Table & Structure concept in SAP ABAP

Today I am going to discuss about Internal Table concept in sap ABAP. Internal table is a temporary table created in RAM. It is created during run time and store data temporarily.
Using "Table of"  key word we can create internal table.Internal table can store multiple value in run time.
Syntax of internal table:
Data: Itab TYPE TABLE OF  MARC (TYPE TABLE).

Even we can create internal table as we need. At the very first time we need to create a structure.
Using Type keyword we create structure in ABAP program. Structure never holds any data, based on structure we can create number of object in sap.
Syntax:
Types: Begin of st ,
            matnr  type  marc-matnr,
           werks   type  marc-werks,
           sobsk    type marc-sobsk,
           End of st.

then we can create our internal table like :

DATA: ITAB TYPE TABLE OF ST.

Comments

Popular posts from this blog

New commodity code create in SAP S/4 Hana

BAPI to Change STO PO/ PO Delivery date in SAP

INITCAP- First letter of the word Capital in SAP ABAP