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

No automatic separation of totals on key field (e.g. currency, UoM) when using bind_alv #1111

Open
mahlzeit1948 opened this issue May 16, 2023 · 2 comments

Comments

@mahlzeit1948
Copy link

Hello, we would like to use the bind_alv method to create Excel files. It works well but we noticed that the automatic separation based on key fields is not working.

Example:
currency amount
USD 1000
USD 4000
CAD 2000

in ALV the system will automatically split the totals line into two (one for USD and one for CAD). With bind_alv the generated file will just contain a SUM formula on the whole amount column and display 7000.

@sandraros
Copy link
Collaborator

Thank you for raising the issue. I think I understand what you say, but just to be sure, could you add a screenshot for totals in the ALV and in the generated Excel file please? Thank you.
Also, do you think of a formula in Excel which can do the sum for each currency code? (to keep the idea of a formula so that to keep the same kind of logic as currently, but of course if no formula is possible, maybe we'll need to switch to hardcoded sum values)

@mahlzeit1948
Copy link
Author

excel
alv

The expected result could be achieved by using SUMIFS Excel formula, but ABAP2XLSX would have to analyze the different combinations of key fields of all aggregated columns and then add a line per combination and construct the formula accordingly.

Here is an example of two key columns and their permutations:
combinations

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

2 participants