Try it like this:
first_itab = SELECT .. FROM VBRK JOIN VBRP ... ;
second_itab = SELECT DISTINCT ... FROM :first_itab;
third_itab = SELECT ... FROM OTHERTABLE JOIN :second_itab;
Why do you want to write that logic in AMDP ?
Best Regards, Thomas
Try it like this:
first_itab = SELECT .. FROM VBRK JOIN VBRP ... ;
second_itab = SELECT DISTINCT ... FROM :first_itab;
third_itab = SELECT ... FROM OTHERTABLE JOIN :second_itab;
Why do you want to write that logic in AMDP ?
Best Regards, Thomas