<?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: restricting values in   parameter statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534564#M243969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;initialization.
 

 
  select matnr into table it001 from mara up to 10 rows.
 
  sort it001 ascending by matnr.
  delete adjacent duplicates from it001 .
 
at selection-screen on value-request for s_matnr.
 
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'MATNR'
            dynprofield = 'S_MATNR'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = it001.
 
start-of-selection.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2006 09:30:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-07T09:30:13Z</dc:date>
    <item>
      <title>restricting values in   parameter statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534560#M243965</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;can anyone tell me like s there any possibility of restrictin values durin selection  thru  parameters or select-ooption&lt;/P&gt;&lt;P&gt;for example if im using matnr as the variable tht s to  be selected thru parameter stmt i jst want the first 10 values only whn i click f4 key how can i do tht&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 09:18:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534560#M243965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T09:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: restricting values in   parameter statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534561#M243966</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;try fm F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 09:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534561#M243966</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-08-07T09:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: restricting values in   parameter statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534562#M243967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey i hope this will help ... and put upto 10 rows in the select statement &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_workc.&lt;/P&gt;&lt;P&gt;  CLEAR: dynpfields, t_work.&lt;/P&gt;&lt;P&gt;  REFRESH: dynpfields, t_work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dynpfields-fieldname = 'P_PLANT'.&lt;/P&gt;&lt;P&gt;  APPEND dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      dyname                         = 'ZPPR_GRP_DPR'&lt;/P&gt;&lt;P&gt;      dynumb                         = '1000'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       TRANSLATE_TO_UPPER             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       REQUEST                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       PERFORM_CONVERSION_EXITS       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       PERFORM_INPUT_CONVERSION       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       DETERMINE_LOOP_INDEX           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields                     = dynpfields&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        invalid_abapworkarea           = 1&lt;/P&gt;&lt;P&gt;        invalid_dynprofield            = 2&lt;/P&gt;&lt;P&gt;        invalid_dynproname             = 3&lt;/P&gt;&lt;P&gt;        invalid_dynpronummer           = 4&lt;/P&gt;&lt;P&gt;        invalid_request                = 5&lt;/P&gt;&lt;P&gt;        no_fielddescription            = 6&lt;/P&gt;&lt;P&gt;        invalid_parameter              = 7&lt;/P&gt;&lt;P&gt;        undefind_error                 = 8&lt;/P&gt;&lt;P&gt;        double_conversion              = 9&lt;/P&gt;&lt;P&gt;        stepl_not_found                = 10&lt;/P&gt;&lt;P&gt;        OTHERS                         = 11&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;*WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT arbpl FROM&lt;/P&gt;&lt;P&gt;               s024&lt;/P&gt;&lt;P&gt;               INTO  TABLE t_work&lt;/P&gt;&lt;P&gt;               WHERE werks = dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      retfield    = 'ARBPL'&lt;/P&gt;&lt;P&gt;      dynpprog    = 'ZPPR_GRP_DPR'&lt;/P&gt;&lt;P&gt;      dynpnr      = '1000'&lt;/P&gt;&lt;P&gt;      dynprofield = 'P_WORKC'&lt;/P&gt;&lt;P&gt;      value_org   = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab   = t_work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpfull &lt;/P&gt;&lt;P&gt;rohit gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 09:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534562#M243967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T09:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: restricting values in   parameter statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534563#M243968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: p_date FOR sy-datum  OBLIGATORY    .&lt;/P&gt;&lt;P&gt;PARAMETER    p_plant LIKE afru-werks OBLIGATORY DEFAULT '3200'.&lt;/P&gt;&lt;P&gt;PARAMETER    p_workc LIKE  s024-arbpl  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 09:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534563#M243968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T09:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: restricting values in   parameter statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534564#M243969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;initialization.
 

 
  select matnr into table it001 from mara up to 10 rows.
 
  sort it001 ascending by matnr.
  delete adjacent duplicates from it001 .
 
at selection-screen on value-request for s_matnr.
 
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'MATNR'
            dynprofield = 'S_MATNR'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = it001.
 
start-of-selection.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 09:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534564#M243969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T09:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: restricting values in   parameter statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534565#M243970</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;There are two ways of doing this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If you`d like to standard SAP SEARCH HELP attached with your parameter, you can use a SEARCH HELP EXIT to restrict values of selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Other way is don`t use a standard search help instead use your own match code object. If this`s the case you would opt for you`ll use dynamic search help function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I`d replied for a question in the following forum, try that your need will be addressed. Click the belowsaid link :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2140544"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would be helpful, reward points if so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 09:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534565#M243970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T09:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: restricting values in   parameter statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534566#M243971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kishan&lt;/P&gt;&lt;P&gt;whn i tried your coding the value is bein restricted but the issue now is in the screen i get the status as 10 etries found but the values r not displayed in the screen jst the plain screen with the status is display where am i goin wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 10:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534566#M243971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T10:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: restricting values in   parameter statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534567#M243972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi do like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : p_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  select matnr &lt;/P&gt;&lt;P&gt;         into table itab &lt;/P&gt;&lt;P&gt;         from mara up to 10 rows.&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  sort itab by matnr.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;at selection-screen on value-request for p_matnr.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call function &amp;lt;b&amp;gt;'F4IF_INT_TABLE_VALUE_REQUEST'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            retfield    = 'MATNR'&lt;/P&gt;&lt;P&gt;            dynprofield = p_matnr&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;            value_tab   = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashok P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 10:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-values-in-parameter-statement/m-p/1534567#M243972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T10:36:59Z</dc:date>
    </item>
  </channel>
</rss>

