Application Development 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: 

how to call amdp in another amdp

prashant_kumar30
Participant
0 Kudos

Hi all,

i have attached the code sample,please tell me how to handle this in AMDP .

Basically i have two performs .in one perform we are fetching some data and based on that data again we fetch another data in another perform.how to handle this in AMDP.

ALSO  if i have two internal table in ABAP report and i need to loop one internal table and read second internal table based on some condition how to handle this in AMDP?

please tell me step by step or provide me screenshots,because i am not very much comfortable to use AMDP

3 REPLIES 3

pfefferf
Active Contributor
0 Kudos

Hello Prashant,

there is already a blog which describes all necessary steps how you call an AMDP method from another AMDP method.

Regarding your requirement to determine data within a loop over an internal table you should check if it is not better from a performance point of view to avoid such a nested construct.

Regards,

Florian

0 Kudos

Hi Florian,

can you suggest by seeing my code how i can write this code in AMDP because i need to do code optimization of abap programs in hana.

i

0 Kudos

Hi Prashant,

While migrating  ABAP code to HANA DB via AMDP you should have to understand behavior of open SQL/ABAP logic and later based on that we can able to convert it in native SQL.

Put left outer join on your base query.

For all entries is same as left outer join.

-Amol S