Using BAPI upload excel file for t-code AS02 in SAP

Using BAPI " BAPI_FIXEDASSET_CHANGE " create a zprogram to upload excel file for mass change fixed asset in SAP. REPORT  ZAS02_ASSET_CHANGE_UPLOAD . TYPE-POOLS :  truxs . " Structure for Excel data TYPES :  BEGIN  OF  ty_excel ,          anln1  TYPE  anln1 ,          bukrs  TYPE  bukrs ,          kostl  TYPE  kostl ,          werks  TYPE  werks ,          prctr  TYPE  prctr ,         END  OF  ty_excel . DATA :  lt_excel     TYPE  TABLE  OF  ty_excel ,       ls_excel     TYPE  ty_excel ,     ...

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

Alpha IN/OUT to Handle Leading Zeros in SAP ABAP