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 |
Did you create help views?
Explain what is the step-by-step process to create a table in data dictionary?
What are data integrity constraints?
What is Direct Input method?
Explain the different types of screen keywords?
What you modified in Purchase Order?
How to get that a secondary index is attached to a select query?
with out using chain and end chain how you will do validations
how many records are updated from a flatfile to sap database in one shot?
What are the page windows?
What is the difference between Search help and Match code ?
how many fields in mara table.