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: 

cl_gui_cfw=>flush.

Former Member
0 Kudos

Hi,

May I know, What is the functionality of the following 2 sentenses,

1-cl_gui_cfw=>flush

2-cl_gui_cfw=>false?

ThanQ.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

CL_GUI_CFW=>FLUSH is for explicitly sending Buffered Automation Queue to Frontend.

Also, there is no method with name false in CL_GUI_CFW.

check out the link

http://help.sap.com/search/highlightContent.jsp

Hope this helps.

Regards,

Richa

4 REPLIES 4

Former Member
0 Kudos

hi,

CL_GUI_CFW=>FLUSH is for explicitly sending Buffered Automation Queue to Frontend.

Also, there is no method with name false in CL_GUI_CFW.

check out the link

http://help.sap.com/search/highlightContent.jsp

Hope this helps.

Regards,

Richa

ferry_lianto
Active Contributor
0 Kudos

Hi,

In OO approach, calling a Control-method does not imply that the method is automatically executed at runtime. Initially, the system buffers methods in a queue, referred to as the Automation Queue, when they are called in the ABAP program. The execution sequence of the methods therefore remains unchanged. However, the methods are only executed if they are transferred to the frontend via Remote Function Call (RFC) using method FLUSH. This means that the Automation Queue is used to reduce the number of RFC calls required.

(Due to the buffering of control methods in the Automation Queue, the method calls and the remaining ABAP code are executed at different times. Method FLUSH thus determines a synchronization point).

While communicating between the Automation Controller and the ABAP Objects Control Framework the automation queue uses GUI RFC calls. To minimize the network load between the backend and frontend, calls from the backend to the frontend are buffered and sent to the frontend in a single batch at defined synchronization points. A synchronization point occurs when you use a method call that is not buffered or explicitly call the generic synchronization method ( CALL METHOD cl_gui_cfw=>flush ).

cl_gui_cfw=>false is method which used to hide the border around the Splitter Container.

CALL METHOD go_splitter_container->set_border

EXPORTING

border = cl_gui_cfw=>false.

For more information, please check this link.

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIDOCK/BCCIDOCK.pdf

Regards,

Ferry Lianto

0 Kudos

ThanX to all.

Former Member
0 Kudos

hi Srinivas,

<u>1-cl_gui_cfw=>flush</u>

The statement invokes FLUSH method of class cl_gui_cfw ( '=>' indicates that it is a static method)

Please find below, the documentation on FLUSH method:

In OO approach, calling a Control-method does not imply that the method is automatically executed at runtime. Initially, the system buffers methods in a queue, referred to as the Automation Queue, when they are called in the ABAP program. The execution sequence of the methods therefore remains unchanged. However, the methods are only executed if they are transferred to the frontend via Remote Function Call (RFC) using method FLUSH. This means that the Automation Queue is used to reduce the number of RFC calls required.

(Due to the buffering of control methods in the Automation Queue, the method calls and the remaining ABAP code are executed at different times. Method FLUSH thus determines a synchronization point).

While communicating between the Automation Controller and the ABAP Objects Control Framework the automation queue uses GUI RFC calls. To minimize the network load between the backend and frontend, calls from the backend to the frontend are buffered and sent to the frontend in a single batch at defined synchronization points. A synchronization point occurs when you use a method call that is not buffered or explicitly call the generic synchronization method ( CALL METHOD cl_gui_cfw=>flush )

Hope this helps,

Sajan Joseph.