-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add ALV table for BAL message details #57
base: master
Are you sure you want to change the base?
Conversation
Adds the possibility to show a ALV table for message details of a BAL message
Hi Chris, thanks for the PR! I'll review it this weekend. |
Hi @chriss158, some thoughts:
|
Thanks for the review @fabianlupa
Yes, sadly. Because i need to import the exported table data. See here:
I need to define a data type before i can get the data itself. The IMPORT/EXPORT is hard to use when you work with ABAP generics.
Yeah that's also something i don't like about the callback feature of BAL. I need to use the function module, because the BAL callback feature only supports form callbacks and function module callbacks. Maybe we can use the function module as an interface to a OO object. But i need to think about that one.
I made it public because i need to create the table type in the callback function module and also in the class object itself. Maybe we can create some kind of utility class for such globally used methods. It would be much easier if i could get the current class object reference into the function module. But right now i have no idea how i could achieve that. |
I see what you mean. I had a go at a POC but you'd have to serialize the type descriptors and import them first from memory, do the CREATE DATA and then import the actual data. I don't think that's worth pursuing.
Some refactoring could be done but I would suggest doing so after the initial PR. The feature is quite niche and I doubt this library sees much use nowadays anyway. What I do not want to lose is 7.40 compatibility though. I'll mark some lines where adjustment is required. Sorry for the delays. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it's just this one line I think.
CLEAR mr_table. | ||
CLEAR mv_table_struc_type_name. | ||
mv_add_table_to_next_message = abap_false. | ||
RAISE EXCEPTION NEW zcx_alog_logging_failed( ix_previous = lx_bal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7.40 requires RAISE EXCEPTION TYPE
This PR adds the possibility to show a ALV table for message details of a BAL message.