<?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 and select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627296#M603780</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;You are correct. I will reward the points. I have another question. Is it possible to have a 'Display All' button and keep the select-options hidden?(Here I want to show all entries)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;bindazme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2007 09:41:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-31T09:41:32Z</dc:date>
    <item>
      <title>parameters and select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627292#M603776</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;The code works fine when select-options is used. But when I use parameters instead (changing in to eq) I am not getting any ouptput. Can you please tell me what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;bindazme&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;report  zdel8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_data,&lt;/P&gt;&lt;P&gt;          art    type  qpart,&lt;/P&gt;&lt;P&gt;          matnr  type  matnr ,&lt;/P&gt;&lt;P&gt;          werks  type  werks_d,&lt;/P&gt;&lt;P&gt;          aktiv  type  qmataktiv,&lt;/P&gt;&lt;P&gt;        end of  ty_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_matnr type matnr,&lt;/P&gt;&lt;P&gt;       w_werks type werks_d,&lt;/P&gt;&lt;P&gt;       w_aktiv type qmat-art,&lt;/P&gt;&lt;P&gt;       t_data type standard table of ty_data,&lt;/P&gt;&lt;P&gt;       t_field type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;       w_field type slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : begin of block blk1 with frame title text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select-options : s_matnr for wa_matnr,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                  s_werks for w_werks,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                  s_aktiv for w_aktiv.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter : s_matnr LIKE qmat-matnr.&lt;/P&gt;&lt;P&gt;parameter : s_werks LIKE qmat-werks.&lt;/P&gt;&lt;P&gt;parameters: s_aktiv like qmat-art.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen  : end of block blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : begin of block blk2 with frame title text-002,&lt;/P&gt;&lt;P&gt;                    begin of line,&lt;/P&gt;&lt;P&gt;                    pushbutton 2(10)  but1 user-command clk1.&lt;/P&gt;&lt;P&gt;selection-screen :  end of line,&lt;/P&gt;&lt;P&gt;                    end of block blk2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   but1 = 'Display'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start of seleection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : t_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select art&lt;/P&gt;&lt;P&gt;        matnr&lt;/P&gt;&lt;P&gt;        werks&lt;/P&gt;&lt;P&gt;        aktiv&lt;/P&gt;&lt;P&gt;        from qmat&lt;/P&gt;&lt;P&gt;        into table t_data&lt;/P&gt;&lt;P&gt;        where art   eq s_aktiv&lt;/P&gt;&lt;P&gt;        and   matnr eq s_matnr&lt;/P&gt;&lt;P&gt;        and   werks eq s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-ucomm = 'CLK1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear t_field[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_field-col_pos   = 1.&lt;/P&gt;&lt;P&gt;w_field-fieldname = 'ART'.&lt;/P&gt;&lt;P&gt;w_field-seltext_l = 'Inspection Type'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append w_field to t_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;w_field-col_pos    = 2.&lt;/P&gt;&lt;P&gt;w_field-fieldname  = 'MATNR'.&lt;/P&gt;&lt;P&gt;w_field-seltext_l  = 'Material Number'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;append w_field to t_field.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;w_field-col_pos    = 3.&lt;/P&gt;&lt;P&gt;w_field-fieldname  = 'WERKS'.&lt;/P&gt;&lt;P&gt;w_field-seltext_l  = 'Plant'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append w_field to t_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_field-col_pos    = 4.&lt;/P&gt;&lt;P&gt;w_field-fieldname  = 'AKTIV'.&lt;/P&gt;&lt;P&gt;w_field-seltext_l  = 'TYPE'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;append w_field to t_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   IT_FIELDCAT                       = t_field&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;    t_outtab                          = t_data&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   PROGRAM_ERROR                     = 1&lt;/P&gt;&lt;P&gt;   OTHERS                            = 2&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;clear : t_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 09:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627292#M603776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T09:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: parameters and select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627293#M603777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;First goto SE16&lt;/P&gt;&lt;P&gt;enter table name QMAT&lt;/P&gt;&lt;P&gt;then enter the Material, Plant and ART fields what you are entering in the selection screen and see whether data is there in the table or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other wise take some records of above fields from the table and enter them and see &lt;/P&gt;&lt;P&gt;the output will come&lt;/P&gt;&lt;P&gt;When it is select-options all the values are taken and the data is displayed&lt;/P&gt;&lt;P&gt;when Parameters then a single value will be taken, may be data not there for that value in table&lt;/P&gt;&lt;P&gt;so do as mentioned above and see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 09:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627293#M603777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T09:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: parameters and select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627294#M603778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are using select options if you leave the select option blank, then that particular field in the where clause will be ignored and all records returned by the remaining where clauses will be returned. But when you are using a parameter and you leave the field blank, then the system will check for a blank value in the field (against which the parameter is compared in the where clause). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, you may be leaving the field on the selection screen blank. Hence it checks for blank entries in MATNR and WERKS when you are using parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark points if the solution was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 09:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627294#M603778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T09:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: parameters and select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627295#M603779</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;whn u gave as parameter, did u enter any values in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u didn give any values, it will take space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in where condition it will compare with space. so no data will not get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope u undrstud,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;REshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 09:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627295#M603779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T09:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: parameters and select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627296#M603780</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;You are correct. I will reward the points. I have another question. Is it possible to have a 'Display All' button and keep the select-options hidden?(Here I want to show all entries)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;bindazme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 09:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627296#M603780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T09:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: parameters and select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627297#M603781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible. Just add a button on the toolbar and when the button is clicked, select all the records from the base table with out any condition and display them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark points if the solution was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 09:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627297#M603781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T09:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: parameters and select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627298#M603782</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;In a selection screen if a range object is left balnk it means all values without any restrictions. But if a parameter is left balnk it is equal to space. So whne we use a parameter and do not specify any value and try using it in a table fetch it will try to get the table entries where the field value is equal to space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_matnr is a select option and if it is left blank in the selection screen and upon execution of program where it is a used in select from mara table it will fetch all the entries of matnr from the mara tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if s_matnr is a parameter and if it is left blank in the selection screen and upon execution of program where it is a used in select from mara table it will fetch all the entries of matnr = space from the mara tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it clarifies your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;-Irudayaraj Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 09:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627298#M603782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T09:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: parameters and select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627299#M603783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are using PARAMATER you SHOULD fill all values on the selection screen.&lt;/P&gt;&lt;P&gt;If you do not fill any value in a field (for example you leave S_WERKS blank), it means you are trying to find record with WERKS = blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not same like SELECTION-OPTION.&lt;/P&gt;&lt;P&gt;If you do not fill any value it means you will fetch all values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hendy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 09:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-and-select-options/m-p/2627299#M603783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T09:53:11Z</dc:date>
    </item>
  </channel>
</rss>

