Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Select distinct issue

$
0
0

Hi gurus.

Forgive me for such silly question but I don't have too much experience in ABAP.

I search for an answer for this question but being honest, I have no idea of an effective way to search for this.

Well, the problem is:

 

I build a dynamic SQL statement like this.

 

img_select.png

 

So, I'm facing a problem, when I execute the same statemant using SE11 I got more records than when I execute this sentence in the program, so, I record a trace for this statemant in ST05 and for my surprise I got this.

 

trace_result.png

 

So, I ask you guys, where that DISCTINC came from? Because it is not in the lv_fields variable.

 

I could solve this problem by selecting the PK fields for this table but, I don't need those fields.

 

I very appreciate any help.

 

regards

 

Ronaldo.


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>