<?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: uploading data using 'GUI_UPLOAD' .... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917554#M686937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ramyav, thank u very much, u r right i got the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thank u verymuch.&lt;/P&gt;&lt;P&gt;i ve given gd rewards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2007 05:52:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-09T05:52:56Z</dc:date>
    <item>
      <title>uploading data using 'GUI_UPLOAD' ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917548#M686931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;i ve a problem i.e here am uploading a flat file but am not getting proper output, &lt;/P&gt;&lt;P&gt;could anyone see this peace of code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 1,&lt;/P&gt;&lt;P&gt;      BRANCH(1) TYPE C,&lt;/P&gt;&lt;P&gt;      XRE_TTY(18) TYPE C,&lt;/P&gt;&lt;P&gt;      ORIG_CURR(3) TYPE C,&lt;/P&gt;&lt;P&gt;      COB(3) TYPE C,&lt;/P&gt;&lt;P&gt;      TTY_TYPE(1) TYPE C,&lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;P&gt;DATA: WA_ITAB LIKE ITAB.&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:\ACCUPLOAD\input'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = '|'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&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;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = ITAB&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS          .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB .&lt;/P&gt;&lt;P&gt;WRITE:/20 ITAB-BRANCH,&lt;/P&gt;&lt;P&gt;                 ITAB-XRE_TTY,&lt;/P&gt;&lt;P&gt;                 ITAB-ORIG_CURR,&lt;/P&gt;&lt;P&gt;                 ITAB-COB,&lt;/P&gt;&lt;P&gt;                 ITAB-TTY_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my input file is (here seperator is (pipe) | ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;S|S-FFF-P-96-0193-96|AED|FFF|P&lt;/P&gt;&lt;P&gt;S|S-FNM-P-96-0194-96|USD|FNM|P&lt;/P&gt;&lt;P&gt;S|S-EEB-P-92-0365-92|PKR|EEB|P&lt;/P&gt;&lt;P&gt;S|S-EEB-P-92-0365-93|PKR|EEB|P&lt;/P&gt;&lt;P&gt;S|S-EEB-P-92-0365-94|PKR|EEB|P&lt;/P&gt;&lt;P&gt;S|S-GGA-P-92-0006-96|PKR|GGA|P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but am getting output is only single char. like.&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHAT is the wrong here plz..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 05:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917548#M686931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T05:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data using 'GUI_UPLOAD' ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917549#M686932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudarshan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wrte the Loop statement as Lop at Itab into wa_itab.&lt;/P&gt;&lt;P&gt;write :wa_itab-branch,&lt;/P&gt;&lt;P&gt;wa_itab-xre_tty,&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have any further clarifications,do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Puneet Jhari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 05:17:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917549#M686932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T05:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data using 'GUI_UPLOAD' ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917550#M686933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For HAS_FIELD_SEPERATOR you are passing '|".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the documentation for this field -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Columns Separated by Tabs in Case of ASCII Upload&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;Specifies if the fields in the file are separated by a tab. This is necessary if the structure passed contains several components. CR/LF occurs instead of a tab after the last field of a row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value range&lt;/P&gt;&lt;P&gt;'X': Fields are separated by tabs.&lt;/P&gt;&lt;P&gt;SPACE: Fields are not separated by tabs. In this case, the table must&lt;/P&gt;&lt;P&gt;contain either only one single column or all columns must be contained&lt;/P&gt;&lt;P&gt;in the file in their full length.&lt;/P&gt;&lt;P&gt;Default&lt;/P&gt;&lt;P&gt;SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So check if you can use Tab as field separator and populate correct value to the function module parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 05:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917550#M686933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T05:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data using 'GUI_UPLOAD' ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917551#M686934</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;try using :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_record type itab.&lt;/P&gt;&lt;P&gt;loop at itab into wa_record.&lt;/P&gt;&lt;P&gt;  write:/ sy-vline,&lt;/P&gt;&lt;P&gt;       (10) wa_record-branch,&lt;/P&gt;&lt;P&gt;       (20) wa_record-xre_tty,&lt;/P&gt;&lt;P&gt;       (30) wa_record-cob.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this might solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 05:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917551#M686934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T05:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data using 'GUI_UPLOAD' ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917552#M686935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GIVE SPACE IN THE HAS FIELD SEPERATOR......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HAVE TRIED THIS AND I GOT THE OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 1,&lt;/P&gt;&lt;P&gt;BRANCH(1) TYPE C,&lt;/P&gt;&lt;P&gt;XRE_TTY(18) TYPE C,&lt;/P&gt;&lt;P&gt;ORIG_CURR(3) TYPE C,&lt;/P&gt;&lt;P&gt;COB(3) TYPE C,&lt;/P&gt;&lt;P&gt;TTY_TYPE(1) TYPE C,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;DATA: WA_ITAB LIKE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_FILENAME TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_FILENAME = 'C:\ACCUPLOAD\input.TXT'.&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 = V_FILENAME&lt;/P&gt;&lt;P&gt;FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER_LENGTH = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;READ_BY_LINE = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; DAT_MODE = 'X'&lt;/P&gt;&lt;UL&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;LI level="1" type="ul"&gt;&lt;P&gt;HEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = ITAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB .&lt;/P&gt;&lt;P&gt;WRITE:/20 ITAB-BRANCH,&lt;/P&gt;&lt;P&gt;ITAB-XRE_TTY,&lt;/P&gt;&lt;P&gt;ITAB-ORIG_CURR,&lt;/P&gt;&lt;P&gt;ITAB-COB,&lt;/P&gt;&lt;P&gt;ITAB-TTY_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD POINTS IF HELPFUL .......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 05:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917552#M686935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T05:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data using 'GUI_UPLOAD' ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917553#M686936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi puneet and ritika as u both of u told that is not the problem, i ve trid like that also, its giving same o/p,  the problem the itab its self is getting only one char i.e S. &lt;/P&gt;&lt;P&gt;i think the problem is Field seperator, in my flat having pipe is the seperator, &lt;/P&gt;&lt;P&gt;so how to solve this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 05:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917553#M686936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T05:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data using 'GUI_UPLOAD' ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917554#M686937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ramyav, thank u very much, u r right i got the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thank u verymuch.&lt;/P&gt;&lt;P&gt;i ve given gd rewards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 05:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-gui-upload/m-p/2917554#M686937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T05:52:56Z</dc:date>
    </item>
  </channel>
</rss>

