2007 Dec 18 5:20 PM
Hi,
I have a basic question.
If there is a declaration:
DATA: a1 type TABLE OF table1.
What does it mean.
How it differs from this declaration:
DATA: a1 type table1.
Thanks.
- Deepan
2007 Dec 18 5:31 PM
Hi
I suppose <TABLE1> is a dictionary table or staructure, there are several way to define an internal table, one is:
DATA: A1 TYPE TABLE OF <TABLE1>.
This declaration creates a standard table, so it's equal to:
DATA: A1 TYPE STANDARD TABLE OF <TABLE1>.
In both cases it creates an internal (standard) table without header line.
Probably u can use declaration like these:
DATA: BEGIN OF A1 OCCURS 0.
INCLUDE STRUCTURE <TABLE1>.
DATA: END OF A1.
or
DATA: A1 TYPE <TABLE1> OCCURS 0.
U can use one of those definitions to create an internal (standard) table structurated like TABLE1.
DATA: A1 TYPE <TABLE1>.
This creates a variable A1 structurated as <TABL1>, so it could be used as header line for a internal table declarated like above.
Max
Hi,
I have a basic question.
If there is a declaration:
DATA: a1 type TABLE OF table1.
What does it mean.
How it differs from this declaration:
DATA: a1 type table1.
Thanks.
- Deepan
2007 Dec 18 5:31 PM
Hi
I suppose <TABLE1> is a dictionary table or staructure, there are several way to define an internal table, one is:
DATA: A1 TYPE TABLE OF <TABLE1>.
This declaration creates a standard table, so it's equal to:
DATA: A1 TYPE STANDARD TABLE OF <TABLE1>.
In both cases it creates an internal (standard) table without header line.
Probably u can use declaration like these:
DATA: BEGIN OF A1 OCCURS 0.
INCLUDE STRUCTURE <TABLE1>.
DATA: END OF A1.
or
DATA: A1 TYPE <TABLE1> OCCURS 0.
U can use one of those definitions to create an internal (standard) table structurated like TABLE1.
DATA: A1 TYPE <TABLE1>.
This creates a variable A1 structurated as <TABL1>, so it could be used as header line for a internal table declarated like above.
Max
2007 Dec 18 5:40 PM
Hi,
DATA: a1 type TABLE OF table1.Above statement declares an internal table without header line of type table, which may be a standard table.
DATA: a1 type table1.Above statement creates a structure or workarea which of type table.
Thanks,
Sriram Ponna.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |