Application Development and Automation 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: 
Read only

Pass Generic table to AMDP method

0 Likes
1,405

Hello,

Is there any way we can pass a Generic Table (TYPE ANY TABLE ) to a AMDP method ?

My requirement is to pass a table ( type any ) and a column name in the table to a method that should export

total count and SUM (column) back.

If not with AMDP, can we achieve this with normal class method ?

Hello,

Is there any way we can pass a Generic Table (TYPE ANY TABLE ) to a AMDP method ?

My requirement is to pass a table ( type any ) and a column name in the table to a method that should export

total count and SUM (column) back.

If not with AMDP, can we achieve this with normal class method ?

2 REPLIES 2
Read only

matt
Active Contributor
0 Likes
1,118

AMDP methods must be fully typed.

Of course you can use OpenSQL with a normal class method. That is a FAQ - try a little searching.

Read only

gasparerdelyi
Product and Topic Expert
Product and Topic Expert
0 Likes
1,118

Do I understand you well that you need to count lines in an internal table and calculate the sum of a numeric field in an internal table?

I do not understand the idea of querying the database then when all data are in the internal table in ABAP?