How to declare an Internal Table?
Answers were Sorted based on User's Feedback
Answer / 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 |
we can declare internal table with header line and without
header line.
internal table with header line.
data: begin of itab occurs 0,
num type i,
name(23),
........,
........,
end of itab.
internal table without header line.
types: begin of itab,
num type i,
name(23),
........,
........,
end of itab.
data: itab1 type itab occurs 0.
Is This Answer Correct ? | 12 Yes | 6 No |
What are the different OK Codes that can be used in batch input processing?
Explain the difference between domain and data element? What are aggregate object?
Explain some essential objects in abap dictionary?
I wrote one script program,Now i want to transfer this program from development to production system so that output is displayed correct in production.please give me the steps.In development showing correct output but whereas in production somewhat difference.So what is the problem?
Give the syntax of Inner,outer Join?"
7 Answers Genpact, HCL, Satyam,
How can we omit a leading sign and a leading zero in sapscript?
1) What is read with binary search? 2) I have initialization write ?a? Top-of-page write ?b? what is the output for this/ 3) If I don?t have start of selection event in report will it execute?it is mandatory or not? 4) What is table maintenance generator? 5) Is it advisable to have secondary index/ 6) How we will imlement BAPI? 7) What is process code in idoc? 8) Where the information msg will display? 9) Where warning msg will display? 10) Where we use watch point?what exactly watch point means? 11) What is a spool? 12) What is program name that contains all print program names and form names other than TNAPR? 13) How we will capture errors in bapi? 14) How to transfer std text from production to quality?
Difference bet'n simple and interactive reports?
Mention the various databases integrities?
What are the two methods for modifying sap standard tables?
I a custom table some one has edited and deleted something, So how we should maintain the log for changed and edited datas
How can u create a new page in scripts?