<?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: select options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2116185#M442950</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 this case u can fill the low and high column using selection table.Goto the table rsparams and check the entries.So add all entries for your S_kunnr and append it.So that you can set the entries by default so if user leave the column empty , then also no problem..Reward all the helpfull answers..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2007 03:07:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-10T03:07:14Z</dc:date>
    <item>
      <title>select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2116181#M442946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;if i want to have kunnr (s_kunnr) in select-options where only parvw = 'SH' or 'WE', how to restrict that?&lt;/P&gt;&lt;P&gt;if user leave it empty, how do i put the IN s_kunnr in the select statement?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 02:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2116181#M442946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T02:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2116182#M442947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since SH and WE are equivalent when input as a select-option (both result in Ship-To partner).  You could verify this using the conversion routine FM CONVERSION_EXIT_PARVW_OUTPUT - both will output as 'WE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of this, you could simply use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from knvp&lt;/P&gt;&lt;P&gt;into table it_kvnp&lt;/P&gt;&lt;P&gt;where parvw eq 'WE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanted to create a custom a select option, in your initialization or start-of-selection, you could populate the select-option internal table which is equivalent to a range object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_parvw type parvw.&lt;/P&gt;&lt;P&gt;RANGES: r_parvw for lv_parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: 'I'      TO R_PARVW-SIGN, &lt;/P&gt;&lt;P&gt;      'EQ'     TO R_PARVW-OPTION, &lt;/P&gt;&lt;P&gt;      'SH'     TO R_PARVW-LOW. &lt;/P&gt;&lt;P&gt;  APPEND R_PARVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: 'I'      TO R_PARVW-SIGN, &lt;/P&gt;&lt;P&gt;      'EQ'      TO R_PARVW-OPTION, &lt;/P&gt;&lt;P&gt;      'WE'      TO R_PARVW-LOW. &lt;/P&gt;&lt;P&gt;APPEND R_PARVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from knvp&lt;/P&gt;&lt;P&gt;into table it_kvnp&lt;/P&gt;&lt;P&gt;where parvw in r_parvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 02:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2116182#M442947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T02:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2116183#M442948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare the following in ur program:&lt;/P&gt;&lt;P&gt;data :wa_test like line of s_kunnr.&lt;/P&gt;&lt;P&gt;data : t_tab type standard table of wa_test with headerline.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_kunnr into wa_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/ now ur kunnr is in wa_kunnr-low.Write logic to&lt;/P&gt;&lt;P&gt;verify whether the parvw for that kunnr is 'SH'/'WE' or not.&lt;/P&gt;&lt;P&gt;IF its there then move the&lt;/P&gt;&lt;P&gt;record to another internal table t_tab&lt;/P&gt;&lt;P&gt;ie   append wa_test to t_tab./*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/-- Now t_tab contains the list of desired kunnr s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/- If you want to validate it on screen itself create a search help for the field and&lt;/P&gt;&lt;P&gt;attach it to the selection field for Kunnr.&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 if S_kunnr is empty&lt;/P&gt;&lt;P&gt;if t_tab is initial.&lt;/P&gt;&lt;P&gt;wa_kunnr-low = '*'.&lt;/P&gt;&lt;P&gt;append wa_kunnr to t_tab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 02:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2116183#M442948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T02:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2116184#M442949</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;I do not think this is possible. Instead write your code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here,&lt;/P&gt;&lt;P&gt;- First allow user to enter any customer numner&lt;/P&gt;&lt;P&gt;- Then, at selection-screen event, filter customer based on partner function 'WE'. If you do not find any customer, give error message. So, the program won't execute further.&lt;/P&gt;&lt;P&gt;- In start-of-selection event ( it will be executed if there is any customer for partner function 'WE'. ), select data for whichever table you want for all entries in customer table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
TABLES: kna1, knvp.

CONSTANTS: c_parvw LIKE knvp-parvw VALUE 'WE'.

DATA: BEGIN OF lit_customer OCCURS 0,
        kunnr LIKE kna1-kunnr,
        parvw LIKE knvp-parvw,
      END OF lit_customer.

DATA: lit_vakpa LIKE vakpa OCCURS 0 WITH HEADER LINE.

SELECT-OPTIONS: s_kunnr FOR kna1-kunnr OBLIGATORY.

AT SELECTION-SCREEN.

  CLEAR:   lit_customer.
  REFRESH: lit_customer.

*" get all ship-to-party customer
  SELECT
        kunnr
        parvw FROM knvp
              INTO TABLE lit_customer
              WHERE kunnr IN s_kunnr AND
                    parvw = c_parvw.

  IF lit_customer[] IS INITIAL.
*"  give error message with appropriate message no and class.
    MESSAGE e001(z01) WITH 'No customer exist for selected criteria'.
  ENDIF.

START-OF-SELECTION.

*" read sales document data based on selected customer
  SELECT
        * FROM vakpa
          INTO TABLE lit_vakpa
          FOR ALL ENTRIES IN lit_customer
          WHERE kunde = lit_customer-kunnr.
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 02:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2116184#M442949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T02:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2116185#M442950</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 this case u can fill the low and high column using selection table.Goto the table rsparams and check the entries.So add all entries for your S_kunnr and append it.So that you can set the entries by default so if user leave the column empty , then also no problem..Reward all the helpfull answers..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 03:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2116185#M442950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T03:07:14Z</dc:date>
    </item>
  </channel>
</rss>

