2006 Feb 09 5:00 PM
According to the documentation, the default standard key contains the non-numeric components of a structure. If I only have numeric components, does a key get created?
For example, below itab1 has a key of my_index. But what is the key of itab2, if any?
Maybe it is a trivial question, but it is bugging me.
REPORT z_itab_keys.
TYPES: BEGIN OF z_index,
my_index TYPE i,
my_salary TYPE p,
END OF z_index.
DATA: z_itab1 TYPE TABLE OF z_index WITH NON-UNIQUE KEY my_index,
z_itab2 TYPE TABLE OF z_index WITH NON-UNIQUE DEFAULT KEY.
Hi Jerry,
If you dont specify explicitly,there wont be any key for the internal table.
So itab2 has similar structure as itab1 but it doesnt take other properties of itab1 unless you specify.
2006 Feb 09 5:04 PM
Hi Jerry,
If you dont specify explicitly,there wont be any key for the internal table.
So itab2 has similar structure as itab1 but it doesnt take other properties of itab1 unless you specify.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |