Application Development 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: 

Refresh alv from another program

Former Member
0 Kudos
125

Hi experts

this is the scenary

I have a modulpool with buttons that send requests to XI, this modul pool shows an ALV with the responses at the requests sent to XI but i can't refresh the ALV automatically when XI get a new response, i have to press a button to raise tha PAI and then get the new responses and refresh the ALV

I try to use the cl_gui_cfw=>set_new_ok_code in the XI class when a new response arrives but it doesn't launch the PAI in my modul pool

I create an instance of a class in the modul pool and another instance of the same class in the XI class, then in XI raise an event of this class and in my modul pool i have a local class to catch the event (i defined the handle method for the event and put the set handler for all instances) but no result

Is there any way to refresh an alv shown in program 1 from another program 2 without intervention of the user pressing a button in program 1?¿

Thanks and regards

3 REPLIES 3

Former Member
0 Kudos
87

Hi,

Maybe you could use a field symbol. Assign it to the the alv of program 1, and call the method REFRESH_TABLE_DISPLAY.

Regards,

0 Kudos
87

It's not very orthodox but i'm going to try it

The problem could be that there would be more than 1 users using it and i don't know what is the behaviour of the field-symbols with this...

Thanks

0 Kudos
87

That could be a problem, but i think it will refresh only in the session of your running program, not for everyone that's running it.

Regards