Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV display_protocol

crepmaster
Participant
0 Likes
1,742

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.

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
1,563

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:

  • the main program must prevent going into another tab whether the current tab still contains errors
  • each tab must transmit the errors to external requester (or at least the information "is it error free or not")

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.

Read only

crepmaster
Participant
0 Likes
1,563

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.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,563

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.

Read only

crepmaster
Participant
0 Likes
1,563

thanx for your suggestion, i'm actually using class i will see how to manage it.

Thanx again.