<?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: Read data from Presentation Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-presentation-server/m-p/2078043#M430887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Little,&lt;/P&gt;&lt;P&gt;  First populate all  the data from text file to internal table throguh GUI_UPLOAD then select data from data base table into other internal table  by using forall entreis on the first internal table. Then you will get proper data.&lt;/P&gt;&lt;P&gt;Hope this helps you, reply for queries, Shall post you the updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Kumar. .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2007 10:54:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-03T10:54:12Z</dc:date>
    <item>
      <title>Read data from Presentation Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-presentation-server/m-p/2078041#M430885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greeting to everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I know how to read the data from the input file (Check for Student_ID) and retrieve the data from course table when the student_ID  match with student_ID from Course table. My input file (text file) layout is as below. Please kindly provide some guide with sample code. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Layout of Input File 1&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;I_file&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;Student_ID     S_Name     S_Age&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;Internal table&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Course&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Student_ID   C_Detail   C_mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 09:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-presentation-server/m-p/2078041#M430885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T09:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from Presentation Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-presentation-server/m-p/2078042#M430886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Little,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this is case you follow the following steps  mentioned below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1) Read all the data in the file from the presentation server to internal table&lt;/P&gt;&lt;P&gt;      using the function module GUI_UPLOAD.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 2) once u receiving the data from file to ur own internal table say i_itab1[], you read it to ur processing internal table say i_itab2[] from i_itab1[] based on your selection conditon..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) sometime back i used GUI_upload.. so i am searching for tht code if i get i will let u know.. but u can find code for this FM.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But  i suggest if u follow the below steps it is not a problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it helps you plz provide reward points,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kali Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 10:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-presentation-server/m-p/2078042#M430886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T10:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from Presentation Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-presentation-server/m-p/2078043#M430887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Little,&lt;/P&gt;&lt;P&gt;  First populate all  the data from text file to internal table throguh GUI_UPLOAD then select data from data base table into other internal table  by using forall entreis on the first internal table. Then you will get proper data.&lt;/P&gt;&lt;P&gt;Hope this helps you, reply for queries, Shall post you the updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Kumar. .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 10:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-presentation-server/m-p/2078043#M430887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T10:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from Presentation Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-presentation-server/m-p/2078044#M430888</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;Appreciate if you can provide some sample code related, so that I able to understanding more clearly.  Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 00:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-presentation-server/m-p/2078044#M430888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T00:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from Presentation Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-presentation-server/m-p/2078045#M430889</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;     In this case you can use two function modules..First one is simple 'UPLOAD' and the most prefered one is 'GUI_UPLOAD'...This is the easiest way to upload file from presentation server..If your file is a text file give the parameters as shown in the given example...Put field seperator as ' # ' if it is tab delimited..The internal table shold have the same structure of your file....See the example..Reward all the helpful answers....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&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:\test.txt'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;     has_field_separator           = '#'&lt;/P&gt;&lt;UL&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                      = it_file&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 03:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-presentation-server/m-p/2078045#M430889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T03:06:07Z</dc:date>
    </item>
  </channel>
</rss>

