<?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 data from flat file into module pool program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219172#M476270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sachin , &lt;/P&gt;&lt;P&gt;Try using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = '&amp;lt;b&amp;gt;:&amp;lt;/b&amp;gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess you can do it &lt;/P&gt;&lt;P&gt;else the next option is take a string upload the data in the string and then split the data using SPLIT as told by sudha................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 10:05:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-08T10:05:29Z</dc:date>
    <item>
      <title>Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219166#M476264</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;i have data in my flat file in the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0:2000:2029:34&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i have a module pool interface and i need to catch the figures into text boxes on the click of that button.if somebody can help i shall be delighted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 09:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219166#M476264</guid>
      <dc:creator>sachin_soni</dc:creator>
      <dc:date>2007-05-08T09:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219167#M476265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sachin ,&lt;/P&gt;&lt;P&gt;try this 1st upload the data into the internal table.using GUI_upload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map the fields of the internal table to the fields of the module pool interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to write ur code in the PAI on the click of that button.&lt;/P&gt;&lt;P&gt;say if that button is display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'display'.&lt;/P&gt;&lt;P&gt; call function GUI_upload.&lt;/P&gt;&lt;P&gt;map the fields and then display it..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 09:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219167#M476265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T09:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219168#M476266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the SPLIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;fieldname&amp;gt; at ':' into &amp;lt;field1&amp;gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 09:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219168#M476266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T09:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219169#M476267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sudha can u be a bit more clear please ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 09:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219169#M476267</guid>
      <dc:creator>sachin_soni</dc:creator>
      <dc:date>2007-05-08T09:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219170#M476268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and ankur , can V upload ':' separated values into ITABs???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 09:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219170#M476268</guid>
      <dc:creator>sachin_soni</dc:creator>
      <dc:date>2007-05-08T09:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219171#M476269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare the itab with field type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and upload the data into itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using split statement separate the values into different fields.&lt;/P&gt;&lt;P&gt;move this field values  to screen fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 10:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219171#M476269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T10:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219172#M476270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sachin , &lt;/P&gt;&lt;P&gt;Try using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = '&amp;lt;b&amp;gt;:&amp;lt;/b&amp;gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess you can do it &lt;/P&gt;&lt;P&gt;else the next option is take a string upload the data in the string and then split the data using SPLIT as told by sudha................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 10:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219172#M476270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T10:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219173#M476271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this code.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.  &lt;/P&gt;&lt;P&gt;DATA: begin of it_datatab occurs 0,&lt;/P&gt;&lt;P&gt;  row(500) type c,&lt;/P&gt;&lt;P&gt; end of it_datatab.&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        = i_file&lt;/P&gt;&lt;P&gt;            filetype        = 'ASC'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            data_tab        = it_datatab  "ITBL_IN_RECORD[]&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            file_open_error = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 10:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219173#M476271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T10:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219174#M476272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sachin,&lt;/P&gt;&lt;P&gt;Here is the dummy code for you...............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say there are only 4 fields in the flat file as mentioned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0:2000:2029:34&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0 ,&lt;/P&gt;&lt;P&gt;       f1,&lt;/P&gt;&lt;P&gt;       f2(4),&lt;/P&gt;&lt;P&gt;       f3(4),&lt;/P&gt;&lt;P&gt;       f4(2),&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_file type string&lt;/P&gt;&lt;P&gt;            value 'C:\Documents and Settings\amarwaha\Desktop\test.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: begin of it_datatab occurs 0,&lt;/P&gt;&lt;P&gt;  row(500) type c,&lt;/P&gt;&lt;P&gt; end of it_datatab.&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        = i_file&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           filetype        = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            data_tab        = it_datatab  "ITBL_IN_RECORD[]&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            file_open_error = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_datatab.&lt;/P&gt;&lt;P&gt;split it_datatab-row at ':' into itab-f1 itab-f2 itab-f3 itab-f4.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now itab has all the data in the four fields...........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 10:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219174#M476272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T10:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219175#M476273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ankur , the code doesnt takes care of ':' separator here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 10:29:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219175#M476273</guid>
      <dc:creator>sachin_soni</dc:creator>
      <dc:date>2007-05-08T10:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219176#M476274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx pal , u made it simple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 10:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219176#M476274</guid>
      <dc:creator>sachin_soni</dc:creator>
      <dc:date>2007-05-08T10:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219177#M476275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just want to add one note: gui_upload reads the file from your local pc, and doesn't work in background.&lt;/P&gt;&lt;P&gt;If the file is not reachable from your PC or you want to read it from a batch job, you should use open dataset/read dataset instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 10:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219177#M476275</guid>
      <dc:creator>MarcelloUrbani</dc:creator>
      <dc:date>2007-05-08T10:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Upload data from flat file into module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219178#M476276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just create internal table with character dat type and in pbo module write&lt;/P&gt;&lt;P&gt;module upload, double click on upload and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in code&lt;/P&gt;&lt;P&gt;call function 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;i_itab = tablename[]&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;reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 10:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-flat-file-into-module-pool-program/m-p/2219178#M476276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T10:52:09Z</dc:date>
    </item>
  </channel>
</rss>

