<?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 Search Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668675#M883642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In am facing a big prob...&lt;/P&gt;&lt;P&gt;In my selection screen i have 2 input fields,&lt;/P&gt;&lt;P&gt;say, field1 and field2.. Both field1 and field2 has F4 Search helps..My requirement is, if i select field1 from F4 Search field2 also shud populate based on the selection of field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say when i selected field1 search help values populated are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1      field2&lt;/P&gt;&lt;P&gt;  a            1&lt;/P&gt;&lt;P&gt;  b            2&lt;/P&gt;&lt;P&gt;  a            5&lt;/P&gt;&lt;P&gt;  a            6 etc......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if i select a - 5 using field1 search help...field2 has to be populated with 5 along with field1 ....&lt;/P&gt;&lt;P&gt;So after selecting 'a' fields shud look like this...&lt;/P&gt;&lt;P&gt;field1 - a&lt;/P&gt;&lt;P&gt;field2 - 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way in which i can acheive this...&lt;/P&gt;&lt;P&gt;Full rewards for appropriate answers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ABAPer 007&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2008 12:04:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-15T12:04:25Z</dc:date>
    <item>
      <title>F4 Search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668675#M883642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In am facing a big prob...&lt;/P&gt;&lt;P&gt;In my selection screen i have 2 input fields,&lt;/P&gt;&lt;P&gt;say, field1 and field2.. Both field1 and field2 has F4 Search helps..My requirement is, if i select field1 from F4 Search field2 also shud populate based on the selection of field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say when i selected field1 search help values populated are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1      field2&lt;/P&gt;&lt;P&gt;  a            1&lt;/P&gt;&lt;P&gt;  b            2&lt;/P&gt;&lt;P&gt;  a            5&lt;/P&gt;&lt;P&gt;  a            6 etc......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if i select a - 5 using field1 search help...field2 has to be populated with 5 along with field1 ....&lt;/P&gt;&lt;P&gt;So after selecting 'a' fields shud look like this...&lt;/P&gt;&lt;P&gt;field1 - a&lt;/P&gt;&lt;P&gt;field2 - 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way in which i can acheive this...&lt;/P&gt;&lt;P&gt;Full rewards for appropriate answers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ABAPer 007&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 12:04:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668675#M883642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T12:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668676#M883643</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 the export parameters of ur search help. &lt;/P&gt;&lt;P&gt;if u check both the export parameters of ur serach help, when u click on the first field ,the second field also placed in the screen.&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;S.Gangi reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 12:18:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668676#M883643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T12:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668677#M883644</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;see this example&lt;/P&gt;&lt;P&gt;u need to use the function module DYNP_VALUES_UPDATE.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES:
   BEGIN OF t_t001w,
     werks       TYPE t001w-werks,
     name1       TYPE t001w-name1,
   END OF t_t001w,
   t_return_tab  TYPE ddshretval.
DATA:
    w_t001w      TYPE t_t001w,
    w_return_tab TYPE t_return_tab.
DATA:
    i_t001w      TYPE STANDARD TABLE OF t_t001w,
    i_return_tab TYPE STANDARD TABLE OF t_return_tab.
*&amp;amp;---------------------------------------------------------------------*
"SELECTION-SCREEN
*&amp;amp;---------------------------------------------------------------------*

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS :p_werks TYPE t001w-werks,
            p_name1 TYPE t001w-name1.
SELECTION-SCREEN END OF BLOCK b1.

*&amp;amp;---------------------------------------------------------------------*
" AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks
*&amp;amp;---------------------------------------------------------------------*
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.
  PERFORM f4_help_for_palant.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f4_help_for_palant
*&amp;amp;---------------------------------------------------------------------*
FORM f4_help_for_palant.

  DATA:
      w_dynpfields TYPE dynpread,
      i_dynpfields LIKE STANDARD TABLE OF dynpread.

  IF i_t001w[] IS INITIAL.
    SELECT werks name1
    FROM t001w
    INTO TABLE i_t001w.
  ENDIF.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*   DDIC_STRUCTURE         = ' '
    retfield               = 'WERKS'
*   PVALKEY                = ' '
    dynpprog               = sy-repid
    dynpnr                 = sy-dynnr
    dynprofield            = 'P_WERKS'
*   STEPL                  = 0
*   WINDOW_TITLE           =
*   VALUE                  = ' '
   value_org              = 'S'
*   MULTIPLE_CHOICE        = ' '
*   DISPLAY                = ' '
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
*   MARK_TAB               =
* IMPORTING
*   USER_RESET             =
    TABLES
      value_tab              = i_t001w
*   FIELD_TAB              =
    return_tab             = i_return_tab
*   DYNPFLD_MAPPING        =
* EXCEPTIONS
*   PARAMETER_ERROR        = 1
*   NO_VALUES_FOUND        = 2
*   OTHERS                 = 3
            .
  IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  READ TABLE i_return_tab INTO w_return_tab INDEX 1.
  p_werks = w_return_tab-fieldval.
  READ TABLE i_t001w INTO w_t001w WITH KEY werks = p_werks.
  IF sy-subrc = 0.

    w_dynpfields-fieldname    = 'P_NAME1'.
    w_dynpfields-fieldvalue   = w_t001w-name1.
    APPEND w_dynpfields TO i_dynpfields.
    CLEAR w_dynpfields.

    CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
        dyname               = sy-repid
        dynumb               = sy-dynnr
      TABLES
        dynpfields           = i_dynpfields
      EXCEPTIONS
        invalid_abapworkarea = 1
        invalid_dynprofield  = 2
        invalid_dynproname   = 3
        invalid_dynpronummer = 4
        invalid_request      = 5
        no_fielddescription  = 6
        undefind_error       = 7
        OTHERS               = 8.
    IF sy-subrc = 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.


  ENDIF.


ENDFORM.                    " f4_help_for_palant
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 12:19:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668677#M883644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T12:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668678#M883645</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 need to use At selections screen output event.&lt;/P&gt;&lt;P&gt;Under this you need to code for pupolating your own search help depending on certain values from first field.&lt;/P&gt;&lt;P&gt;There is one FM for this.... you need to check for it.... do &lt;STRONG&gt;F4&lt;/STRONG&gt;help* and you should get that FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you might also find some similar codes here on SDN itself&lt;/P&gt;&lt;P&gt;search by F4 help for custom fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddhesh S.Tawate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 12:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668678#M883645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T12:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668679#M883646</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 the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_MNR TYPE FCMNR,&lt;/P&gt;&lt;P&gt;            P_LTX TYPE FCLTX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;        MNR TYPE FCMNR,&lt;/P&gt;&lt;P&gt;        LTX TYPE FCLTX,&lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: DYNFIELDS TYPE DYNPREAD OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: RETURN TYPE TABLE OF DDSHRETVAL WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  SELECT  MNR LTX INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;           FROM T247 where spras = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MNR.&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        = 'MNR'&lt;/P&gt;&lt;P&gt;      DYNPPROG        = SY-CPROG&lt;/P&gt;&lt;P&gt;      DYNPNR          = SY-DYNNR&lt;/P&gt;&lt;P&gt;      DYNPROFIELD     = 'P_MNR'&lt;/P&gt;&lt;P&gt;      VALUE_ORG       = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      VALUE_TAB       = ITAB&lt;/P&gt;&lt;P&gt;      RETURN_TAB      = RETURN&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;  REFRESH DYNFIELDS.&lt;/P&gt;&lt;P&gt;  READ TABLE RETURN WITH KEY FIELDNAME = 'P_MNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add it back to the dynpro.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DYNFIELDS-FIELDNAME = RETURN-RETFIELD.&lt;/P&gt;&lt;P&gt;  DYNFIELDS-FIELDVALUE =  RETURN-FIELDVAL.&lt;/P&gt;&lt;P&gt;  APPEND DYNFIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the company code from db and add to dynpro&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: XT247 TYPE T247.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR XT247.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * INTO XT247&lt;/P&gt;&lt;P&gt;         FROM T247&lt;/P&gt;&lt;P&gt;        WHERE MNR = RETURN-FIELDVAL and spras = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DYNFIELDS-FIELDNAME = 'P_LTX'.&lt;/P&gt;&lt;P&gt;  DYNFIELDS-FIELDVALUE = XT247-LTX.&lt;/P&gt;&lt;P&gt;  APPEND DYNFIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the dynpro values.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_UPDATE'&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 = DYNFIELDS&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS     = 8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 12:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668679#M883646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T12:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668680#M883647</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;See my requirement is different i think from ur code..which is using DYNP_VALUES_UPDATE not work here...Yes i have to use this definitely to update the second field..but for this i have to get the corresponding data in 2nd field..i will xplain it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bharat / Velangini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ur sample code is different from my requirement...in ur code F4 Help is for plant code and u have to fill plant name accordingly....so this is an easy job since for a plant code thr will be only one plant name..just like one phone no will only belong to one particular person so identification is easy....please correct me if i am wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my requirement is &lt;/P&gt;&lt;P&gt;one material say M1 can belong to say 7 plants..if user selects from f4 &lt;/P&gt;&lt;P&gt;M1 and  3rd plant i shud get tht coresponding plant also...i am using this FM &lt;/P&gt;&lt;P&gt;'F4IF_INT_TABLE_VALUE_REQUEST' here as tables parameter i am passing both material and plant...but since export parameter only has material info like DYNNR, Field name etc..in RETURN_TAB i am only getting M1 from it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also,,,&lt;/P&gt;&lt;P&gt;Hi Gangi reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u r refering to table level search help rite....table level we can set the export and import parameters for the fields...wherein u select one material and plant for material search help values will automatically populate rite..But sorry i cant go as of now table level...i know tht will work out..but i need know any FM is thr wherein we can get both from one.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards will be done for appropriate answers.....&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ABAPer 007&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 04:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search-help/m-p/3668680#M883647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T04:37:51Z</dc:date>
    </item>
  </channel>
</rss>

