<?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: problem in select options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644809#M286976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  use At selection screen on value request statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Oct 2006 16:57:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-25T16:57:49Z</dc:date>
    <item>
      <title>problem in select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644808#M286975</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 am using the select options statment,if i want to bring the data in F4 for MARD-LGPBE how to bring the values,can any body tell me which function module we can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 16:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644808#M286975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T16:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644809#M286976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  use At selection screen on value request statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 16:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644809#M286976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T16:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644810#M286977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this link. It helps you a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Chandra.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Please reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 16:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644810#M286977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T16:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644811#M286978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This field appears to be free text and that you can put anything you want in it in the material master, that said, this makes for a performance problem when you are trying to do F4 help.  You have to read the entire MARD table and get all of the bins and then show them in the F4.  This code below will do what you want, but again, there is a performance problem.  When the program starts, it gets all of the bins for the F4 help. So you may see a delay in the selection screen being thrown, in my system it takes about 7 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zrich_0001 .

tables: mard.


data: begin of imard occurs 0,
      lgpbe type MARD-LGPBE,
      end of imard.

select-options s_lgpbe for mard-lgpbe.

initialization.

  select lgpbe into table imard from mard.

  sort imard ascending by lgpbe.
  delete adjacent duplicates from imard comparing lgpbe.


at selection-screen on value-request for s_lgpbe-low.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'LGPBE'
            dynprofield = 'S_LGPBE'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = imard.

start-of-selection.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 17:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644811#M286978</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-25T17:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644812#M286979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;You can use below func module to get F4 help on select option field.&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;F4IF_INT_TABLE_VALUE_REQUEST F4&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;It returns the values selected in an internal table. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Check this example code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*GLOBAL DECLARATION&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declare your internal table say ITAB_VALUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate ITAB_VALUE with values yuo want for F4 help&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*CODE TO WRITTEN IN  EVENT&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AT SELECTION-SCREEN VALUE-REQUEST ON S_OPTION-LOW  &amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AT SELECTION-SCREEN VALUE-REQUEST ON S_OPTION-HIGH &lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&amp;lt;i&amp;gt;*  Name of field in internal table for which F4 help will return value (in caps)&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;            retfield        = 'FIELD' &lt;/P&gt;&lt;P&gt;            value_org       = 'S'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            value_tab       = ITAB_VALUE &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_option-low = t_return-fieldval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you..let me know if u have ny prob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy SAP.&lt;/P&gt;&lt;P&gt;Pankaj Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 17:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644812#M286979</guid>
      <dc:creator>messier31</dc:creator>
      <dc:date>2006-10-25T17:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644813#M286980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about creating a search-help for this field ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 17:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-options/m-p/1644813#M286980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T17:32:33Z</dc:date>
    </item>
  </channel>
</rss>

