2008 Apr 15 9:34 AM
Hi,
How to find if all the records are identical in an internal table.
Eg.I have a internal table itab
The user will enter some 'm' number of records,i need to check if all the records are identical in the internal table.
Could you help me out.
2008 Apr 15 9:37 AM
Do they need to be identical?
You might want to declare an internal (TYPE SORTED TABLE OF) with a unique key. this way you will always have unique records. But when insert data into internal table use the INSERT and NOT the APPEND. This can violate the key and will give a short dump.
Do they need to be identical?
You might want to declare an internal (TYPE SORTED TABLE OF) with a unique key. this way you will always have unique records. But when insert data into internal table use the INSERT and NOT the APPEND. This can violate the key and will give a short dump.
2008 Apr 15 9:37 AM
Do they need to be identical?
You might want to declare an internal (TYPE SORTED TABLE OF) with a unique key. this way you will always have unique records. But when insert data into internal table use the INSERT and NOT the APPEND. This can violate the key and will give a short dump.
2008 Apr 15 9:40 AM
hi,
use this code.
data: wa_entry type zentry.
read table itab1 from wa_entry comparing all fields.
if sy-subrc eq 2.
"True
else.
"False
endif.
regards,
Peter
2008 Apr 15 9:56 AM
Hi,
but what is zentry in this code.
data: wa_entry type zentry.
2008 Apr 15 10:12 AM
hi,
i use zentry because i don't know the structure of your work area for user entries.
regards,
Peter
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |