2007 May 31 4:09 PM
Hi all,
I have this question:
How to select records from a table to an itab choosing distinct values of a certain field (not the key) ?
Thanks,
Massimo
2007 May 31 4:11 PM
SELECT DISTINCT <fields>
FROM <table>
INTO TABLE i_tab
WHERE <conditions>
Regards.
Reward all helpful answers
SELECT DISTINCT <fields>
FROM <table>
INTO TABLE i_tab
WHERE <conditions>
Regards.
Reward all helpful answers
2007 May 31 4:11 PM
Hi,
You can use SELECT DISTINCT
Try this..
SELECT DISTINCT( MATNR ) FROM VBAP INTO TABLE T_VBAP
WHERE ....
Thanks,
Naren
2007 May 31 4:11 PM
SELECT DISTINCT <fields>
FROM <table>
INTO TABLE i_tab
WHERE <conditions>
Regards.
Reward all helpful answers
2007 May 31 4:12 PM
2007 May 31 4:13 PM
Hi
Give ur select statement like this.
select distinct <field name> from <Database table name> into <internal table name>
Eg: select distinct land1 from lfa1 into table it_lfa1.
Regards
Haritha.
2007 May 31 4:15 PM
Hi Massimo,
Select all required data into internal table.suppose u want to remove duplicates of field2 .then use the below statement.
delete adjasent duplicates from itab comparing field2.
reward points if helpful.
Thanks,
Suma
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |