<?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: Problem with F4 functionality in custom screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632054#M1442045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the field name in the screen.&lt;/P&gt;&lt;P&gt;The purchase organization field should be &lt;STRONG&gt;C_VKORG&lt;/STRONG&gt; as you specified in the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DYNPROFIELD            = C_VKORG&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jan 2010 10:38:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-26T10:38:57Z</dc:date>
    <item>
      <title>Problem with F4 functionality in custom screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632051#M1442042</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;There is a peculiar problem occuring with F4 functionality function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, i have defined an internal table (I_F4) with Sales Organization and Sales org Description as fields.&lt;/P&gt;&lt;P&gt;Then, in custum screen, i the 'Sales Organzation' field should have F4 option, in which the internal table I_F4 values should be listed. &lt;/P&gt;&lt;P&gt;If the user selects any of the value from F4 option, the selected value should be populated in the input box of 'Sales Organization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, in my case, the Sales Organization's description is getting populated inthe screen filed instead of Sales organzation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen filed is named as zvbap_so1-zzvkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out to overcome this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of i_f4 occurs 0,
         vkorg like tvko-vkorg,
         vtext like tvkot-vtext,
         end of i_f4.

DATA: V_VKORG1 LIKE DFIES-FIELDNAME value 'I_F4-VKORG'.
CONSTANTS: C_VKORG LIKE HELP_INFO-DYNPROFLD VALUE 'ZVBAP_SO1-ZZVKORG'.



CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
*   DDIC_STRUCTURE         = ' '
    RETFIELD               = V_VKORG1
*   PVALKEY                = ' '
   DYNPPROG               = SY-CPROG
   DYNPNR                 = SY-DYNNR
   DYNPROFIELD            = C_VKORG
*   STEPL                  = 0
   WINDOW_TITLE           = 'SEARCH HELP'
*   VALUE                  = ' '
   VALUE_ORG              = 'S'
*   MULTIPLE_CHOICE        = ' '
*   DISPLAY                = ' '
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
*   MARK_TAB               =
* IMPORTING
*   USER_RESET             =
  TABLES
    VALUE_TAB              = I_F4
*   FIELD_TAB              =
*   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.

*ELSE.
*
*READ TABLE IT_VAL INDEX 1.
*IF SY-SUBRC EQ 0.
*ENDIF.
*

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 09:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632051#M1442042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-26T09:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with F4 functionality in custom screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632052#M1442043</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;Try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: V_VKORG1 LIKE DFIES-FIELDNAME value 'VKORG'. " instead of 'I_F4-VKORG'
CONSTANTS: C_VKORG LIKE HELP_INFO-DYNPROFLD VALUE 'ZZVKORG'. " instead of 'ZVBAP_SO1-ZZVKORG'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 10:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632052#M1442043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-26T10:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with F4 functionality in custom screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632053#M1442044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maroz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton for your tip.. Its working fine now..!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now can i make the input field in such a way that the user has to enter the value only by choosing F4 option.. He should nt be allowed to enter manually or should not be allowed to edit using keyboard...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input filed in my case is on custom screen....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this...???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help in this regard....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 10:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632053#M1442044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-26T10:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with F4 functionality in custom screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632054#M1442045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the field name in the screen.&lt;/P&gt;&lt;P&gt;The purchase organization field should be &lt;STRONG&gt;C_VKORG&lt;/STRONG&gt; as you specified in the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DYNPROFIELD            = C_VKORG&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 10:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632054#M1442045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-26T10:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with F4 functionality in custom screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632055#M1442046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a module pool or report program ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For module pool check link:[http://www.saptechies.com/how-to-add-f4-help-to-a-field-on-screen-module-pool/]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In report program this works&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of i_f4 occurs 0,
         vkorg like tvko-vkorg,
         vtext like tvkot-vtext,
         end of i_f4.

parameters:p_vkorg type vkorg.

at selection-screen on value-request for p_vkorg.

i_f4-vkorg = '123'.
i_f4-vtext = 'ABC'.
append i_f4.

i_f4-vkorg = '445'.
i_f4-vtext = 'DEF'.
append i_f4.

if i_f4[] is not initial.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            RETFIELD        = 'VKORG'
            DYNPPROG        = SY-CPROG
            DYNPNR          = SY-DYNNR
            DYNPROFIELD     = 'P_VKORG'
            VALUE_ORG       = 'S'
       TABLES
            VALUE_TAB        = i_f4[] 
       EXCEPTIONS
            parameter_error    = 1
            no_values_found   = 2
            others                  = 3.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 10:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632055#M1442046</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-26T10:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with F4 functionality in custom screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632056#M1442047</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;If dialog programm: screen painter -&amp;gt; field attributes -&amp;gt; set "Foriegn key check"&lt;/P&gt;&lt;P&gt;If selection-screen: PARAMETERS vkorg type vkorg VALUE CHECK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 10:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632056#M1442047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-26T10:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with F4 functionality in custom screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632057#M1442048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the LOOP AT SCREEN statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F1 help on ABAP keyword otherwise do a search on SCN, and you will find what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 11:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-f4-functionality-in-custom-screen/m-p/6632057#M1442048</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2010-01-26T11:00:29Z</dc:date>
    </item>
  </channel>
</rss>

