How to declare an Internal Table?

Answer Posted / mansi

Internal table is declared by many ways:

(A)
Data : BEGIN OF IT_TAB occurs 10,
RNO(4) TYPE N,
SNAM(45) TYPE C,
END OF IT_TAB.

(B)
TYPES : BEGIN OF tT_TAB,
RNO(4) TYPE N,
SNAM(45) TYPE C,
END OF tT_TAB.

DATA : tT_TAB TYPE STANDARD TBLE OF tT_TAB with header line.

(C)
TYPES : BEGIN OF tT_TAB,
RNO(4) TYPE N,
SNAM(45) TYPE C,
END OF tT_TAB.

DATA : iT_TAB TYPE STANDARD OF tT_TAB.

(D)
DATA : BEGIN OF IT_TAB,
RNO(4) TYPE N,
SNAM(45) TYPE C,
END oF IT_TAB.

DATA : wa_TAB LIKE LINE OF IT_TAB,
wa_TAB TYPE OF IT_TAB

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of abap/4 dictionary? : abap data dictionary

691


Explain difference between primary key and unique key?

617


Define batch input session?

669


What is the procedure you followed to upload the data?

655


How do you control printer functions from sapscript?

827






What is meant by performance analysis? Have done anything to improve the performance?

645


How to define selection screen?

675


How we format the data before before write statement in report ?

643


It is possible to assign a local data object defined in a subroutine or function module to a field group. State true or false. : abap modularization

891


Explain the Inportance of pa40? : abap hr

651


How many structures can be created in a Ztable ?

3223


what are the various types of parameters and how are they distinguished from one another?

842


MY DOMAIN IS SAP-ABAP COMPARE TO WEBDYNPRO AND CRM-TECHNICAL WHICH IS BEST?

2542


In select-options, how to get the default values as current month first date and last date by default?

708


When the top-of-page event does get triggered?

788