<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/4044778#M966825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;For this what you need to write the Query in this way......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS: S_ZBUKR FOR &amp;lt;YOUR DATABASE TABLE AND FIELD NAME&amp;gt;
SELECT ZBUKR
ZLSCH
FROM T042E
INTO TABLE GT_T042E
WHERE ZBUKR IN ZBUKR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;******************&lt;STRONG&gt;Reward Point if helpful&lt;/STRONG&gt;****************&amp;amp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 12:30:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T12:30:47Z</dc:date>
    <item>
      <title>F4 HELP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/4044776#M966823</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;thank you for sending response.&lt;/P&gt;&lt;P&gt;I AM little bit confused with the code.&lt;/P&gt;&lt;P&gt;could anyone please help to write code for my scenario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to get F4 HELP for select option zlsch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written following code.&lt;/P&gt;&lt;P&gt;&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;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 EQ '0010'.&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 = sy-dynnr&lt;/P&gt;&lt;P&gt;dynprofield = 'S_ZLSCH'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUE = '*'&lt;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RETURN_TAB = return_tab &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;&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;here i have hardcoded bukrs =0010 in select query, but i need whatever i will give in select option i need to get that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help what to do next.&lt;/P&gt;&lt;P&gt;please help if any one has code.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 12:24:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/4044776#M966823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T12:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: F4 HELP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/4044777#M966824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM DYNP_VALUES_READ to get the values of the BUKRS selection field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 12:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/4044777#M966824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T12:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: F4 HELP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/4044778#M966825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;For this what you need to write the Query in this way......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS: S_ZBUKR FOR &amp;lt;YOUR DATABASE TABLE AND FIELD NAME&amp;gt;
SELECT ZBUKR
ZLSCH
FROM T042E
INTO TABLE GT_T042E
WHERE ZBUKR IN ZBUKR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;******************&lt;STRONG&gt;Reward Point if helpful&lt;/STRONG&gt;****************&amp;amp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 12:30:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/4044778#M966825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T12:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: F4 HELP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/4044779#M966826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Giving you a snippet of code which deals with F4 help on Select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-023.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:S_PIDNUM FOR ZMST_PERMIT-ZPIDNUM ,&lt;/P&gt;&lt;P&gt;               S_ENGDSC FOR ZMST_PERMIT-ZENGDSC NO INTERVALS LOWER CASE,&lt;/P&gt;&lt;P&gt;               S_ARBDSC FOR ZMST_PERMIT-ZARBDSC NO INTERVALS LOWER CASE,&lt;/P&gt;&lt;P&gt;               S_TARIFF FOR ZMST_PERMIT-ZTARIFF NO INTERVALS,&lt;/P&gt;&lt;P&gt;               S_PERNUM FOR ZMST_PERMIT-ZPERNUM NO INTERVALS,&lt;/P&gt;&lt;P&gt;               S_ARRPRT FOR ZMST_PERMIT-ZARRPRT NO INTERVALS MATCHCODE OBJECT ZMST_PORTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER:P_PERTYP(2) TYPE C AS LISTBOX VISIBLE LENGTH 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_PIDNUM-LOW.&lt;/P&gt;&lt;P&gt;  W_NAME2 = 'S_PIDNUM-LOW'.&lt;/P&gt;&lt;P&gt;  W_NAME1 = 'ZPIDNUM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_PIDNUM-HIGH.&lt;/P&gt;&lt;P&gt;  W_NAME2 = 'S_PIDNUM-HIGH'.&lt;/P&gt;&lt;P&gt;  W_NAME1 = 'ZPIDNUM'.&lt;/P&gt;&lt;P&gt;  PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_ENGDSC-LOW.&lt;/P&gt;&lt;P&gt;  W_NAME2 = 'S_ENGDSC'.&lt;/P&gt;&lt;P&gt;  W_NAME1 = 'ZENGDSC'.&lt;/P&gt;&lt;P&gt;  PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_ARBDSC-LOW.&lt;/P&gt;&lt;P&gt;  W_NAME2 = 'S_ARBDSC'.&lt;/P&gt;&lt;P&gt;  W_NAME1 = 'ZARBDSC'.&lt;/P&gt;&lt;P&gt;  PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_TARIFF-LOW.&lt;/P&gt;&lt;P&gt;  W_NAME2 = 'S_TARIFF'.&lt;/P&gt;&lt;P&gt;  W_NAME1 = 'ZTARIFF'.&lt;/P&gt;&lt;P&gt;  PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_PERNUM-LOW.&lt;/P&gt;&lt;P&gt;  W_NAME2 = 'S_PERNUM'.&lt;/P&gt;&lt;P&gt;  W_NAME1 = 'ZPERNUM'.&lt;/P&gt;&lt;P&gt;  PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM F4_HELP USING: W_VAR TYPE DFIES-FIELDNAME&lt;/P&gt;&lt;P&gt;                    W_VAR1 TYPE HELP_INFO-DYNPROFLD .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;Fetching data from zmst_permit for F4 help on PERMIT ID No.&lt;/STRONG&gt;&lt;/DEL&gt;--&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF IT_PERMIT[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT ZPIDNUM&lt;/P&gt;&lt;P&gt;           ZENGDSC&lt;/P&gt;&lt;P&gt;           ZARBDSC&lt;/P&gt;&lt;P&gt;           ZTARIFF&lt;/P&gt;&lt;P&gt;           ZPERNUM&lt;/P&gt;&lt;P&gt;           ZARRPRT&lt;/P&gt;&lt;P&gt;           ZEFFDT&lt;/P&gt;&lt;P&gt;           ZEXPDT&lt;/P&gt;&lt;P&gt;           FROM ZMST_PERMIT INTO CORRESPONDING FIELDS OF TABLE IT_PERMIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&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        = W_NAME1 " 'ZPIDNUM'&lt;/P&gt;&lt;P&gt;      DYNPPROG        = 'ZMSTR0022'&lt;/P&gt;&lt;P&gt;      DYNPNR          = SY-DYNNR&lt;/P&gt;&lt;P&gt;      DYNPROFIELD     = W_NAME2 "'S_PIDNUM'&lt;/P&gt;&lt;P&gt;      VALUE_ORG       = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      VALUE_TAB       = IT_PERMIT&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;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&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;ENDFORM.                                             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************************************&lt;/P&gt;&lt;P&gt;I hope this will help you .&lt;/P&gt;&lt;P&gt;Help children of U.N World Food Program by rewarding  points and encourage others to answer your queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 12:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/4044779#M966826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T12:34:53Z</dc:date>
    </item>
  </channel>
</rss>

