<?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: GUI_UPLOAD is NOT behaving Correctly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-is-not-behaving-correctly/m-p/7775465#M1584899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats is filename = l_file .Where is the declaration for that.Pass the body also. If you feel there is any issue with that fm use calss DATA:&lt;/P&gt;&lt;P&gt;    lf_file       TYPE string,&lt;/P&gt;&lt;P&gt;    lf_filelength TYPE i,&lt;/P&gt;&lt;P&gt;    lt_datatab    TYPE STANDARD TABLE OF ty_xline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lf_file = file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lf_file&lt;/P&gt;&lt;P&gt;      filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filelength              = lf_filelength&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      data_tab                = lt_datatab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS                  = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;                 DISPLAY LIKE 'E'&lt;/P&gt;&lt;P&gt;                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;      EXIT.           " =================== EXIT =====================&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Apr 2011 04:04:14 GMT</pubDate>
    <dc:creator>madhu_vadlamani</dc:creator>
    <dc:date>2011-04-16T04:04:14Z</dc:date>
    <item>
      <title>GUI_UPLOAD is NOT behaving Correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-is-not-behaving-correctly/m-p/7775463#M1584897</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;                 GUI_UPLOAD is NOTbehaving correctly.&lt;/P&gt;&lt;P&gt;Please help me if you have any idea.&lt;/P&gt;&lt;P&gt;Using GUI_UPLOAD, second record &lt;STRONG&gt;1114&lt;/STRONG&gt;  is not populating to internal table.&lt;/P&gt;&lt;P&gt;Really it is &lt;STRONG&gt;STRANGE..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Code&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Using internal table : &lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_filedata,&lt;/P&gt;&lt;P&gt;        anln1    TYPE anla-anln1,  "Asset No&lt;/P&gt;&lt;P&gt;        ch_typ   TYPE char1,       "Change type&lt;/P&gt;&lt;P&gt;        statecd  TYPE sta_rsyid,&lt;/P&gt;&lt;P&gt;        pstlz    TYPE pstlz,&lt;/P&gt;&lt;P&gt;        e_date(8)   TYPE c,       "Effective Date&lt;/P&gt;&lt;P&gt;        amount   TYPE nafap,       "Sale Amount&lt;/P&gt;&lt;P&gt;        currency TYPE waers,       "Currency&lt;/P&gt;&lt;P&gt;        sernr    TYPE am_sernr,&lt;/P&gt;&lt;P&gt;        END OF ty_filedata.&lt;/P&gt;&lt;P&gt;data : i_filedata type standard table of ty_filedata.&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                      = l_file&lt;/P&gt;&lt;P&gt;   filetype                      = 'ASC'&lt;/P&gt;&lt;P&gt;   has_field_separator           = 'X'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                      = i_filedata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File data :Tab delimited data text file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My file is having below data.&lt;/P&gt;&lt;P&gt;2800008	2	GA	30097	20110423	100.00	USD	1112&lt;/P&gt;&lt;P&gt;2800008	3	sp	sp	sp	 sp                sp                 1114&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me if you have any idea.&lt;/P&gt;&lt;P&gt;When you are checking , Please observe that 2nd record last value: 1114 shoud be below 1112(1st Record) . &lt;STRONG&gt;'sp'&lt;/STRONG&gt; means space.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji.T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: balajit on Apr 16, 2011 2:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Apr 2011 00:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-is-not-behaving-correctly/m-p/7775463#M1584897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-16T00:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD is NOT behaving Correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-is-not-behaving-correctly/m-p/7775464#M1584898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Check your file weather after each record tab space is existed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After For each record press tab button and try to upload again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Apr 2011 03:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-is-not-behaving-correctly/m-p/7775464#M1584898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-16T03:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD is NOT behaving Correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-is-not-behaving-correctly/m-p/7775465#M1584899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats is filename = l_file .Where is the declaration for that.Pass the body also. If you feel there is any issue with that fm use calss DATA:&lt;/P&gt;&lt;P&gt;    lf_file       TYPE string,&lt;/P&gt;&lt;P&gt;    lf_filelength TYPE i,&lt;/P&gt;&lt;P&gt;    lt_datatab    TYPE STANDARD TABLE OF ty_xline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lf_file = file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lf_file&lt;/P&gt;&lt;P&gt;      filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filelength              = lf_filelength&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      data_tab                = lt_datatab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS                  = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;                 DISPLAY LIKE 'E'&lt;/P&gt;&lt;P&gt;                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;      EXIT.           " =================== EXIT =====================&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Apr 2011 04:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-is-not-behaving-correctly/m-p/7775465#M1584899</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-04-16T04:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD is NOT behaving Correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-is-not-behaving-correctly/m-p/7775466#M1584900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First enter all your input values in Excel and save it as tab delimted txt file. then u upload that txt file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Apr 2011 09:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-is-not-behaving-correctly/m-p/7775466#M1584900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-16T09:53:27Z</dc:date>
    </item>
  </channel>
</rss>

