<?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: Parameters doubt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-doubt/m-p/1162586#M120874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is dependent on the type.  Say we change the value parameter to have a length of 40 and TYPE C, then the two fields will match. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Declaration of internal table.
data itab like mara occurs 0 with header line.

*defining parameters

PARAMETERS: &amp;lt;b&amp;gt;value(40) TYPE C&amp;lt;/b&amp;gt; DEFAULT 100 visible length 10,
            p_matnr TYPE mara-matnr OBLIGATORY VALUE CHECK
                      visible length 10.

*populating data into internal table.
select * from mara into table itab where matnr = p_matnr.

*processing data from internal table.
loop at itab.
  write : / itab-matnr,itab-ersda.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2006 21:10:08 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-01-09T21:10:08Z</dc:date>
    <item>
      <title>Parameters doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-doubt/m-p/1162585#M120873</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;REPORT  ZV_PARAMETERS_DEMO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declaration of internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data itab like mara occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*defining parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: value TYPE i DEFAULT 100 visible length 10,&lt;/P&gt;&lt;P&gt; p_matnr TYPE mara-matnr OBLIGATORY VALUE CHECK visible&lt;/P&gt;&lt;P&gt;         length  10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*populating data into internal table.&lt;/P&gt;&lt;P&gt;select * from mara into table itab where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*processing data from internal table.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write : / itab-matnr,itab-ersda.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is a sample code written by me  for parameters. I expect the input boxes of both the parameters to be of equal length but they are not. can anyone tell me the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 21:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-doubt/m-p/1162585#M120873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-09T21:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-doubt/m-p/1162586#M120874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is dependent on the type.  Say we change the value parameter to have a length of 40 and TYPE C, then the two fields will match. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Declaration of internal table.
data itab like mara occurs 0 with header line.

*defining parameters

PARAMETERS: &amp;lt;b&amp;gt;value(40) TYPE C&amp;lt;/b&amp;gt; DEFAULT 100 visible length 10,
            p_matnr TYPE mara-matnr OBLIGATORY VALUE CHECK
                      visible length 10.

*populating data into internal table.
select * from mara into table itab where matnr = p_matnr.

*processing data from internal table.
loop at itab.
  write : / itab-matnr,itab-ersda.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 21:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-doubt/m-p/1162586#M120874</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-09T21:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-doubt/m-p/1162587#M120875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, if you change it to a TYPE N field, they also will have matching lengths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;



* Declaration of internal table.
data itab like mara occurs 0 with header line.

*defining parameters

PARAMETERS: &amp;lt;b&amp;gt;value(40) TYPE n&amp;lt;/b&amp;gt; DEFAULT 100 visible length 10,
            p_matnr TYPE mara-matnr OBLIGATORY VALUE CHECK
                      visible length 10.

*populating data into internal table.
select * from mara into table itab where matnr = p_matnr.

*processing data from internal table.
loop at itab.
  write : / itab-matnr,itab-ersda.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 21:17:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-doubt/m-p/1162587#M120875</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-09T21:17:20Z</dc:date>
    </item>
  </channel>
</rss>

