2010 Aug 25 5:16 PM
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
2010 Aug 25 6:11 PM
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....
2010 Aug 26 7:36 AM
Yes, we also thought that the SAP GUI is the reason so we reinstalled it but the problem was still not solved
2012 Nov 07 7:54 PM
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.
2012 Nov 08 4:31 PM
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.
2010 Aug 25 7:47 PM
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
2010 Aug 26 7:40 AM
Thanks for your answer but we are not trying to download xls file but plain txt.
2012 Nov 07 7:44 PM
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.
2012 Nov 09 6:24 PM
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.