<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding 2 Files in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957226#M393876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the exception is raised because of APPEND .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many records are there in your file each time you you run the program, I guess as the number of records are increased hugely it is giving that error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2007 08:37:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-13T08:37:43Z</dc:date>
    <item>
      <title>Adding 2 Files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957221#M393871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hie guys i have this scenario.I am downloading a file to a local server,but now i want a scenario whereby each time i run the program,the file should add to the existing file(append).For history sake ,at the end of the week i need a composite file which constitute all the daily runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help with sample code. I am using the GUI_Download function .Add fro internal tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 07:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957221#M393871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T07:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 2 Files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957222#M393872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in GUI_DOWNLOAD   FM  there is an option  APPEND , give that value as X&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 07:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957222#M393872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 2 Files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957223#M393873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am getting Exception condition "CONTROL_FLUSH_ERROR" raised.                                                                                &lt;/P&gt;&lt;P&gt;Error analysis                                                                                &lt;/P&gt;&lt;P&gt;A RAISE statement in the program "SAPLSFES " raised the exception&lt;/P&gt;&lt;P&gt;condition "CONTROL_FLUSH_ERROR".                                 &lt;/P&gt;&lt;P&gt;Since the exception was not intercepted by a superior program    &lt;/P&gt;&lt;P&gt;in the hierarchy, processing was terminated.                                                                                &lt;/P&gt;&lt;P&gt;Short description of exception condition:                                                                                &lt;/P&gt;&lt;P&gt;For detailed documentation of the exception condition, use       &lt;/P&gt;&lt;P&gt;Transaction SE37 (Function Library). You can take the called     &lt;/P&gt;&lt;P&gt;function module from the display of active calls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 08:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957223#M393873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T08:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 2 Files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957224#M393874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting :Exception condition "CONTROL_FLUSH_ERROR" raised. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        FILENAME                      =  'C:\SAP\SD_INTERFACE.TXT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILETYPE                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  APPEND                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WRITE_FIELD_SEPARATOR         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        = '00'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TRUNC_TRAILING_BLANKS         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WRITE_LF                      = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COL_SELECT                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COL_SELECT_MASK               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        DATA_TAB                      =  IT_FILE.&lt;/P&gt;&lt;P&gt;   .&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 08:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957224#M393874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T08:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 2 Files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957225#M393875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should use the EXCEPTIONS of GUI_DOWNLOAD to avoid the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway we can't know why that exception is raised, u haveing some problems on your frontend control, so perhaps some gui problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'GUI_DOWNLOAD'
     EXPORTING
          FILENAME                = 'C:SAPSD_INTERFACE.TXT'
     TABLES
          DATA_TAB                = IT_FILE
     EXCEPTIONS
          FILE_WRITE_ERROR        = 1
          NO_BATCH                = 2
          GUI_REFUSE_FILETRANSFER = 3
          INVALID_TYPE            = 4
          NO_AUTHORITY            = 5
          UNKNOWN_ERROR           = 6
          HEADER_NOT_ALLOWED      = 7
          SEPARATOR_NOT_ALLOWED   = 8
          FILESIZE_NOT_ALLOWED    = 9
          HEADER_TOO_LONG         = 10
          DP_ERROR_CREATE         = 11
          DP_ERROR_SEND           = 12
          DP_ERROR_WRITE          = 13
          UNKNOWN_DP_ERROR        = 14
          ACCESS_DENIED           = 15
          DP_OUT_OF_MEMORY        = 16
          DISK_FULL               = 17
          DP_TIMEOUT              = 18
          FILE_NOT_FOUND          = 19
          DATAPROVIDER_EXCEPTION  = 20
          CONTROL_FLUSH_ERROR     = 21 "&amp;lt;-------------
          OTHERS                  = 22.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 08:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957225#M393875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T08:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 2 Files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957226#M393876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the exception is raised because of APPEND .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many records are there in your file each time you you run the program, I guess as the number of records are increased hugely it is giving that error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 08:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957226#M393876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T08:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding 2 Files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957227#M393877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Kindly follow the steps&lt;/P&gt;&lt;P&gt;1. Using GUI_UPLOAD, you first upload the downloaded file.&lt;/P&gt;&lt;P&gt;2.Then append your data to the same internal table to which you have just uploaded the file.&lt;/P&gt;&lt;P&gt;3. Then use GUI_DOWNLOAD with the same file name so that it will replace the existing one.&lt;/P&gt;&lt;P&gt;Validation: Make sure there is data into the internal table while downloading.Otherwise file will be gone..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If ur prob solves,Kindly appreciate with points&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rushikesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 08:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-2-files/m-p/1957227#M393877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T08:38:54Z</dc:date>
    </item>
  </channel>
</rss>

