<?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 F4 - Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/1762251#M329844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a selection screen with parameters option, and the option needs F4 help and should read values from a table. I have the code for it but my concern is how would it trigger. I mean at the selection screen, for the respective field when i click F4 how will the code trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2006 19:51:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-12T19:51:49Z</dc:date>
    <item>
      <title>F4 - Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/1762251#M329844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a selection screen with parameters option, and the option needs F4 help and should read values from a table. I have the code for it but my concern is how would it trigger. I mean at the selection screen, for the respective field when i click F4 how will the code trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 19:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/1762251#M329844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T19:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: F4 - Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/1762252#M329845</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;Check this example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: T005T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_t005 OCCURS 0,&lt;/P&gt;&lt;P&gt;        land1 TYPE t005-land1,&lt;/P&gt;&lt;P&gt;      END OF t_t005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 1(6) v_text FOR FIELD P_LAND1.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_land1  TYPE t005-land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 13(35) v_text1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  v_text = 'Country'.&lt;/P&gt;&lt;P&gt;  v_text1 = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  IF NOT p_land1 IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM t005t&lt;/P&gt;&lt;P&gt;           WHERE spras = sy-langu&lt;/P&gt;&lt;P&gt;           AND   land1 = p_land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      v_text1 = t005t-landx.&lt;/P&gt;&lt;P&gt;    ENDIF.&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;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH: t_t005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT land1&lt;/P&gt;&lt;P&gt;         INTO TABLE t_t005&lt;/P&gt;&lt;P&gt;         FROM t005.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           DDIC_STRUCTURE   = 'T005'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            PVALKEY          = ' '&lt;/P&gt;&lt;P&gt;            retfield         = 'LAND1'&lt;/P&gt;&lt;P&gt;            dynpprog         = sy-repid&lt;/P&gt;&lt;P&gt;            DYNPNR           = sy-dynnr&lt;/P&gt;&lt;P&gt;            dynprofield      = 'P_LAND1'&lt;/P&gt;&lt;P&gt;            callback_program = sy-repid&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_t005&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 19:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/1762252#M329845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T19:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: F4 - Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/1762253#M329846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the event &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen ON VALUE-REQUEST FOR p_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some documentation on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;With this addition, the field psel_low_high is either the name of a report parameter or of the form sel-LOW or sel-HIGH , where sel is the name of a selection criterion. The effect of this is twofold: &lt;/P&gt;&lt;P&gt;The pushbutton for F4 (Possible entries) appears beside the appropriate field. &lt;/P&gt;&lt;P&gt;When the user selects this pushbutton or presses F4 for the field, the event is executed. You can thus implement a self-programmed possible entries routine for the input/output fields of the selection screen. If the program contains such an event and the user presses F4 , the system processes this rather than displaying the check table or the fixed values of the Dictionary field - even if the report parameter or the selection option with LIKE or FOR points to a Dictionary field. You can, for example, use the CALL SCREEN statement to display a selection list of possible values. The contents of the field psel_low_high at the end of this processing block are copied to the appropriate input/output field. &lt;/P&gt;&lt;P&gt;This addition is only allowed with report-specific parameters (PARAMETERS ) or selection options (SELECT-OPTIONS ). For database-specific parameters or selection options, you can achieve the same effect by using the addition VALUE-REQUEST FOR ... with the key word PARAMETERS or SELECT-OPTIONS in the include DBxyzSEL (where xyz = name of logical database). In this case, you must program the value help in the database program SAPDBxyz &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Guru&lt;/P&gt;&lt;P&gt;reward points for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 19:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/1762253#M329846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T19:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: F4 - Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/1762254#M329847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The event is triggered when the user presses F4 on the certain field.  Here is an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

tables: t001.

data: begin of it001 occurs 0,
      bukrs type t001-bukrs,
      butxt type t001-butxt,
      ort01 type t001-ort01,
      land1 type t001-land1,
      end of it001.

select-options s_bukrs for t001-bukrs.

initialization.

  select bukrs butxt ort01 land1 into table it001 from t001.

  sort it001 ascending by bukrs.
  delete adjacent duplicates from it001 comparing bukrs.

at selection-screen on value-request for s_bukrs-low.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'BUKRS'
            dynprofield = 'S_BUKRS'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = it001.

start-of-selection.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This line says it all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen on value-request for s_bukrs-low.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means that when the user press F4 on the S_BUKRS select-option field, then the F4 help will be fired.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 19:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/1762254#M329847</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-12T19:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: F4 - Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/1762255#M329848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 20:05:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/1762255#M329848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T20:05:06Z</dc:date>
    </item>
  </channel>
</rss>

