Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITAB Aggregation #194

Open
mickrig opened this issue Sep 21, 2022 · 3 comments
Open

ITAB Aggregation #194

mickrig opened this issue Sep 21, 2022 · 3 comments
Assignees

Comments

@mickrig
Copy link

mickrig commented Sep 21, 2022

I have the issue with ITAB Aggregation. I provided a solution, but I get a lot of unknown type errors.
2022-09-21 14_57_37-Exercism ITAB Aggregation

Please scroll the image all the way to the right to see the errors.

Locally on my environment the code works well.

METHOD perform_aggregation.

     aggregated_data = REDUCE aggregated_data(
                         INIT aggregated = VALUE aggregated_data(  )
                              data = VALUE aggregated_data_type(  )
                         FOR GROUPS <group_key> OF <wa> IN initial_numbers
                           GROUP BY <wa>-group ASCENDING
                         NEXT data = VALUE #(
                                group = <group_key>
                                count = REDUCE i( INIT count = 0
                                        FOR m IN GROUP <group_key>
                                        NEXT count += 1 )
                                sum = REDUCE i( INIT sum = 0
                                        FOR m IN GROUP <group_key>
                                        NEXT sum += m-number )
                                max = REDUCE i( INIT max = 0
                                        FOR m IN GROUP <group_key>
                                        NEXT max = nmax( val1 = max
                                                         val2 = m-number ) )
                                min = REDUCE i( INIT min = 1000000000
                                        FOR m IN GROUP <group_key>
                                        NEXT min = nmin( val1 = min
                                                         val2 = m-number ) )
                                average = data-sum / data-count )
                              aggregated = VALUE #( BASE aggregated ( data ) ) ).

  ENDMETHOD. 

Thanks for your support.

@larshp larshp self-assigned this Sep 21, 2022
@larshp
Copy link
Member

larshp commented Sep 22, 2022

wip, abaplint/abaplint#2696

#140

@vivekprabhu1
Copy link

I am facing the same issue - Variable Unknown.. Works in Eclipse.

@larshp larshp mentioned this issue Sep 24, 2022
@larshp
Copy link
Member

larshp commented Sep 25, 2022

current problem: identical variable names to be handled somehow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants