2020 Dec 12 6:10 PM
Hello expert,
is it possible to avoid leaving an alv while tcontaining errors?
i have a dynpro with different tab. the first tab has an editable alv.
i check the value with handle_data_changed and display_protocol and it's ok, but i wish i could avoid to change tab until the display protocol is empty and alv does not contain error.
I call <grid>->check_changed_data in my subscreen PAI , but i'm unable to display the protocol or avoid changing tab.
Is there a way to do achieve this please?
Regards.
Hello expert,
is it possible to avoid leaving an alv while tcontaining errors?
i have a dynpro with different tab. the first tab has an editable alv.
i check the value with handle_data_changed and display_protocol and it's ok, but i wish i could avoid to change tab until the display protocol is empty and alv does not contain error.
I call <grid>->check_changed_data in my subscreen PAI , but i'm unable to display the protocol or avoid changing tab.
Is there a way to do achieve this please?
Regards.
2020 Dec 13 6:55 AM
So, you have a screen with a tab strip, and one of the tabs contain an ALV. It's not the responsibility of the ALV to prevent going into another tab, but the responsibility is distributed at these 2 levels:
For the question "display_protocol it's ok ... i'm unable to display the protocol", it's difficult to understand why you can display it in one case and why you cannot display it in another case.
2020 Dec 13 12:50 PM
hi Sandra, thank you for your reply.
the two points you are mentioning are exactly why i'm trying to accomplish.
i thought falsely that by putting a display protocol in the PAI I would have prevent from leaving the subscreen to enter the PBO of the successive tab (in debug i can see that method display protocol is triggered but no popup appears ).
How can i transmit the errors to external requester? thank you for your help and advice.
2020 Dec 13 4:24 PM
As usually with dynpro/module pool programming: via global variables. Of course, the better way is to organize your program via classes and interfaces, and "transmit the errors to external requester" will then make more sense.
2020 Dec 13 4:55 PM
thanx for your suggestion, i'm actually using class i will see how to manage it.
Thanx again.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |