<?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_FIELD_ON_VALUE_REQUEST Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-field-on-value-request-function-module/m-p/6211181#M1377698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Himanshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it before thread open. But It doesn't solved my problem. Any other ideas about this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Burak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2009 12:27:19 GMT</pubDate>
    <dc:creator>uygur_burak</dc:creator>
    <dc:date>2009-09-25T12:27:19Z</dc:date>
    <item>
      <title>F4_FIELD_ON_VALUE_REQUEST Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-field-on-value-request-function-module/m-p/6211179#M1377696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Z report's selection screen, I'm changing a parameter's search help for radio button selections. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a module which is name F4_VALUES in screen 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE F4_VALUES INPUT.
  DATA:  CFNAME(30),
         TABNAME LIKE HELP_INFO-TABNAME,
         FIELDNAME LIKE HELP_INFO-FIELDNAME,
         H_DYNFIELD TYPE HELP_INFO-DYNPROFLD.
  CLEAR: TABNAME, FIELDNAME.
  DATA : LT_RETURN LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE.

  GET CURSOR FIELD CFNAME.
  SPLIT CFNAME AT '-' INTO TABNAME FIELDNAME.

  H_DYNFIELD = FIELDNAME.

  IF RBS EQ 'X'.
    CALL FUNCTION 'F4_FIELD_ON_VALUE_REQUEST'
      EXPORTING
        TABNAME           = TABNAME
        FIELDNAME         = FIELDNAME
        SEARCHHELP        = 'ZFI_SH_BANKL'
        DYNPPROG          = SY-REPID
        DYNPNR            = SY-DYNNR
        DYNPROFIELD       = H_DYNFIELD
      TABLES
        RETURN_TAB        = LT_RETURN
      EXCEPTIONS
        FIELD_NOT_FOUND   = 1
        NO_HELP_FOR_FIELD = 2
        INCONSISTENT_HELP = 3
        NO_VALUES_FOUND   = 4
        OTHERS            = 5.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE I429(MO).
    ELSE.
      READ TABLE LT_RETURN INDEX 1.
      PBANKL = LT_RETURN-FIELDVAL.
    ENDIF.
  ELSEIF RBM EQ 'X'.
    CALL FUNCTION 'F4_FIELD_ON_VALUE_REQUEST'
      EXPORTING
        TABNAME           = TABNAME
        FIELDNAME         = FIELDNAME
        SEARCHHELP        = 'ZFI_SH_BANKL2'
        DYNPPROG          = SY-REPID
        DYNPNR            = SY-DYNNR
        DYNPROFIELD       = H_DYNFIELD
      TABLES
        RETURN_TAB        = LT_RETURN
      EXCEPTIONS
        FIELD_NOT_FOUND   = 1
        NO_HELP_FOR_FIELD = 2
        INCONSISTENT_HELP = 3
        NO_VALUES_FOUND   = 4
        OTHERS            = 5.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE I429(MO).
    ELSE.
      READ TABLE LT_RETURN INDEX 1.
      PBANKL = LT_RETURN-FIELDVAL.
    ENDIF.
  ENDIF.

ENDMODULE.                 " F4_VALUES  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is,&lt;/P&gt;&lt;P&gt;Search help ZFI_SH_BANKL and ZFI_SH_BANKL2 are both having dialog type C in SE11.&lt;/P&gt;&lt;P&gt;But when I press F4 in selection-screen this search help behaving dailog type D. Values are listed directly. I'm running test those search helps with using SE11, there is no problem. I'm seeing the entry pop-up. But in this FM values are listed directly. How can I solve this issue? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Burak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 11:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-field-on-value-request-function-module/m-p/6211179#M1377696</guid>
      <dc:creator>uygur_burak</dc:creator>
      <dc:date>2009-09-25T11:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: F4_FIELD_ON_VALUE_REQUEST Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-field-on-value-request-function-module/m-p/6211180#M1377697</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;&lt;/P&gt;&lt;P&gt;Pass the parameter 'SELECTION_SCREEN = X' and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 12:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-field-on-value-request-function-module/m-p/6211180#M1377697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T12:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: F4_FIELD_ON_VALUE_REQUEST Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-field-on-value-request-function-module/m-p/6211181#M1377698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Himanshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it before thread open. But It doesn't solved my problem. Any other ideas about this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Burak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 12:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-field-on-value-request-function-module/m-p/6211181#M1377698</guid>
      <dc:creator>uygur_burak</dc:creator>
      <dc:date>2009-09-25T12:27:19Z</dc:date>
    </item>
  </channel>
</rss>

