06-04-2007 3:02 PM
Hello,
I'm using OO ALV (using cl_gui_alv_grid class), with checkboxes and user interaction, and it all seems to work OK. But i'm not calling class method cl_gui_cfw=>flush in any point at my program, because I don't clearly understand what's the method's use and need.
Could you please explain this to me? I've already read some SAP help about control framework, automation queue and all but still don't get it (so please try to explain instead of simply pasting SAP help links).
Many thanks
06-04-2007 3:11 PM
Commit would automatically flush the information from queue to presentation server.
CFW is based on proxy classes. All the calls from Application server are pushed to presentation server when flush method is called. till then they will be stored in queue
06-04-2007 3:11 PM
Commit would automatically flush the information from queue to presentation server.
CFW is based on proxy classes. All the calls from Application server are pushed to presentation server when flush method is called. till then they will be stored in queue
06-04-2007 3:12 PM
06-04-2007 3:30 PM
CFW is based on proxy classes. <- What is a proxy class? What does this imply?
I've read that in PBO flush gets automatically triggered, my main question is in which cases do I have to take care of syncronization myself and why.
Thanks
06-04-2007 3:46 PM
To reduce the network bandwidth and save time there is a concept of proxy classes. For every control in presentation server there will be corresponding proxy class in application server. So when ever methods are called (set_table_display),
method of the proxy class in application server gets called.But this have to be moved to presentaion server that is when we use flush.
all the calls in application server would be queued in automation queue and flush pushes them presentation server. But if you want this to happen before the end of the PBO event you can explicitly call flush
06-04-2007 4:08 PM
Ok, from your last post i deduce that for every control class (i.e. cl_gui_alv_grid), there's a proxy class in the application server. All that is transparent to the programmer.
But could you give some example of when the necessity arises to use the flush method explicitly?
My ALV code in this case isn't much complicated, i just call the check_changed_data method to detect changes in checkboxes and then call refresh_table_display. But would like to understand this fully so I can be prepared for any case.
EDIT: I guess the need depends on the context of the program being developed. But I understood the concept so I'm closing the thread.
Edited by: Alejandro Bindi on Aug 7, 2008 11:28 PM