<?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: Pipe separated flat file upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pipe-separated-flat-file-upload/m-p/908530#M56583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload the flat file into a flat itab using the GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Types: Begin of ttab,
       rec(1000) type c,
       end of ttab.

data: itab type table of ttab with header line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you have the data in the flat itab.  Loop thru it and split at the pipe(|).  Update another itab with your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: Begin of itab2 occurs 0,
      field1(10) type c,
      field2(10) type c,
      field3(10) type c,
      endo of itab2.

Loop at itab.
split itab-rec at '|' into itab2-field1
                           itab2-field2
                           itab2-field3.
append itab2.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2005 13:25:52 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-03-23T13:25:52Z</dc:date>
    <item>
      <title>Pipe separated flat file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pipe-separated-flat-file-upload/m-p/908529#M56582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ALl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me how to upload a flat file (field separator is pipe |) using the FM GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And than how to split the fields into there corresponding table-fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2005 12:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pipe-separated-flat-file-upload/m-p/908529#M56582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-23T12:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe separated flat file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pipe-separated-flat-file-upload/m-p/908530#M56583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload the flat file into a flat itab using the GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Types: Begin of ttab,
       rec(1000) type c,
       end of ttab.

data: itab type table of ttab with header line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you have the data in the flat itab.  Loop thru it and split at the pipe(|).  Update another itab with your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: Begin of itab2 occurs 0,
      field1(10) type c,
      field2(10) type c,
      field3(10) type c,
      endo of itab2.

Loop at itab.
split itab-rec at '|' into itab2-field1
                           itab2-field2
                           itab2-field3.
append itab2.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2005 13:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pipe-separated-flat-file-upload/m-p/908530#M56583</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-03-23T13:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe separated flat file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pipe-separated-flat-file-upload/m-p/908531#M56584</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) upload file in table ftab&lt;/P&gt;&lt;P&gt;2) split fields dyn. to your itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF SPTAB OCCURS   0,
        line type string,
      END OF SPTAB.
Data : begin of itab,"your int. target table
....


loop at ftab.

split ftab at '|' into table sptab.

loop at sptab.
ASSIGN COMPONENT SY-INDEX OF STRUCTURE itab TO &amp;lt;F&amp;gt;.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
EXIT. 
endif.
&amp;lt;f&amp;gt; = sptab-line.
endloop.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2005 13:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pipe-separated-flat-file-upload/m-p/908531#M56584</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-03-23T13:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe separated flat file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pipe-separated-flat-file-upload/m-p/908532#M56585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is for the horizontal tab separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:&lt;/P&gt;&lt;P&gt;    CON_TAB  TYPE C VALUE CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any specific thing for the pipe to0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2005 15:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pipe-separated-flat-file-upload/m-p/908532#M56585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-23T15:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe separated flat file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pipe-separated-flat-file-upload/m-p/908533#M56586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no specific value for Pipe as there is no Unicode conversion issues.  In this case simply use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_delimiter TYPE c LENGTH 1 VALUE '|'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify the delimiter directly for any "normal" character, by that I mean any NON-white space characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2005 17:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pipe-separated-flat-file-upload/m-p/908533#M56586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-23T17:26:36Z</dc:date>
    </item>
  </channel>
</rss>

