<?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: f4 help for select option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-option/m-p/4017937#M960040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you give two company codes (not a range), then your select-options s_bukrs table will contain two lines, but you are only taking the first one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2008 09:51:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-24T09:51:16Z</dc:date>
    <item>
      <title>f4 help for select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-option/m-p/4017935#M960038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ALL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to get f4 help for zlsch field, if i give only one company code its working fine , if u give 2 company codes its not working,even though i kept s_bukrs-high code.&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;P&gt;its urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_bukrs  FOR lfb1-bukrs  no intervals OBLIGATORY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_zlsch-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : l_dyname type standard table of DYNPREAD with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_dyname-FIELDNAME = 'S_BUKRS-LOW'.&lt;/P&gt;&lt;P&gt;append l_dyname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_dyname-FIELDNAME = 'S_BUKRS-HIGH'.&lt;/P&gt;&lt;P&gt;append l_dyname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;dyname = sy-cprog&lt;/P&gt;&lt;P&gt;dynumb = sy-dynnr&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;dynpfields = l_dyname&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;&lt;/P&gt;&lt;P&gt;&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;refresh s_bukrs.&lt;/P&gt;&lt;P&gt;loop at l_dyname.&lt;/P&gt;&lt;P&gt;s_bukrs-low = l_dyname-FIELDVALUE.&lt;/P&gt;&lt;P&gt;s_bukrs-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;s_bukrs-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;append s_bukrs.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT zbukr&lt;/P&gt;&lt;P&gt;         zlsch&lt;/P&gt;&lt;P&gt;         FROM t042e&lt;/P&gt;&lt;P&gt;         INTO TABLE gt_t042e&lt;/P&gt;&lt;P&gt;         WHERE zbukr IN s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;P&gt;      retfield               ='ZLSCH'&lt;/P&gt;&lt;P&gt;     dynpprog               = sy-cprog&lt;/P&gt;&lt;P&gt;     dynpnr                 = '1000' "sy-dynnr&lt;/P&gt;&lt;P&gt;     dynprofield            = 'S_ZLSCH'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&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;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab              = gt_t042e&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN_TAB             = return_tab&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 09:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-option/m-p/4017935#M960038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T09:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: f4 help for select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-option/m-p/4017936#M960039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In the declaration of the Select Option, remove NO INTERVALS and try.&lt;/P&gt;&lt;P&gt;Reward, if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 09:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-option/m-p/4017936#M960039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T09:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: f4 help for select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-option/m-p/4017937#M960040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you give two company codes (not a range), then your select-options s_bukrs table will contain two lines, but you are only taking the first one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 09:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-option/m-p/4017937#M960040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T09:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: f4 help for select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-option/m-p/4017938#M960041</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 will not get executed for s_zlsch-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put the code in which you are using the function module for fetching the values in a PERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call this perform twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once for  s_zlsch-low and once for s_zlsch-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_zlsch-low.

perform &amp;lt;perfname&amp;gt;.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_zlsch-high.

perform &amp;lt;perfname&amp;gt;.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 09:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-option/m-p/4017938#M960041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T09:52:29Z</dc:date>
    </item>
  </channel>
</rss>

