<?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: question on default option for parametere statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782935#M1120409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use the DEFAULT for the more than one values or combinations.&lt;/P&gt;&lt;P&gt;So, you have to fill the Select option in the INITIALIZATION event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: w_bukrs TYPE bkpf-bukrs.

SELECT-OPTIONS s_zbukr FOR w_bukrs MODIF ID fff.

INITIALIZATION.
  s_zbukr-sign   = 'I'.
  s_zbukr-option = 'BT'.
  s_zbukr-low    = '1000'.
  s_zbukr-high   = '1200'.
  APPEND s_zbukr.
  CLEAR  s_zbukr.
  s_zbukr-sign   = 'I'.
  s_zbukr-option = 'BT'.
  s_zbukr-low    = '1800'.
  s_zbukr-high   = '2000'.
  APPEND s_zbukr.
  CLEAR  s_zbukr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2008 19:40:25 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2008-11-20T19:40:25Z</dc:date>
    <item>
      <title>question on default option for parametere statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782933#M1120407</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 to make a change to my program and it involves the statement below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_zbukr FOR w_payr-zbukr MODIF ID fff&lt;/P&gt;&lt;P&gt;                                DEFAULT 1000 TO 1200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; the business wants to include more company codes. the current process defaults to all the company codes between 1000 and 1200.  they now want to include to new company codes 1800 and 2000, the problem is that there are company codes between 1200 and 2000 that they do not want to use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I can use the default statement anymore or if I have to create a variant with the company codes coded in the variant .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been searching the SDN for any threads on this and also in the SAP help but I cannot find any answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if someone know how to code this, could you please share it with me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in  advance for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 19:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782933#M1120407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T19:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: question on default option for parametere statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782934#M1120408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not you add manually 1800 &lt;STRONG&gt;and&lt;/STRONG&gt; 2000(i'm guessing you want add only 1800 and 2000,not all between 1800 to 2000) in Multiple selection-screen?&lt;/P&gt;&lt;P&gt;By Just clicking on &lt;STRONG&gt;=&amp;gt;&lt;/STRONG&gt;  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 19:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782934#M1120408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T19:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: question on default option for parametere statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782935#M1120409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use the DEFAULT for the more than one values or combinations.&lt;/P&gt;&lt;P&gt;So, you have to fill the Select option in the INITIALIZATION event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: w_bukrs TYPE bkpf-bukrs.

SELECT-OPTIONS s_zbukr FOR w_bukrs MODIF ID fff.

INITIALIZATION.
  s_zbukr-sign   = 'I'.
  s_zbukr-option = 'BT'.
  s_zbukr-low    = '1000'.
  s_zbukr-high   = '1200'.
  APPEND s_zbukr.
  CLEAR  s_zbukr.
  s_zbukr-sign   = 'I'.
  s_zbukr-option = 'BT'.
  s_zbukr-low    = '1800'.
  s_zbukr-high   = '2000'.
  APPEND s_zbukr.
  CLEAR  s_zbukr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 19:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782935#M1120409</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-11-20T19:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: question on default option for parametere statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782936#M1120410</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 can use the initialization event to populate the select options..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: t001.
SELECT-OPTIONS s_zbukr FOR t001-bukrs MODIF ID fff.

INITIALIZATION.

* First add 1000 to 1200
  s_zbukr-sign   = 'I'.
  s_zbukr-option = 'BT'.
  s_zbukr-low    = '1000'.
  s_zbukr-high   = '1200'.
  APPEND s_zbukr.
  CLEAR  s_zbukr.

* Then add 1800 separately.
  s_zbukr-sign   = 'I'.
  s_zbukr-option = 'EQ'.
  s_zbukr-low    = '1800'.
  APPEND s_zbukr.
  CLEAR  s_zbukr.

* Then add 2000 separately.
  s_zbukr-sign   = 'I'.
  s_zbukr-option = 'EQ'.
  s_zbukr-low    = '2000'.
  APPEND s_zbukr.
  CLEAR  s_zbukr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 19:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782936#M1120410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T19:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: question on default option for parametere statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782937#M1120411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Initialization
ranges : s_zbukr FOR w_payr-zbukr .

s_zbukr-sign = 'I'.
s_zbukr-option = 'EQ'
s_zbukr-low = '1000'.
append s_zbukr.
...
...
...
s_zbukr-sign = 'I'.
s_zbukr-option = 'EQ'
s_zbukr-low = '1200'.
append s_zbukr.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add all values you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS s_zbukr FOR w_payr-zbukr MODIF ID fff
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®s &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 19:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782937#M1120411</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-11-20T19:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: question on default option for parametere statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782938#M1120412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would do it the first way you suggested - create a variant. Everything else requires a program change and when the users decide they want different company codes, it's easier just to change the variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 19:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782938#M1120412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T19:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: question on default option for parametere statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782939#M1120413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you all for the quick response&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 20:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-default-option-for-parametere-statement/m-p/4782939#M1120413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T20:06:47Z</dc:date>
    </item>
  </channel>
</rss>

