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

What is the functionality CALL METHOD CL_GUI_CFW=>FLUSH

Former Member
0 Likes
12,518

Hi,

What is the functionality of method "FLUSH" in class CL_GUI_CFW

Should it be used after every call method CL_GUI_FRONTEND_SERVICES=>......

What is the purpose of using it? What happens if we don't use it?

4 REPLIES 4
Read only

Former Member
0 Likes
3,886

Hi,

see this thread.

reward if helpful.

rgds,

bharat.

Read only

Peter_Inotai
Active Contributor
0 Likes
3,886

<deleted>

Message was edited by:

Peter Inotai

Read only

Former Member
0 Likes
3,886

hi

good

The class CL_GUI_CFW contains static methods that apply to all instantiated custom controls when you call them.

You can force a synchronization point in your program by calling a method that is not buffered, or by calling the static method FLUSH.

CLASS event_handler IMPLEMENTATION.

METHOD handle_f1.

DATA row TYPE i.

MESSAGE i888(sabapdocu) WITH text-003.

CALL METHOD sender->get_selection_pos

IMPORTING from_line = row.

CALL METHOD sender->get_line_text

EXPORTING line_number = row

IMPORTING text = field.

CALL METHOD cl_gui_cfw=>set_new_ok_code

EXPORTING new_code = 'F1'.

CALL METHOD cl_gui_cfw=>flush.

ENDMETHOD.

thanks

mrutyun^

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
3,886

You might find this very interesting.

http://sap.ittoolbox.com/documents/popular-q-and-a/the-flush-command-2537

Regards,

Rich Heilman