<?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 options based on parameter value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817578#M1588665</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;you can refer the below thread.&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="9944476"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Syed ibrahim . G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2011 08:22:11 GMT</pubDate>
    <dc:creator>syed_ibrahim5</dc:creator>
    <dc:date>2011-05-17T08:22:11Z</dc:date>
    <item>
      <title>f4 help for select options based on parameter value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817577#M1588664</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;I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's,&lt;/P&gt;&lt;P&gt;Girija&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 06:31:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817577#M1588664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-17T06:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: f4 help for select options based on parameter value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817578#M1588665</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;you can refer the below thread.&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="9944476"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Syed ibrahim . G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 08:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817578#M1588665</guid>
      <dc:creator>syed_ibrahim5</dc:creator>
      <dc:date>2011-05-17T08:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: f4 help for select options based on parameter value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817579#M1588666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have populated the value into table dynpread like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_dynpread-fieldname = 'HRP1001-PLVAR'.&lt;/P&gt;&lt;P&gt;  ls_dynpread-FIELDVALUE = '01'.&lt;/P&gt;&lt;P&gt;  APPEND ls_dynpread TO lt_dynpread.&lt;/P&gt;&lt;P&gt;   lv_syrepid = sy-repid.&lt;/P&gt;&lt;P&gt;   lv_dynnr = sy-dynnr.&lt;/P&gt;&lt;P&gt;*calld FM &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               = lv_syrepid&lt;/P&gt;&lt;P&gt;      dynumb               = lv_dynnr&lt;/P&gt;&lt;P&gt;        translate_to_upper = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields           = lt_dynpread.&lt;/P&gt;&lt;P&gt;I m getting error as Invalid_dynprofield&lt;/P&gt;&lt;P&gt;can u please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 08:40:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817579#M1588666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-17T08:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: f4 help for select options based on parameter value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817580#M1588667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use &lt;STRONG&gt;DYNP_VALUES_READ&lt;/STRONG&gt; function module you need to uncomment the exceptions  and must use them&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'DYNP_VALUES_READ'
  exporting
    dyname                               = sy-repid
    dynumb                               = sy-dynnr
  tables
    dynpfields                           = value
  EXCEPTIONS         " These Exceptions you must use otherwise you will get the error as you mentioned
   INVALID_ABAPWORKAREA                 = 1
   INVALID_DYNPROFIELD                  = 2
   INVALID_DYNPRONAME                   = 3
   INVALID_DYNPRONUMMER                 = 4
   INVALID_REQUEST                      = 5
   NO_FIELDDESCRIPTION                  = 6
   INVALID_PARAMETER                    = 7
   UNDEFIND_ERROR                       = 8
   DOUBLE_CONVERSION                    = 9
   STEPL_NOT_FOUND                      = 10
   OTHERS                               = 11&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 08:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817580#M1588667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-17T08:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: f4 help for select options based on parameter value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817581#M1588668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I uncommented it but if an exception is raised the FM is not executed right..?? so the values are not fetched how to make the FM work..??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 09:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817581#M1588668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-17T09:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: f4 help for select options based on parameter value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817582#M1588669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Girija,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your requirement use FM &lt;STRONG&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/STRONG&gt;. I have created such a scenario for your better understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the employee list are being selected on demanding F4 help depending upon the payroll area given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Type declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;TYPES : BEGIN OF ty_f4pernr,&lt;/P&gt;&lt;P&gt;          pernr TYPE p_pernr,&lt;/P&gt;&lt;P&gt;          vorna TYPE pa0002-vorna,&lt;/P&gt;&lt;P&gt;          nachn TYPE pa0002-nachn,&lt;/P&gt;&lt;P&gt;          abkrs TYPE pa0001-abkrs,&lt;/P&gt;&lt;P&gt;        END OF ty_f4pernr.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Internal table declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA : int_f4pernr TYPE STANDARD TABLE OF ty_f4pernr.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Internal table memory clear&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;REFRESH : int_f4pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Selection Screen Declaration&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Begin of block with frame name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK a1.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_abkrs TYPE abkrs OBLIGATORY.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Select option declaration of pernr field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS s_pernr FOR pa0001-pernr.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;End of block&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK a1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_pernr-low.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Calling the perform method when the low field of select option pernr's f4 is clicked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM pernr_f4help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_pernr-high.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Calling the perform method when the high field of select option pernr's f4 is clicked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM pernr_f4help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM pernr_f4help .&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Retrieve pernr and corressponding first, last and middle name from pa0002 and pa0001 infotype using inner join&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  SELECT pa0001~pernr&lt;/P&gt;&lt;P&gt;         pa0002~vorna&lt;/P&gt;&lt;P&gt;         pa0002~nachn&lt;/P&gt;&lt;P&gt;         pa0001~abkrs&lt;/P&gt;&lt;P&gt;    INTO TABLE int_f4pernr&lt;/P&gt;&lt;P&gt;    FROM pa0001&lt;/P&gt;&lt;P&gt;    INNER JOIN pa0002&lt;/P&gt;&lt;P&gt;    ON pa0001&lt;SUB&gt;pernr EQ pa0002&lt;/SUB&gt;pernr&lt;/P&gt;&lt;P&gt;    WHERE pa0001~abkrs = p_abkrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Calling F4 help function module to assign that retrieved value for that select option pernr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&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        = 'PERNR'&lt;/P&gt;&lt;P&gt;      dynpprog        = sy-repid    " Program name&lt;/P&gt;&lt;P&gt;      dynpnr          = sy-dynnr    " Screen number&lt;/P&gt;&lt;P&gt;      dynprofield     = 'S_PERNR'   " F4 help need 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       = int_f4pernr " F4 help values&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;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So on entering the payroll area and pressing F4 on the select-options for employee number, you get the list of ONLY those employees who are present in the given payroll area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this will be of your much help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;Koushik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 09:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-select-options-based-on-parameter-value/m-p/7817582#M1588669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-17T09:24:12Z</dc:date>
    </item>
  </channel>
</rss>

