<?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: Upload Text file using 'GUI_UPLOAD' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057004#M1612328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes nice to see suhas with 'M' tag... Congrats...Your suggestions really awesome..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2011 10:14:07 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2011-07-22T10:14:07Z</dc:date>
    <item>
      <title>Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056993#M1612317</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;I have a requirement to upload data in text file using the function module 'GUI_UPLOAD'. The format of my text file looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCODE&lt;SUP&gt;WERKS&lt;/SUP&gt;STLAN&lt;SUP&gt;POSNR&lt;/SUP&gt;MENGE&lt;SUP&gt;POSTP&lt;/SUP&gt;MATNR&lt;SUP&gt;STLNR&lt;/SUP&gt;STLAL&lt;SUP&gt;BMENG&lt;/SUP&gt;BMEIN&lt;SUP&gt;DATUV&lt;/SUP&gt;STLST&lt;SUP&gt;IDNRK&lt;/SUP&gt;MEINS&lt;/P&gt;&lt;P&gt;CS01&lt;SUP&gt;M019&lt;/SUP&gt;1&lt;SUP&gt;0010&lt;/SUP&gt;1.000&lt;SUP&gt;L&lt;/SUP&gt;TRT45001&lt;SUP&gt;00000097&lt;/SUP&gt;01&lt;SUP&gt;1.000&lt;/SUP&gt;PC&lt;SUP&gt;2001.09.04&lt;/SUP&gt;1&lt;SUP&gt;000000005989031072&lt;/SUP&gt;PC&lt;SUP&gt;TRITON X45 CS01&lt;/SUP&gt;M019&lt;SUP&gt;1&lt;/SUP&gt;0020&lt;SUP&gt;1.000&lt;/SUP&gt;L&lt;SUP&gt;TRT45001&lt;/SUP&gt;00000097&lt;SUP&gt;01&lt;/SUP&gt;1.000&lt;SUP&gt;PC&lt;/SUP&gt;2001.09.04&lt;SUP&gt;1&lt;/SUP&gt;000000005989031282&lt;SUP&gt;PC&lt;/SUP&gt;TRITON X45 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried to upload it, it seems that those values do not correspond on its specific fields in the internal table maybe because of the field length.How can I go about this? Hoping for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 06:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056993#M1612317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T06:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056994#M1612318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for which transaction your are uploading , if possible post the code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you think that it is because of field length the try to declare a temp variable with more field lenget and assign the value to it.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: temp(23)  type char.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 06:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056994#M1612318</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-07-22T06:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056995#M1612319</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;GUI_UPLOAD eaxcepts onlt tab saperated file and your file is '^' saperated, hence as a workaround you can try below code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_u_6.

TYPES: BEGIN OF ty_data,
      tcode TYPE sy-tcode,
      werks  TYPE werks,
      stlan TYPE stlan,
     posnr TYPE posnr,
     menge TYPE char16,
     postp TYPE postp,
     matnr TYPE matnr,
     stlnr TYPE num8,
     stlal TYPE stlal,
     bmeng TYPE char16,
     bmein TYPE bmein,
  datuv TYPE datuv,
  stlst TYPE stlst,
  idnrk TYPE idnrk,
  meins  TYPE meins,
      END OF ty_data.
DATA : it_data TYPE table of ty_data,
       wa_data TYPE ty_data.

TYPES: BEGIN OF ty_up,
       val TYPE char120,
       END OF ty_up.

DATA : it_up  TYPE table of ty_up,
       wa_up  TYPE ty_up.

CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    filename                      = 'C:\Encrypt\sdn.txt'
*    FILE                      = 'ASC'
*    HAS_FIELD_SEPARATOR           = ' '
*    HEADER_LENGTH                 = 0
*    READ_BY_LINE                  = 'X'
*    DAT_MODE                      = ' '
*    CODEPAGE                      = ' '
*    IGNORE_CERR                   = ABAP_TRUE
*    REPLACEMENT                   = '#'
*    CHECK_BOM                     = ' '
*    VIRUS_SCAN_PROFILE            =
*  IMPORTING
*    FILELENGTH                    =
*    HEADER                        =
  TABLES
    data_tab                      = it_up
*  EXCEPTIONS
*    FILE_OPEN_ERROR               = 1
*    FILE_READ_ERROR               = 2
*    NO_BATCH                      = 3
*    GUI_REFUSE_FILETRANSFER       = 4
*    INVALID_                  = 5
*    NO_AUTHORITY                  = 6
*    UNKNOWN_ERROR                 = 7
*    BAD_DATA_FORMAT               = 8
*    HEADER_NOT_ALLOWED            = 9
*    SEPARATOR_NOT_ALLOWED         = 10
*    HEADER_TOO_LONG               = 11
*    UNKNOWN_DP_ERROR              = 12
*    ACCESS_DENIED                 = 13
*    DP_OUT_OF_MEMORY              = 14
*    DISK_FULL                     = 15
*    DP_TIMEOUT                    = 16
*    OTHERS                        = 17
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID  SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

LOOP AT it_up INTO wa_up.

  SPLIT :wa_up AT '^'
  INTO  wa_data-tcode
        wa_data-werks
        wa_data-stlan
       wa_data-posnr
       wa_data-menge
       wa_data-postp
      wa_data-matnr
      wa_data-stlnr
       wa_data-stlal
       wa_data-bmeng
       wa_data-bmein
    wa_data-datuv
    wa_data-stlst
    wa_data-idnrk
    wa_data-meins.

APPEND wa_data to it_data.
CLEAR : wa_data,
        wa_up.
   endloop.

   LOOP AT it_data INTO wa_data.
write / wa_data.
   ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 07:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056995#M1612319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T07:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056996#M1612320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ysera,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you are having fixed length of fields in your file (which looks the case for you), then it is simple to use any character strings first and then transfer to the respective fields using move-corresponding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=======================================================&lt;/P&gt;&lt;P&gt;data: begin of ls_data_str,           "Character type&lt;/P&gt;&lt;P&gt;           tcode type char4, &lt;/P&gt;&lt;P&gt;           delimit1 type c,&lt;/P&gt;&lt;P&gt;           werks type char4,&lt;/P&gt;&lt;P&gt;           delimit2 type c,&lt;/P&gt;&lt;P&gt;           stlan type char4,&lt;/P&gt;&lt;P&gt;              -&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;so on&lt;/P&gt;&lt;P&gt;        end of ls_data_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of ls_data,                "actual data types&lt;/P&gt;&lt;P&gt;           tcode type sy-tcode,&lt;/P&gt;&lt;P&gt;           werks type werks_d,&lt;/P&gt;&lt;P&gt;           stlan type stpo-stlan,&lt;/P&gt;&lt;P&gt;              -&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;so on&lt;/P&gt;&lt;P&gt;        end of ls_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read dataset xyz into ls_data_str.&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move-corresponding ls_data_str to ls_data.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_data is your actual data.&lt;/P&gt;&lt;P&gt;============================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If length of fields in file is not fixed (^ is not at same position for every row), then you need to use field symbols for uploading, let me know if you need help there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 07:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056996#M1612320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T07:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056997#M1612321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;GUI_UPLOAD eaxcepts onlt tab saperated file and your file is '^' saperated&lt;/EM&gt; is NOT TRUE.&lt;/P&gt;&lt;P&gt;GUI_UPLOAD can upload ^ separated text File also, just try with a small example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ysera,&lt;/P&gt;&lt;P&gt;Just use table of type ls_data_str in TABLES section of GUI_UPLOAD and then loop over it to do a move-corresponding to ls_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Diwakar Aggarwal on Jul 22, 2011 3:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 07:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056997#M1612321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T07:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056998#M1612322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;EM&gt;GUI_UPLOAD eaxcepts onlt tab saperated file and your file is '^' saperated&lt;/EM&gt; is NOT TRUE.&lt;/P&gt;&lt;P&gt;&amp;gt; GUI_UPLOAD can upload ^ separated text File also, just try with a small example.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you elaborate what you mean by this? As per the documentation these GUI* FMs only recognize horizontal tabs only!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 08:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056998#M1612322</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-07-22T08:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056999#M1612323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data  : begin  of ty_string ,&lt;/P&gt;&lt;P&gt;            string(1000)  type  c  ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 09:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8056999#M1612323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T09:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057000#M1612324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it with a small example to upload a notepad file having ^ separated data and it works fine.&lt;/P&gt;&lt;P&gt;I paste below the sample code, do let me know if I am missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=================================================================&lt;/P&gt;&lt;P&gt;TYPES: begin of lty_data_str,            "Character type&lt;/P&gt;&lt;P&gt;        tcode type char4,&lt;/P&gt;&lt;P&gt;        delimit1 type c,&lt;/P&gt;&lt;P&gt;        werks type char4,&lt;/P&gt;&lt;P&gt;        delimit2 type c,&lt;/P&gt;&lt;P&gt;        stlan type char1,&lt;/P&gt;&lt;P&gt;       end of lty_data_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: begin of lty_data,                 "real data type&lt;/P&gt;&lt;P&gt;        tcode type sy-tcode,&lt;/P&gt;&lt;P&gt;        werks type werks_d,&lt;/P&gt;&lt;P&gt;        stlan type stlan,&lt;/P&gt;&lt;P&gt;       end of lty_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lt_data_str type TABLE OF lty_data_str,&lt;/P&gt;&lt;P&gt;      lt_data     type TABLE OF lty_data,&lt;/P&gt;&lt;P&gt;      ls_data_str type lty_data_str,&lt;/P&gt;&lt;P&gt;      ls_data     type lty_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                      = 'C:\AL11\TEST.TXT'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab                      = lt_data_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_data_str into ls_data_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING ls_data_str to ls_data.&lt;/P&gt;&lt;P&gt;  APPEND ls_data to lt_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; clear: ls_data_str, ls_data.&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;My notepad file contains below data:: &lt;/P&gt;&lt;P&gt;MM01&lt;SUP&gt;1234&lt;/SUP&gt;P&lt;/P&gt;&lt;P&gt;MM02&lt;SUP&gt;2323&lt;/SUP&gt;M&lt;/P&gt;&lt;P&gt;===============================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to get data in lt_data table in relevant fields, please share if you see any problem with this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 09:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057000#M1612324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T09:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057001#M1612325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obviously if you declare a seperate field for the delimiter, it would work. But its not what is intented to be done. What you have done is just a workaround. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Suhas and the documentation meant was that, it would work without any extra fields for delimiters only for horizontal tabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 09:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057001#M1612325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T09:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057002#M1612326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a classic case of lost in translation &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course GUI_UPLOAD will upload files with '^', but not as a separator!(HAS_FIELD_SEPARATOR param).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 09:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057002#M1612326</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-07-22T09:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057003#M1612327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to see you with the 'M' tag. Congratulations &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 10:04:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057003#M1612327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T10:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057004#M1612328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes nice to see suhas with 'M' tag... Congrats...Your suggestions really awesome..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 10:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057004#M1612328</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-07-22T10:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057005#M1612329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, probably downloading lots of Files from last many days from application server having all kinds of separators triggered me to this solution &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; Rightly said, lost in translation &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; .....anyways thanks all for your comments&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 10:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057005#M1612329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T10:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Text file using 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057006#M1612330</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;check the below code. it will work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_data,&lt;/P&gt;&lt;P&gt;        tcode TYPE sy-tcode,&lt;/P&gt;&lt;P&gt;        werks TYPE werks,&lt;/P&gt;&lt;P&gt;        stlan TYPE stlan,&lt;/P&gt;&lt;P&gt;        posnr TYPE posnr,&lt;/P&gt;&lt;P&gt;        menge TYPE char16,&lt;/P&gt;&lt;P&gt;        postp TYPE postp,&lt;/P&gt;&lt;P&gt;        matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;        stlnr TYPE num8,&lt;/P&gt;&lt;P&gt;        stlal TYPE stlal,&lt;/P&gt;&lt;P&gt;        bmeng TYPE char16,&lt;/P&gt;&lt;P&gt;        bmein TYPE bmein,&lt;/P&gt;&lt;P&gt;        datuv(10) TYPE c, "datuv,&lt;/P&gt;&lt;P&gt;        stlst TYPE stlst,&lt;/P&gt;&lt;P&gt;        idnrk TYPE idnrk,&lt;/P&gt;&lt;P&gt;        meins TYPE meins,&lt;/P&gt;&lt;P&gt;        fval(10) TYPE c,&lt;/P&gt;&lt;P&gt;      END OF ty_data.&lt;/P&gt;&lt;P&gt;DATA : it_data TYPE TABLE OF ty_data,&lt;/P&gt;&lt;P&gt;       wa_data TYPE ty_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_up,&lt;/P&gt;&lt;P&gt;       val TYPE char120,&lt;/P&gt;&lt;P&gt;       END OF ty_up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_up  TYPE TABLE OF ty_up,&lt;/P&gt;&lt;P&gt;       wa_up  TYPE ty_up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                      = 'C:\Encrypt\sdn.txt'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILE                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                      = it_up[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_up INTO wa_up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SPLIT :wa_up AT '^'&lt;/P&gt;&lt;P&gt;        INTO  wa_data-tcode&lt;/P&gt;&lt;P&gt;        wa_data-werks&lt;/P&gt;&lt;P&gt;        wa_data-stlan&lt;/P&gt;&lt;P&gt;        wa_data-posnr&lt;/P&gt;&lt;P&gt;        wa_data-menge&lt;/P&gt;&lt;P&gt;        wa_data-postp&lt;/P&gt;&lt;P&gt;        wa_data-matnr&lt;/P&gt;&lt;P&gt;        wa_data-stlnr&lt;/P&gt;&lt;P&gt;        wa_data-stlal&lt;/P&gt;&lt;P&gt;        wa_data-bmeng&lt;/P&gt;&lt;P&gt;        wa_data-bmein&lt;/P&gt;&lt;P&gt;        wa_data-datuv&lt;/P&gt;&lt;P&gt;        wa_data-stlst&lt;/P&gt;&lt;P&gt;        wa_data-idnrk&lt;/P&gt;&lt;P&gt;        wa_data-meins&lt;/P&gt;&lt;P&gt;        wa_data-fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND wa_data TO it_data.&lt;/P&gt;&lt;P&gt;  CLEAR : wa_data,&lt;/P&gt;&lt;P&gt;          wa_up.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_data INTO wa_data.&lt;/P&gt;&lt;P&gt;  WRITE / wa_data.&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 11:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-text-file-using-gui-upload/m-p/8057006#M1612330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T11:06:02Z</dc:date>
    </item>
  </channel>
</rss>

