Hi Experts,
I have created below class in HANA studio and using AMDP concept here as shown
I am calling this class from a program as shown below:-
I am getting below output
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.
I have attached the code in the attachment