<?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: Problem reading a parameters content in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-parameters-content/m-p/2809325#M656704</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;we can use only one value at a time if we are using Parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the following example&lt;/P&gt;&lt;P&gt;tables:BKPF.&lt;/P&gt;&lt;P&gt;Parameters     : P_Bukrs type BKPF-bukrs.&lt;/P&gt;&lt;P&gt;Select-options : S_Bukrs for BKPF-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using select-options we are creating an internal table with the values needed from user..but using parameter only a single variable is fetched from user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in short&lt;/P&gt;&lt;P&gt;PARAMETERS s_matnr TYPE rmmg1-matnr.&lt;/P&gt;&lt;P&gt;Now I enter numbers like 1234000000, 1235000000, 1236000000.&lt;/P&gt;&lt;P&gt;Content of s_matnr will be 000000001234000000, etc. &amp;lt;u&amp;gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt; NO&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this declare as following&lt;/P&gt;&lt;P&gt;tables:matnr.&lt;/P&gt;&lt;P&gt;Select-options : s_matnr for rmmg1-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can check the values entered in select options during a select statement like&lt;/P&gt;&lt;P&gt;select * from MARA  into XXXX where &lt;/P&gt;&lt;P&gt;             ......................  and matnr in s-Matnr.&lt;/P&gt;&lt;P&gt;so the internal table will contain values from select which has matnr in the s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q: How can I read all entries of s_matnr into it_log-matnr ?&lt;/P&gt;&lt;P&gt;2.Q: How can I read 1234000000 to it_log-matnr_short ?&lt;/P&gt;&lt;P&gt;since the value is available in s_matnr itself pls can you clarify the purpose of again reading it to another internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check,revert and reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Sep 2007 05:22:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-30T05:22:48Z</dc:date>
    <item>
      <title>Problem reading a parameters content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-parameters-content/m-p/2809324#M656703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with reading a parameters content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following coding:&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;Log table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF it_log OCCURS 0,&lt;/P&gt;&lt;P&gt;matnr_short(10),&lt;/P&gt;&lt;P&gt;matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;END OF it_log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;PARAMETERS s_matnr TYPE rmmg1-matnr.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I enter numbers like 1234000000, 1235000000, 1236000000.&lt;/P&gt;&lt;P&gt;Content of s_matnr will be 000000001234000000, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q: How can I read all entries of s_matnr into it_log-matnr ?&lt;/P&gt;&lt;P&gt;2.Q: How can I read 1234000000 to it_log-matnr_short ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2007 18:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-parameters-content/m-p/2809324#M656703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-29T18:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading a parameters content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-parameters-content/m-p/2809325#M656704</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;we can use only one value at a time if we are using Parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the following example&lt;/P&gt;&lt;P&gt;tables:BKPF.&lt;/P&gt;&lt;P&gt;Parameters     : P_Bukrs type BKPF-bukrs.&lt;/P&gt;&lt;P&gt;Select-options : S_Bukrs for BKPF-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using select-options we are creating an internal table with the values needed from user..but using parameter only a single variable is fetched from user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in short&lt;/P&gt;&lt;P&gt;PARAMETERS s_matnr TYPE rmmg1-matnr.&lt;/P&gt;&lt;P&gt;Now I enter numbers like 1234000000, 1235000000, 1236000000.&lt;/P&gt;&lt;P&gt;Content of s_matnr will be 000000001234000000, etc. &amp;lt;u&amp;gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt; NO&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this declare as following&lt;/P&gt;&lt;P&gt;tables:matnr.&lt;/P&gt;&lt;P&gt;Select-options : s_matnr for rmmg1-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can check the values entered in select options during a select statement like&lt;/P&gt;&lt;P&gt;select * from MARA  into XXXX where &lt;/P&gt;&lt;P&gt;             ......................  and matnr in s-Matnr.&lt;/P&gt;&lt;P&gt;so the internal table will contain values from select which has matnr in the s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q: How can I read all entries of s_matnr into it_log-matnr ?&lt;/P&gt;&lt;P&gt;2.Q: How can I read 1234000000 to it_log-matnr_short ?&lt;/P&gt;&lt;P&gt;since the value is available in s_matnr itself pls can you clarify the purpose of again reading it to another internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check,revert and reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2007 05:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-parameters-content/m-p/2809325#M656704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-30T05:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading a parameters content</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-parameters-content/m-p/2809326#M656705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wolf, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, your question is not clear but still check my small example it may be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Declaring the internal table&lt;/P&gt;&lt;P&gt;DATA: Begin of it_mara occurs 0,&lt;/P&gt;&lt;P&gt;           matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;           mbrsh like mara-mbrsh,&lt;/P&gt;&lt;P&gt;       end of it_mara.&lt;/P&gt;&lt;P&gt;*parameter is used for selecting single value only&lt;/P&gt;&lt;P&gt;parameter: s_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*If you are using parameter the select stament should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr mbrsh from mara into table it_mara where matnr eq s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*now print the values retrived in the internal table&lt;/P&gt;&lt;P&gt;write: / it_mara-matnr, it_mara-mbrsh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*using select-options u can retirve range of values&lt;/P&gt;&lt;P&gt;select-options: s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select statement if you use select-options&lt;/P&gt;&lt;P&gt;select matnr mbrsh from mara into table it_mara where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*printing the values from internal table&lt;/P&gt;&lt;P&gt;write: / it_mara-matnr, it_mara-mbrsh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEE THE DIFFERNCE IN THE SELECT STATEMENT IN THIS WAY WE READ THE CONTENTS OF INPUT FIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward with points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sunil kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 06:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-parameters-content/m-p/2809326#M656705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T06:48:06Z</dc:date>
    </item>
  </channel>
</rss>

