2020 Jun 15 12:01 AM
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 ?
2020 Jun 15 10:10 AM
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.
2020 Jun 17 10:48 PM
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?
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |