<?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: Reading from application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-application-server/m-p/9290446#M1725100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The condense statement does not work because of the following reason: When there are gaps in the text in the excel, while uploading this excel data into an internal table, the gaps are converted to Hash (#) symbols. So the condense does not work in this case. When writing to the app server, the hash symbold are converted back to gaps. Next step which is the reading from app server does not read the data properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2013 09:40:15 GMT</pubDate>
    <dc:creator>former_member353794</dc:creator>
    <dc:date>2013-02-04T09:40:15Z</dc:date>
    <item>
      <title>Reading from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-application-server/m-p/9290443#M1725097</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 a requirement wherein I need to uplaod an excel sheet which contains Material number, Plant and PO text. And accordingly update the material and plant with the given PO text. Now, if i have mat1, Plant1 and PO text given for this combination in the excl as below:&lt;/P&gt;&lt;P&gt;"This is the new PO Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Update it"&lt;/P&gt;&lt;P&gt;If the above is the PO text (with a line's gap between 2 statements), the requirement is to upload this text into application server. Then in the update program, i need to read this text for the corresponding material and plant.&lt;/P&gt;&lt;P&gt;The uploading is happening correctly into the app server:&lt;/P&gt;&lt;P&gt;Mat1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plant1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is the new PO Text&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please Update it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But while reading from the application server in the update program, the first read dataset statement reads only Mat1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plant1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is the new PO Text. This record is filled in the internal table meant for update. The structure of the internal table is Material, Plant, PO text.&lt;/P&gt;&lt;P&gt;Now the control goes to the next read dataset statement and reads text "Please Update it". This text is filled in the material column of the internal table and hence gives an error at the time of update. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax used to upload into app server is :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET &lt;/P&gt;&lt;SPAN style="font-size: 10pt;"&gt;p_path &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FOR OUTPUT IN TEXT MODE ENCODING DEFAULT&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Transfer each record&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax used to read from app server is :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET &lt;/P&gt;&lt;SPAN style="font-size: 10pt;"&gt;p_path &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FOR OUTPUT IN TEXT MODE ENCODING DEFAULT&lt;/SPAN&gt;&lt;P&gt;If sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN id="mce_marker"&gt;&lt;SPAN id="mce_marker"&gt;&lt;SPAN id="mce_marker"&gt;Do.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;﻿&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;﻿&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;Read dataset p_path into v_appltxt (where v_appltxt is of type string)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fill the internal table for update.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;Else.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;exit.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;Enddo.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;Please help me rectify the issue at the time of reading from the app server so that the PO text(no matter how is in entered in the excel sheet) is read against the correspoding material and plant combination.&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 07:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-application-server/m-p/9290443#M1725097</guid>
      <dc:creator>former_member353794</dc:creator>
      <dc:date>2013-02-04T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-application-server/m-p/9290444#M1725098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jean,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; READ DATASET statement will always read one line of input file at a time. Since the PO text is not continuous, Its gettng read into material number in the next fetch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As a solution, try to keep the PO text entirely while uploading data to application server. You may have to put in logic to remove extra lines after the data is retrieved from the excel sheet to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;~Athreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 08:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-application-server/m-p/9290444#M1725098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-04T08:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-application-server/m-p/9290445#M1725099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the Condense PO text option to do this, but is it not removing the gaps. Also the user expects us to update the material master with the text as is entered in the excel file. Say the user has some salutaion in the end of the text, this salutation will be entered as a separate text after leaving a gap of 1 or 2 lines. In such a case, what do I need to do to update the text.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 09:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-application-server/m-p/9290445#M1725099</guid>
      <dc:creator>former_member353794</dc:creator>
      <dc:date>2013-02-04T09:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-application-server/m-p/9290446#M1725100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The condense statement does not work because of the following reason: When there are gaps in the text in the excel, while uploading this excel data into an internal table, the gaps are converted to Hash (#) symbols. So the condense does not work in this case. When writing to the app server, the hash symbold are converted back to gaps. Next step which is the reading from app server does not read the data properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 09:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-application-server/m-p/9290446#M1725100</guid>
      <dc:creator>former_member353794</dc:creator>
      <dc:date>2013-02-04T09:40:15Z</dc:date>
    </item>
  </channel>
</rss>

