<?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: you may only read from table..Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550565#M1752937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it_char is an import parameter. So you can't change it's value. If you sort a table, you're changing it. If you want to change it, make it a changing parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Jun 2013 15:41:26 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2013-06-16T15:41:26Z</dc:date>
    <item>
      <title>you may only read from table..Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550564#M1752936</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 the following issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a FM in which it_char is import parameter &lt;/P&gt;&lt;P&gt;data : it_char type ztest&lt;/P&gt;&lt;P&gt;where ztest is table type . &lt;/P&gt;&lt;P&gt;now the issue is that when I run code inspector I get an error has bellow when I do this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SORT &lt;/SPAN&gt;it_char &lt;SPAN class="L0S52"&gt;by &lt;/SPAN&gt;atnam.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;READ &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;it_char &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;lv_chara &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &lt;/SPAN&gt;atnam &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lwa_allocvaluesnum&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;charact .&lt;/P&gt;&lt;P&gt;ERROR is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may only read from table "it_char".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now how can I remove this error ???&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;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 15:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550564#M1752936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-16T15:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: you may only read from table..Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550565#M1752937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it_char is an import parameter. So you can't change it's value. If you sort a table, you're changing it. If you want to change it, make it a changing parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 15:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550565#M1752937</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-06-16T15:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: you may only read from table..Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550566#M1752938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its coming because you have put it in importing parameters which is used for variables or structures only. Try putting the table it_Char in changing parameters or better in Tables parameters.&lt;/P&gt;&lt;P&gt;It should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 15:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550566#M1752938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-16T15:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: you may only read from table..Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550567#M1752939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Define table type ztest in fm and assign Import value to that and do any operation on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreenivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 15:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550567#M1752939</guid>
      <dc:creator>former_member219762</dc:creator>
      <dc:date>2013-06-16T15:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: you may only read from table..Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550568#M1752940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I remember, when we use READ table WITH KEY option, then the it_table should be defined with Key..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I would suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Pass the internal table as table parameter,&lt;/P&gt;&lt;P&gt;2. Inside the function,&amp;nbsp; crete another it_table with key option&lt;/P&gt;&lt;P&gt;3. assign the pased table parameter it table to this above defined it_table.&lt;/P&gt;&lt;P&gt;4. then use the REad statement on the newly defined it_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 17:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550568#M1752940</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2013-06-16T17:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: you may only read from table..Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550569#M1752941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it isn't. You can quite happily pass tables in the importing, exporting or changing parameters. In fact, if you try to use TABLES, you'll get a warning about them being obsolete. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is with the SORT. I just created a test, and it's syntax error in 7.01.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 18:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550569#M1752941</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-06-16T18:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: you may only read from table..Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550570#M1752942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is the SORT causing the problem - not the READ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 18:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550570#M1752942</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-06-16T18:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: you may only read from table..Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550571#M1752943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with&amp;nbsp; &lt;SPAN class="j-post-author "&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://answers.sap.com/people/matthew.billingham" id="jive-2407926218218554140131"&gt;Matthew Billingham&lt;/A&gt;, you cannot execute any sort/modify statement on an import parameter, so either define it as a changing parameter or copy its data to a local internal table that you will be allowed to sort/modify.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;Raymond&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 18:43:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550571#M1752943</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-06-16T18:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: you may only read from table..Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550572#M1752944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for letting me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Ankit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 03:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550572#M1752944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-17T03:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: you may only read from table..Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550573#M1752945</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; Please pass the required parameter as "Changing" parameter tab.Hope it will solve your problem.Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Shankar L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 11:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/you-may-only-read-from-table-error/m-p/9550573#M1752945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-17T11:21:46Z</dc:date>
    </item>
  </channel>
</rss>

