<?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: regarding selction screen values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selction-screen-values/m-p/3254028#M777110</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;as per my understanding you have to provide the F4 help for airport based on the country code entered, if my guess is correct follow the below procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the code in "at selection-screen on value-request for airport"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) use the function module "DYNP_VALUES_READ" function module to capture the country entered on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) select the airports based on the country code entered.&lt;/P&gt;&lt;P&gt;3) us the function moduel "F4IF_INT_TABLE_VALUE_REQUEST" to display the airport list in list of possible window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the below code you will understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i am taking material and material description, based on the entered material i am fetching the material description on 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;TABLES: mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;     BEGIN OF x_matnr OCCURS 0,&lt;/P&gt;&lt;P&gt;           matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;           maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;     END   OF x_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;     l_dynprofld      TYPE help_info-dynprofld,&lt;/P&gt;&lt;P&gt;     l_matnr(7) TYPE c VALUE 'P_MATNR',&lt;/P&gt;&lt;P&gt;     l_prog     TYPE sy-repid,&lt;/P&gt;&lt;P&gt;     l_dynnr    TYPE sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;            p_maktx like makt-maktx.&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_maktx.&lt;/P&gt;&lt;P&gt;   PERFORM f_get_values.&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 f_get_values.&lt;/P&gt;&lt;P&gt;DATA: i_return LIKE ddshretval OCCURS 0,&lt;/P&gt;&lt;P&gt;      i_dynpfields like DYNPREAD occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      l_repid like sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      l_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_dynpfields-fieldname = 'P_MATNR'.&lt;/P&gt;&lt;P&gt;      APPEND I_DYNPFIELDS.&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   = l_repid&lt;/P&gt;&lt;P&gt;      dynumb   = '1000'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      dynpfields  = i_dynpfields .&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     READ TABLE I_DYNPfields INDEX 1.&lt;/P&gt;&lt;P&gt;     IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'CONVERSION_EXIT_MATN2_INPUT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            input    = I_DYNPfields-FIELDVALUE&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;           OUTPUT    = I_DYNPfields-FIELDVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        select matnr maktx from makt into table x_matnr&lt;/P&gt;&lt;P&gt;               where matnr = I_DYNPfields-FIELDVALUE.&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;IF NOT X_MATNR[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_prog = sy-repid.&lt;/P&gt;&lt;P&gt;  l_dynnr = sy-dynnr.&lt;/P&gt;&lt;P&gt;  l_dynprofld = l_matnr.&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               = 'MAKTX'&lt;/P&gt;&lt;P&gt;   dynpprog               = l_prog&lt;/P&gt;&lt;P&gt;   dynpnr                 = l_dynnr&lt;/P&gt;&lt;P&gt;   dynprofield            = l_dynprofld&lt;/P&gt;&lt;P&gt;   value_org              = 'S'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    value_tab              = x_matnr&lt;/P&gt;&lt;P&gt;   return_tab             = i_return.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " F_GET_VALUES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&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;Sreeram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sreeram Prasad on Jan 3, 2008 11:38 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sreeram Prasad on Jan 3, 2008 11:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2008 10:37:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-03T10:37:22Z</dc:date>
    <item>
      <title>regarding selction screen values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selction-screen-values/m-p/3254025#M777107</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;In my report there are two parameter &lt;/P&gt;&lt;P&gt; 1. country&lt;/P&gt;&lt;P&gt; 2.airport code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i enetred country , then the airport will display the corresponding airports and description only,&lt;/P&gt;&lt;P&gt;there is a table where i get the country , airports and descriptions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how to solve this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 09:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selction-screen-values/m-p/3254025#M777107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T09:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: regarding selction screen values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selction-screen-values/m-p/3254026#M777108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select first all the details into a table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pass that into 'value_tab' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field name&lt;/P&gt;&lt;P&gt;program name &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and value_org = 'S' &lt;/P&gt;&lt;P&gt;should also be declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Talwinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 10:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selction-screen-values/m-p/3254026#M777108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T10:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: regarding selction screen values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selction-screen-values/m-p/3254027#M777109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Event&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR  Country.&lt;/P&gt;&lt;P&gt;Fill table with Airport and Description based on country selected.&lt;/P&gt;&lt;P&gt;To fill F4 help for Airport, Use FM &lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;retfield               = 'AIRPORT'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;value_tab              = Itab&lt;/P&gt;&lt;P&gt;RETURN_TAB             = it_return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 10:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selction-screen-values/m-p/3254027#M777109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T10:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: regarding selction screen values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selction-screen-values/m-p/3254028#M777110</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;as per my understanding you have to provide the F4 help for airport based on the country code entered, if my guess is correct follow the below procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the code in "at selection-screen on value-request for airport"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) use the function module "DYNP_VALUES_READ" function module to capture the country entered on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) select the airports based on the country code entered.&lt;/P&gt;&lt;P&gt;3) us the function moduel "F4IF_INT_TABLE_VALUE_REQUEST" to display the airport list in list of possible window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the below code you will understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i am taking material and material description, based on the entered material i am fetching the material description on 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;TABLES: mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;     BEGIN OF x_matnr OCCURS 0,&lt;/P&gt;&lt;P&gt;           matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;           maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;     END   OF x_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;     l_dynprofld      TYPE help_info-dynprofld,&lt;/P&gt;&lt;P&gt;     l_matnr(7) TYPE c VALUE 'P_MATNR',&lt;/P&gt;&lt;P&gt;     l_prog     TYPE sy-repid,&lt;/P&gt;&lt;P&gt;     l_dynnr    TYPE sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;            p_maktx like makt-maktx.&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_maktx.&lt;/P&gt;&lt;P&gt;   PERFORM f_get_values.&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 f_get_values.&lt;/P&gt;&lt;P&gt;DATA: i_return LIKE ddshretval OCCURS 0,&lt;/P&gt;&lt;P&gt;      i_dynpfields like DYNPREAD occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      l_repid like sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      l_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_dynpfields-fieldname = 'P_MATNR'.&lt;/P&gt;&lt;P&gt;      APPEND I_DYNPFIELDS.&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   = l_repid&lt;/P&gt;&lt;P&gt;      dynumb   = '1000'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      dynpfields  = i_dynpfields .&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     READ TABLE I_DYNPfields INDEX 1.&lt;/P&gt;&lt;P&gt;     IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'CONVERSION_EXIT_MATN2_INPUT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            input    = I_DYNPfields-FIELDVALUE&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;           OUTPUT    = I_DYNPfields-FIELDVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        select matnr maktx from makt into table x_matnr&lt;/P&gt;&lt;P&gt;               where matnr = I_DYNPfields-FIELDVALUE.&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;IF NOT X_MATNR[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_prog = sy-repid.&lt;/P&gt;&lt;P&gt;  l_dynnr = sy-dynnr.&lt;/P&gt;&lt;P&gt;  l_dynprofld = l_matnr.&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               = 'MAKTX'&lt;/P&gt;&lt;P&gt;   dynpprog               = l_prog&lt;/P&gt;&lt;P&gt;   dynpnr                 = l_dynnr&lt;/P&gt;&lt;P&gt;   dynprofield            = l_dynprofld&lt;/P&gt;&lt;P&gt;   value_org              = 'S'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    value_tab              = x_matnr&lt;/P&gt;&lt;P&gt;   return_tab             = i_return.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " F_GET_VALUES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&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;Sreeram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sreeram Prasad on Jan 3, 2008 11:38 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sreeram Prasad on Jan 3, 2008 11:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 10:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selction-screen-values/m-p/3254028#M777110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T10:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: regarding selction screen values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selction-screen-values/m-p/3254029#M777111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this URL:&lt;/P&gt;&lt;P&gt;&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="4636575"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 10:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selction-screen-values/m-p/3254029#M777111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T10:41:28Z</dc:date>
    </item>
  </channel>
</rss>

