<?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/888921#M53013</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;Please see the below code for a similar requirement. here there are two fields namely p_devloc and p_inst. if the user enters the p_devloc and presses F4 on p_inst then the relevant values for p_inst pertaining to p_devloc should appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  i_dynpread TYPE TABLE OF dynpread ,&lt;/P&gt;&lt;P&gt;       struct_dynp TYPE dynpread ,&lt;/P&gt;&lt;P&gt;       ws_c_repid TYPE sy-repid,&lt;/P&gt;&lt;P&gt;       ws_dynprofield TYPE help_info-dynprofld,&lt;/P&gt;&lt;P&gt;       ws_c_dynnr TYPE sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of i_tab occurs 0,&lt;/P&gt;&lt;P&gt;       anlage like eanld-anlage,&lt;/P&gt;&lt;P&gt;       devloc like egpld-devloc,&lt;/P&gt;&lt;P&gt;       end of i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:&lt;/P&gt;&lt;P&gt;     c_retfield    TYPE dfies-fieldname VALUE 'STRING',&lt;/P&gt;&lt;P&gt;     c_valueorg    TYPE ddbool_d VALUE 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : begin of block bl1 with frame title text-000.&lt;/P&gt;&lt;P&gt;parameters : p_devloc like egpld-devloc,&lt;/P&gt;&lt;P&gt;             p_inst like eanld-anlage.&lt;/P&gt;&lt;P&gt;selection-screen end of block bl1.&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 p_inst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH : i_tab.&lt;/P&gt;&lt;P&gt;  ws_c_repid = sy-repid.&lt;/P&gt;&lt;P&gt;  ws_c_dynnr = sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    struct_dynp-fieldname = 'P_DEVLOC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND struct_dynp to i_dynpread.&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               = ws_c_repid&lt;/P&gt;&lt;P&gt;        dynumb               = ws_c_dynnr&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        dynpfields           = i_dynpread&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;        invalid_dynprofield  = 2&lt;/P&gt;&lt;P&gt;        invalid_dynproname   = 3&lt;/P&gt;&lt;P&gt;        invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;        invalid_request      = 5&lt;/P&gt;&lt;P&gt;        no_fielddescription  = 6&lt;/P&gt;&lt;P&gt;        invalid_parameter    = 7&lt;/P&gt;&lt;P&gt;        undefind_error       = 8&lt;/P&gt;&lt;P&gt;        double_conversion    = 9&lt;/P&gt;&lt;P&gt;        stepl_not_found      = 10&lt;/P&gt;&lt;P&gt;        OTHERS               = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table i_dynpread into struct_dynp with key fieldname = 'P_DEVLOC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select tplnr&lt;/P&gt;&lt;P&gt;         zzinstall_num&lt;/P&gt;&lt;P&gt;    into table i_tab&lt;/P&gt;&lt;P&gt;    from iflot&lt;/P&gt;&lt;P&gt;   where tplnr = p_devloc.&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        = 'P_INST'&lt;/P&gt;&lt;P&gt;            dynpprog        = ws_c_repid&lt;/P&gt;&lt;P&gt;            dynpnr          = ws_c_dynnr&lt;/P&gt;&lt;P&gt;            dynprofield     = 'VAL3'&lt;/P&gt;&lt;P&gt;            value_org       = 'S'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            value_tab       = i_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;  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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2005 14:56:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-20T14:56:52Z</dc:date>
    <item>
      <title>F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/888919#M53011</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;&lt;/P&gt;&lt;P&gt;     i have a requirement like i have a plant and MRP controller in the selection screen. if the user enters a plant and if the user presses F4 on MRP controller then the user has to see all MRP controllers related to the plant entered in the selection screen only. Any input on this is appreciated. I Know the table related to this is T024D. Please give an example code if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in anticipation.&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Poorna Ravichandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2005 14:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/888919#M53011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-20T14:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/888920#M53012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually the following program works for me.  If you put a plant in,  and do F4 on the MRP controller, then you only get the values for that plant.  Remove the plant, you will get all the values for all plants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


parameters: p_werks type marc-werks,
            p_dispo type marc-dispo.

&lt;/CODE&gt;&lt;/PRE&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>Mon, 20 Jun 2005 14:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/888920#M53012</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-20T14:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/888921#M53013</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;Please see the below code for a similar requirement. here there are two fields namely p_devloc and p_inst. if the user enters the p_devloc and presses F4 on p_inst then the relevant values for p_inst pertaining to p_devloc should appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  i_dynpread TYPE TABLE OF dynpread ,&lt;/P&gt;&lt;P&gt;       struct_dynp TYPE dynpread ,&lt;/P&gt;&lt;P&gt;       ws_c_repid TYPE sy-repid,&lt;/P&gt;&lt;P&gt;       ws_dynprofield TYPE help_info-dynprofld,&lt;/P&gt;&lt;P&gt;       ws_c_dynnr TYPE sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of i_tab occurs 0,&lt;/P&gt;&lt;P&gt;       anlage like eanld-anlage,&lt;/P&gt;&lt;P&gt;       devloc like egpld-devloc,&lt;/P&gt;&lt;P&gt;       end of i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:&lt;/P&gt;&lt;P&gt;     c_retfield    TYPE dfies-fieldname VALUE 'STRING',&lt;/P&gt;&lt;P&gt;     c_valueorg    TYPE ddbool_d VALUE 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : begin of block bl1 with frame title text-000.&lt;/P&gt;&lt;P&gt;parameters : p_devloc like egpld-devloc,&lt;/P&gt;&lt;P&gt;             p_inst like eanld-anlage.&lt;/P&gt;&lt;P&gt;selection-screen end of block bl1.&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 p_inst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH : i_tab.&lt;/P&gt;&lt;P&gt;  ws_c_repid = sy-repid.&lt;/P&gt;&lt;P&gt;  ws_c_dynnr = sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    struct_dynp-fieldname = 'P_DEVLOC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND struct_dynp to i_dynpread.&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               = ws_c_repid&lt;/P&gt;&lt;P&gt;        dynumb               = ws_c_dynnr&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        dynpfields           = i_dynpread&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;        invalid_dynprofield  = 2&lt;/P&gt;&lt;P&gt;        invalid_dynproname   = 3&lt;/P&gt;&lt;P&gt;        invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;        invalid_request      = 5&lt;/P&gt;&lt;P&gt;        no_fielddescription  = 6&lt;/P&gt;&lt;P&gt;        invalid_parameter    = 7&lt;/P&gt;&lt;P&gt;        undefind_error       = 8&lt;/P&gt;&lt;P&gt;        double_conversion    = 9&lt;/P&gt;&lt;P&gt;        stepl_not_found      = 10&lt;/P&gt;&lt;P&gt;        OTHERS               = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table i_dynpread into struct_dynp with key fieldname = 'P_DEVLOC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select tplnr&lt;/P&gt;&lt;P&gt;         zzinstall_num&lt;/P&gt;&lt;P&gt;    into table i_tab&lt;/P&gt;&lt;P&gt;    from iflot&lt;/P&gt;&lt;P&gt;   where tplnr = p_devloc.&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        = 'P_INST'&lt;/P&gt;&lt;P&gt;            dynpprog        = ws_c_repid&lt;/P&gt;&lt;P&gt;            dynpnr          = ws_c_dynnr&lt;/P&gt;&lt;P&gt;            dynprofield     = 'VAL3'&lt;/P&gt;&lt;P&gt;            value_org       = 'S'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            value_tab       = i_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;  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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2005 14:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/888921#M53013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-20T14:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/888922#M53014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks jagath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; got the solution.&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;P&gt;Regards poorna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2005 15:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/888922#M53014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-20T15:18:08Z</dc:date>
    </item>
  </channel>
</rss>

