<?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: Dynamic Search help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-search-help/m-p/5052855#M1174531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Supriya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please [search|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4967368"&gt;&lt;/A&gt;] the SCN before you post the question. There are lot of threads avaliable with this subject.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2009 09:54:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-14T09:54:51Z</dc:date>
    <item>
      <title>Dynamic Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-search-help/m-p/5052853#M1174529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got one requirement. I have 3 fields on selection screen. Based on the values entered by user in first 2 fields, I want o provide the search help in third field.&lt;/P&gt;&lt;P&gt;for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields are plant , storage location and material.&lt;/P&gt;&lt;P&gt;Then only for the entered plant and entered storage location , the material numbers should be displayed in the F4 help of the third field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help.&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;Supriya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 09:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-search-help/m-p/5052853#M1174529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T09:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-search-help/m-p/5052854#M1174530</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;This can be done using the function modules DYNP_VALUES_READ (for reading the values from the screen) and then use the function module F4IF_INT_TABLE_VALUE_REQUEST to display the values for the third field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_lifnr TYPE lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_werks LIKE mard-werks,&lt;/P&gt;&lt;P&gt;            p_lgort LIKE mard-lgort,&lt;/P&gt;&lt;P&gt;            p_matnr LIKE mard-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_mard,&lt;/P&gt;&lt;P&gt;        matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;        werks TYPE werks_d,&lt;/P&gt;&lt;P&gt;        lgort TYPE lgort_d,&lt;/P&gt;&lt;P&gt;        END OF ty_mard.&lt;/P&gt;&lt;P&gt;DATA : gt_help TYPE TABLE OF ty_mard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.&lt;/P&gt;&lt;P&gt;  DATA : it_dynp TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH it_dynp.&lt;/P&gt;&lt;P&gt;  it_dynp-fieldname = 'P_WERKS'.&lt;/P&gt;&lt;P&gt;  APPEND it_dynp.&lt;/P&gt;&lt;P&gt;  it_dynp-fieldname = 'P_LGORT'.&lt;/P&gt;&lt;P&gt;  APPEND it_dynp.&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               = sy-cprog&lt;/P&gt;&lt;P&gt;      dynumb               = sy-dynnr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields           = it_dynp&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      invalid_abapworkarea = 0&lt;/P&gt;&lt;P&gt;      invalid_dynprofield  = 0&lt;/P&gt;&lt;P&gt;      invalid_dynproname   = 0&lt;/P&gt;&lt;P&gt;      invalid_dynpronummer = 0&lt;/P&gt;&lt;P&gt;      invalid_request      = 0&lt;/P&gt;&lt;P&gt;      no_fielddescription  = 0&lt;/P&gt;&lt;P&gt;      invalid_parameter    = 0&lt;/P&gt;&lt;P&gt;      undefind_error       = 0&lt;/P&gt;&lt;P&gt;      double_conversion    = 0&lt;/P&gt;&lt;P&gt;      OTHERS               = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_dynp WITH KEY fieldname = 'P_WERKS'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    p_werks = it_dynp-FIELDVALUE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  READ TABLE it_dynp WITH KEY fieldname = 'P_LGORT'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    p_lgort = it_dynp-FIELDVALUE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM mard&lt;/P&gt;&lt;P&gt;           INTO CORRESPONDING FIELDS OF TABLE gt_help&lt;/P&gt;&lt;P&gt;  WHERE werks = p_werks&lt;/P&gt;&lt;P&gt;  AND lgort = p_lgort.&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_MATNR'&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_MATNR'&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_help&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;Edited by: Krishna Adabala on Jan 14, 2009 11:05 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 09:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-search-help/m-p/5052854#M1174530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T09:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-search-help/m-p/5052855#M1174531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Supriya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please [search|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4967368"&gt;&lt;/A&gt;] the SCN before you post the question. There are lot of threads avaliable with this subject.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 09:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-search-help/m-p/5052855#M1174531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T09:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-search-help/m-p/5052856#M1174532</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;when user presses F$ for third field ..read other two field using table index and acccordingly select the data for third field from table and put that in value table and use in &lt;/P&gt;&lt;P&gt;FM : &lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 09:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-search-help/m-p/5052856#M1174532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T09:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-search-help/m-p/5052857#M1174533</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;On third field use AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then write a select query for fetching materials into internal table based on plant n storage location from required table. Then pass this internal table to F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;&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;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 09:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-search-help/m-p/5052857#M1174533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T09:58:10Z</dc:date>
    </item>
  </channel>
</rss>

