Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Query

Former Member
0 Likes
557

Hi,

Can we use SQL seclect statements in ABAP QUERY.

While using multiple tables, Duplicate datas are generated in the output. How to avoid it.

Regards,

Ajju

3 REPLIES 3
Read only

Former Member
0 Likes
407

Hi,

After selecting in an internal table and u can delete the duplicate entries.

DELETE ADJACENT DUPLICATES FROM itab.

Thanks & Regards,

Judith.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
407

Hi,

Use DISTINCT in the select statement.

I think you had posted the qn. twice.

Read only

Former Member
0 Likes
407

Hi Ajju, hi everyone,

YES you can. When defining a query you can add extra ABAP coding:

1. At tx SQ02, select your infoset and "change" it

2. At the menu, select Goto > Code > Data

3. At the right part of the screen, select the "event" you want to add the code to: data, start-of-selection, get, get late, ...

4. At the right part of the screen (just below the event you just selected), place here your ABAP code

...and that's it

Pls let us know if it helped. BR,

Alvaro