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

CONTROL_FLUSH_ERROR when using 'GUI_DOWNLOAD' Function Module in foreground

0 Likes
3,925

Hi,

I am using function module 'GUI_DOWNLOAD' in foreground mode with APPEND = 'X' ( I need to add infomration to file ).

In most of the cases it works good but in some cases ( which I cannot isolate ) - I am getting CONTROL_FLUSH_ERROR exception. Do you have any ideas where can be the problem?

Thanks in advance,

Anna

8 REPLIES 8
Read only

Former Member
0 Likes
2,321

I would suspect GUI version or installation. A quick reinstall of current version might be beneficial...and would take very little time to eliminate this as a potential cause....

Read only

0 Likes
2,321

Yes, we also thought that the SAP GUI is the reason so we reinstalled it but the problem was still not solved

Read only

0 Likes
2,321

You will get "CONTROL_FLUSH_ERROR " error when there is some problem with SAP GUI. Check your Gui installation and if possible uninstall the exixting GUI and reinstall the new GUI from fresh.

or you can use the below code

CALL METHOD cl_gui_frontend_services=>gui_download

                      EXPORTING          bin_filesize = l_xml_size     

                                         filename     = 'c:tempflights.xml'

                                         filetype     = 'BIN'                      

                       CHANGING          data_tab     = l_xml_table                      

                       EXCEPTIONS        OTHERS       = 24.      

          IF sy-subrc <> 0.        

            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.      

          ENDIF.  

Read only

0 Likes
2,321

Regarding the GUI problem-  I've seen similar proposals in other forums but with mixed results.  One confusing point is that the transaction works for some production orders but for other production orders, the transaction fails with the control_flush_error.  Will recommend the user to re install the GUI and see if that works.

Read only

Subhankar
Active Contributor
0 Likes
2,321

Hello,

This is because of 'Error in Control Framework'. Do you downloading in xls format??? You can search the sap note using this key word. sap note 754232 may help you.

Thanks

Subhankar

Read only

0 Likes
2,321

Thanks for your answer but we are not trying to download xls file but plain txt.

Read only

Former Member
0 Likes
2,321

Mati - did you find a solution?

Experiencing an issue of similar nature.  The transaction will actually work for me but not for some colleagues.  Will let you know when I find the answer.

Read only

Former Member
0 Likes
2,321

Just to close the loop on my issue - which is now resolved.  Our program was using the GUI_DOWNLOAD to a windows shared network directory.  It worked for some servers but not for others.  The issue was not SAP GUI - it was the actual server permissions on the server directory.  Case closed.