Quantcast
Channel: SCN : Popular Discussions - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 1246

Duplicate records are coming while executing the querry in CDS in HANA studio

$
0
0


Hi Experts,

 

I have created below class in HANA studio and using AMDP concept here as shown 

 

Class_1.PNG

I am calling this class from a program as shown below:-

Program_1.PNG

 

I am getting below output

Output_1.PNG

 

Although my table containing 3 entries for the given bill doc. no. The records are repeating here.  Please let me know what went wrong here. I have checked in debug, method is executing once only so 3 records should come but in single execution I am getting 12 records. When I modified my class method as below I am getting exactly 3 records as expected.

 

 

Method_implement.PNG

 

 

 

 

 

Output_2.PNG

I have attached the code in the attachment


Viewing all articles
Browse latest Browse all 1246

Trending Articles