<?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 Help with Select Option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826169#M661253</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 have this select option in the user screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: ID FOR PA0094-FPNCD.            " Emp Id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the user tries to look up the code by clicking on to the square box beside the input box it gives the user all the entries from the Field FPNCD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is there anyway i could limit it to only show certain codes when they click on the box. (In this case codes for USA only).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2007 17:26:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-05T17:26:56Z</dc:date>
    <item>
      <title>Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826169#M661253</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 have this select option in the user screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: ID FOR PA0094-FPNCD.            " Emp Id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the user tries to look up the code by clicking on to the square box beside the input box it gives the user all the entries from the Field FPNCD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is there anyway i could limit it to only show certain codes when they click on the box. (In this case codes for USA only).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 17:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826169#M661253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T17:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826170#M661254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no search help associated with this, so you will have to select the records from T509F on your own by giving MOLGA = 10 to show only entries for USA. Once you get the records you need, you will display them in AT SELECTION-SCREEN ON VALUE-REQUEST FOR id-low OR (id-high) using F4IF_INT_TABLE_VALUE_REQUEST.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 17:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826170#M661254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T17:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826171#M661255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new at this. do you have a code that i can look at or somthing..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 17:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826171#M661255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T17:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826172#M661256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check these threads which gives sample code for how to use thi sfm&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="4164051"&gt;&lt;/A&gt;&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="4142594"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 17:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826172#M661256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T17:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826173#M661257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anwarul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First pop up the internal table by selecting the required data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your case you want the data of only USA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make select query according to ur requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use the FM  &amp;lt;b&amp;gt;F4IF_INT_TABLE_VALUE_REQUEST&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the below example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables kna1.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;begin of t_values occurs 2,&lt;/P&gt;&lt;P&gt;value like kna1-begru,&lt;/P&gt;&lt;P&gt;end of t_values,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;t_return like ddshretval occurs 0 with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select-options s_begru for kna1-begru.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;at selection-screen on value-request for s_begru-low.&lt;/P&gt;&lt;P&gt;clear t_values.&lt;/P&gt;&lt;P&gt;t_values = 'PAR*'.&lt;/P&gt;&lt;P&gt;append t_values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;t_values = 'UGG'.&lt;/P&gt;&lt;P&gt;append t_values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;call function 'F4IF_INT_TABLE_VALUE_REQUEST'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;retfield = 's_begru'&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_values&lt;/P&gt;&lt;P&gt;return_tab = t_return&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;parameter_error = 1&lt;/P&gt;&lt;P&gt;no_values_found = 2&lt;/P&gt;&lt;P&gt;others = 3.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;read table t_return index 1.&lt;/P&gt;&lt;P&gt;s_begru-low = t_return-FIELDVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be helpful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points if it is helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 17:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826173#M661257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T17:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826174#M661258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so far I did this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: REGUH,       "Settlement data from payment program
        PA0001,      "HR Master Record: Infotype 0001 (Org. Assignment)
        PA0094,      "HR Master Record: Infotype 0094 (Residence Status
                     " - NA)
        PA0000,
        PA0002,
        T509F.

SELECT-OPTIONS: PERAREA FOR PA0001-WERKS,       " personnel area
                SUBAREA FOR PA0001-BTRTL,       " personnel subarea
                COSTCTR FOR PA0001-KOSTL,       " cost center
                EXPID FOR PA0094-EXPID,         " green card exp dt
                STAT FOR PA0000-STAT2,          " empl status
                s_ID FOR PA0094-FPNCD,            " Emp Id
                VRESIS FOR PA0094-RESIS,        " Residence Status
                VEXPID FOR PA0094-EXPID.        " Expire Date

Data: BEGIN OF t_Values occurs 0,
        ID LIKE T509F-IDCOD,
        IDTEX LIKE T509G-IDTEX,
        END OF t_values,

t_return like T509F occurs 0 with header line.

at selection-screen on value-request for s_ID-low.
Select IDCOD IDTEX INTO TABLE t_values from T509F Where MOLGA = '10'.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 's_ID'
value_org = 'S'
tables
value_tab = t_values
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.

if sy-subrc = 0.
read table t_return index 1.
s_ID-low = t_return-FIELDVAL.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am getting this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unknown Column name IDTEX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 19:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826174#M661258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T19:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826175#M661259</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;Please try to change to read table T509G instead of T509F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
 
at selection-screen on value-request for s_ID-low.
Select IDCOD IDTEX INTO TABLE t_values from T509G Where MOLGA = '10'.  "Change here 

... 
&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 19:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826175#M661259</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-05T19:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826176#M661260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At Selection-Screen on Value-Request for S_BWTAR-low.&lt;/P&gt;&lt;P&gt;  Select BWTAR from T149D into table i_BWTAR.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DDIC_STRUCTURE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;  retfield = 'FPNCD'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PVALKEY = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  dynpprog = sy-repid&lt;/P&gt;&lt;P&gt;  dynpnr = sy-dynnr&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  dynprofield = 'S_ID-LOW'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;STEPL = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WINDOW_TITLE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;VALUE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  value_org = 'S'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MULTIPLE_CHOICE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DISPLAY = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALLBACK_PROGRAM = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALLBACK_FORM = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MARK_TAB =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USER_RESET =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;  value_tab = t_values&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FIELD_TAB =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;RETURN_TAB =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DYNPFLD_MAPPING =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;  parameter_error = 1&lt;/P&gt;&lt;P&gt;  no_values_found = 2&lt;/P&gt;&lt;P&gt;  OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you make changes marked in bold?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 19:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826176#M661260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T19:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826177#M661261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  SELECT idcod idtex INTO TABLE t_values FROM t509g WHERE molga = '10'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 19:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826177#M661261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T19:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826178#M661262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for your help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gave appropriate points .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Anwarul Kabir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 19:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826178#M661262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T19:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826179#M661263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok changing that From F to G solved it but can any one tell me what's the difference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 19:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826179#M661263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T19:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826180#M661264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G is the text table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 19:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-select-option/m-p/2826180#M661264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T19:37:44Z</dc:date>
    </item>
  </channel>
</rss>

