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 is the meaning of abap editor integrated with abap data dictionary? : abap data dictionary

845


when do you need to create an internal table with header line ? and with out a header line?

1688


how to Create a smart form related to gate pass to be submitted to vendor’s location. This form outputs document number, date, vendors name, address, material details, quantity, unit,and the company logo.

5000


Can we use transfer dataset to transfer data in internal table ?

1808


What are the differences between primary and secondary indexes?

784






Why is pretty printer user in abap?

801


How can we create callable modules of program code within one abap/4 program?

773


What is buffering allowed but switched off?

1015


Explain the Importance of pa20? : abap hr

788


Create any functions? How to go about it?

699


Difference between BDC vs Direct Loads?

809


What is the name of the system variable that holds the contents of the selected line in interactive reporting?

873


Polymorphism real time scenario

1178


How are the date abd time field values stored in sap?

768


What are the advantages of logical databases : abap hr

735