<?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 Upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008948#M409815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a ZUPLOAD program to uplaod data from a file...&lt;/P&gt;&lt;P&gt;Please try to answer few of my queries:&lt;/P&gt;&lt;P&gt;1. Can i use GUI_UPLOAD or WS_UPLOAD for uploading anykind of file.&lt;/P&gt;&lt;P&gt;2. I have defined lv_file TYPE rlgrap-filename, which is a passing parameter to FILENAME in GUI_UPLAOD/WS_UPLOAD. But i see that lv_file is accepted in WS_UPLOAD and not in GUI_UPLOAD. Is it true?&lt;/P&gt;&lt;P&gt;3. I have a notepad file with the data in it separated by manual tabs. So, is manually tabbed file different from tab delimited notepad file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Vishwa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2007 05:50:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-16T05:50:06Z</dc:date>
    <item>
      <title>Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008948#M409815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a ZUPLOAD program to uplaod data from a file...&lt;/P&gt;&lt;P&gt;Please try to answer few of my queries:&lt;/P&gt;&lt;P&gt;1. Can i use GUI_UPLOAD or WS_UPLOAD for uploading anykind of file.&lt;/P&gt;&lt;P&gt;2. I have defined lv_file TYPE rlgrap-filename, which is a passing parameter to FILENAME in GUI_UPLAOD/WS_UPLOAD. But i see that lv_file is accepted in WS_UPLOAD and not in GUI_UPLOAD. Is it true?&lt;/P&gt;&lt;P&gt;3. I have a notepad file with the data in it separated by manual tabs. So, is manually tabbed file different from tab delimited notepad file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Vishwa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 05:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008948#M409815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T05:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008949#M409816</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;As GUI_UPLOAD is latest FM for newer versions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So go for it to avoid the warnings and errors during upgradation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)In gui-upload it takes the file name as type string, not as rlgrap-filename in ws_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;30Both manual tabbed and tab delimited files are same..&lt;/P&gt;&lt;P&gt;but there will be abit confusion ni the tabbed file which is manually done ...&lt;/P&gt;&lt;P&gt;Tab delimited file takes the total size of the field and then it gives a tab where as u are doing it manually, if u give the tabs after taking ful field length into consideration.. it is fine..if not it will lead to errors in uplaoding..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark all the helpful answers...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 05:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008949#M409816</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2007-03-16T05:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008950#M409817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;u can use any method for uploading data.gui_upload is the enhanced one&lt;/P&gt;&lt;P&gt;--&amp;gt;u should give the type of lv_file same as it is in the function modules import parameters.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;yea its the same whether u give tab explicitly or save it as tab delimited file.&lt;/P&gt;&lt;P&gt;but be sure u give extactly one tab space..other wise data fetched will be a mess&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 05:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008950#M409817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T05:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008951#M409818</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;1. Can i use GUI_UPLOAD or WS_UPLOAD for uploading anykind of file.&lt;/P&gt;&lt;P&gt;yes, you can use anyone. GUI_UPLOAD is the latest one and WS_UPLOAD is the old one and Obsolete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I have defined lv_file TYPE rlgrap-filename, which is a passing parameter to FILENAME in GUI_UPLAOD/WS_UPLOAD. But i see that lv_file is accepted in WS_UPLOAD and not in GUI_UPLOAD. Is it true?&lt;/P&gt;&lt;P&gt;it will take for both fun modules.lv_file will be accepted in GUI_UPLOAD also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I have a notepad file with the data in it separated by manual tabs. So, is manually tabbed file different from tab delimited notepad file?&lt;/P&gt;&lt;P&gt;If you are 100% sure that the data is Tab delimted then OK, other wise put the same data in EXCEL and convert it to Tab delimited text file and use it to the fun module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 05:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008951#M409818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T05:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008952#M409819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)WS_UPLOAD  is outdated.&lt;/P&gt;&lt;P&gt;2)yes&lt;/P&gt;&lt;P&gt;3)both are same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 05:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008952#M409819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T05:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008953#M409820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Can i use GUI_UPLOAD or WS_UPLOAD for uploading anykind of file.&lt;/P&gt;&lt;P&gt;     use  GUI_UPLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I have defined lv_file TYPE rlgrap-filename, which is a passing parameter to FILENAME in GUI_UPLAOD/WS_UPLOAD. But i see that lv_file is accepted in WS_UPLOAD and not in GUI_UPLOAD. Is it true?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    use lv_file  of type STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. 3. I have a notepad file with the data in it separated by manual tabs. So, is manually tabbed file different from tab delimited notepad file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    i guess both are same but in manuall added tabs u may forget sometime , it will show as # sometimes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 05:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008953#M409820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T05:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008954#M409821</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;Use this code for GUI_UPLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS : lc_asc TYPE char10 VALUE 'ASC'. "function module filetype&lt;/P&gt;&lt;P&gt;  DATA: lv_filenm TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR lv_filenm.&lt;/P&gt;&lt;P&gt;  MOVE v_flname TO lv_filenm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Call the function to get the file into an internal table.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lv_filenm&lt;/P&gt;&lt;P&gt;      filetype                = lc_asc&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = i_flatfile&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_open_error         = 1&lt;/P&gt;&lt;P&gt;      file_read_error         = 2&lt;/P&gt;&lt;P&gt;      no_batch                = 3&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;      invalid_type            = 5&lt;/P&gt;&lt;P&gt;      no_authority            = 6&lt;/P&gt;&lt;P&gt;      unknown_error           = 7&lt;/P&gt;&lt;P&gt;      bad_data_format         = 8&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;      header_too_long         = 11&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;      access_denied           = 13&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;      disk_full               = 15&lt;/P&gt;&lt;P&gt;      dp_timeout              = 16&lt;/P&gt;&lt;P&gt;      OTHERS                  = 17.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*Display Message File not found.&lt;/P&gt;&lt;P&gt;    MESSAGE i010 WITH lv_filenm.&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FOR SPLIT FILE  c_pip means '|'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF i_flatfile[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    LOOP AT i_flatfile INTO wa_flatfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SPLIT wa_flatfile-fdata AT c_pip&lt;/P&gt;&lt;P&gt;                              INTO wa_flupload-ekorg&lt;/P&gt;&lt;P&gt;                                   wa_flupload-ktokk&lt;/P&gt;&lt;P&gt;                                   wa_flupload-anred&lt;/P&gt;&lt;P&gt;                                   wa_flupload-name1&lt;/P&gt;&lt;P&gt;                                   wa_flupload-sortl&lt;/P&gt;&lt;P&gt;                                   wa_flupload-stras&lt;/P&gt;&lt;P&gt;                                   wa_flupload-ort01&lt;/P&gt;&lt;P&gt;                                   wa_flupload-regio&lt;/P&gt;&lt;P&gt;                                   wa_flupload-pstlz&lt;/P&gt;&lt;P&gt;                                   wa_flupload-land1&lt;/P&gt;&lt;P&gt;                                   wa_flupload-spras&lt;/P&gt;&lt;P&gt;                                   wa_flupload-telf1&lt;/P&gt;&lt;P&gt;                                   wa_flupload-telfx&lt;/P&gt;&lt;P&gt;                                   wa_flupload-telf2&lt;/P&gt;&lt;P&gt;                                   wa_flupload-lfurl&lt;/P&gt;&lt;P&gt;                                   wa_flupload-remark&lt;/P&gt;&lt;P&gt;                                   wa_flupload-parvw&lt;/P&gt;&lt;P&gt;                                   wa_flupload-lifn2&lt;/P&gt;&lt;P&gt;                                   wa_flupload-defpa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND wa_flupload TO i_flupload.&lt;/P&gt;&lt;P&gt;      CLEAR : wa_flupload , wa_flatfile.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Please reward suitable points&lt;/STRONG&gt;***&lt;/P&gt;&lt;P&gt;With Regards&lt;/P&gt;&lt;P&gt;Navin Khedikar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 06:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008954#M409821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T06:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008955#M409822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Navin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is 'l' as in c_pip?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;vishwanath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        vishwanath vedula&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 11:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008955#M409822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T11:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008956#M409823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;| means tab delimiter which is used to identify the fields. say u ahve 10 fields. so now if u want to split the file u can use | which normally is tab delimiter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 11:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008956#M409823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T11:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008957#M409824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.yes&lt;/P&gt;&lt;P&gt;2.gui_upload is used from versions 4.6c where as ws_upload is used before versions 4.6c. now a days ws_upload is obselete.&lt;/P&gt;&lt;P&gt;3.there is no difference between manually tabbed flat files and tab delimited flat files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;suresh babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 10:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload/m-p/2008957#M409824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T10:15:47Z</dc:date>
    </item>
  </channel>
</rss>

