<?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 Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933143#M61315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am giving the sample code I hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vkorg vtweg FROM ztable  INTO  (itab-vkorg, itab-vtweg)&lt;/P&gt;&lt;P&gt;  WHERE ..............&lt;/P&gt;&lt;P&gt;  APPEND itab.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &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        = 'vtweg'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             dynpprog        = w_progname&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             dynpnr          = w_scr_num&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             dynprofield     = 'itab-vtweg'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              value_org       = 'S'&lt;/P&gt;&lt;P&gt;              display         = 'F'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             stepl           = g_stepl&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              value_tab       = itab&lt;/P&gt;&lt;P&gt;              return_tab      = return_values&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;    ELSE .&lt;/P&gt;&lt;P&gt;  hide: itab-vkorg.&lt;/P&gt;&lt;P&gt;  modify table itab transporting vkorg vtweg.&lt;/P&gt;&lt;P&gt; I hope it will help you.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SUB&gt;CHEERS&lt;/SUB&gt;&lt;/P&gt;&lt;P&gt;If your problem is solved please reward points....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Deepak333 k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2005 05:31:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-29T05:31:12Z</dc:date>
    <item>
      <title>F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933142#M61314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ALL,&lt;/P&gt;&lt;P&gt;         i have two fields in a screen of a z transaction.&lt;/P&gt;&lt;P&gt;Now i have attached one F4 help to one field (VKORG), and i want to design the F4 help for the second field (VTWEG),in such a way that, if the user select a value for VKORG and go F4 for VTWEG , only the valid value vtweg for that choosen VKORG will be popped up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The VKORG-VTWEG values are mapped in ZMAP table (userdefined).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some values=&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VKorg.....................VTWEG&lt;/P&gt;&lt;P&gt;1000.......................10&lt;/P&gt;&lt;P&gt;1000.......................12&lt;/P&gt;&lt;P&gt;1100.......................13&lt;/P&gt;&lt;P&gt;1100.......................14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my requirement is=&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the user selected vkorg =1000 from F4 help. now when he press F4 in vtweg field, he will get only (10,12) for selection..not all the values. I hope i made the question clear..help me out, reward is guaranteed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 05:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933142#M61314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T05:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933143#M61315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am giving the sample code I hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vkorg vtweg FROM ztable  INTO  (itab-vkorg, itab-vtweg)&lt;/P&gt;&lt;P&gt;  WHERE ..............&lt;/P&gt;&lt;P&gt;  APPEND itab.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &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        = 'vtweg'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             dynpprog        = w_progname&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             dynpnr          = w_scr_num&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             dynprofield     = 'itab-vtweg'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              value_org       = 'S'&lt;/P&gt;&lt;P&gt;              display         = 'F'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             stepl           = g_stepl&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              value_tab       = itab&lt;/P&gt;&lt;P&gt;              return_tab      = return_values&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;    ELSE .&lt;/P&gt;&lt;P&gt;  hide: itab-vkorg.&lt;/P&gt;&lt;P&gt;  modify table itab transporting vkorg vtweg.&lt;/P&gt;&lt;P&gt; I hope it will help you.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SUB&gt;CHEERS&lt;/SUB&gt;&lt;/P&gt;&lt;P&gt;If your problem is solved please reward points....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Deepak333 k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 05:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933143#M61315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T05:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933144#M61316</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; First of all you need to catch the value entered in &lt;/P&gt;&lt;P&gt; VKORG. You can do it by using FM &amp;lt;b&amp;gt;'DYNP_VALUES_READ'&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt; that reads the screen parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you need to read only one fields value from the screen the code can be written as. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move &amp;lt;b&amp;gt;'W_VKORG'&amp;lt;/b&amp;gt; to t_dynpfield-fieldname.&lt;/P&gt;&lt;P&gt;append t_dynpfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Assume 'W_VKORG' is the name of the first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function &amp;lt;b&amp;gt;'DYNP_VALUES_READ'&amp;lt;/b&amp;gt;exporting&lt;/P&gt;&lt;P&gt;dyname = w_dyname&lt;/P&gt;&lt;P&gt;dynumb = w_dynumb&lt;/P&gt;&lt;P&gt;translate_to_upper = 'X'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;dynpfields = t_dynpfield&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;invalid_abapworkarea = 01&lt;/P&gt;&lt;P&gt;invalid_dynprofield = 02&lt;/P&gt;&lt;P&gt;invalid_dynproname = 03&lt;/P&gt;&lt;P&gt;invalid_dynpronummer = 04&lt;/P&gt;&lt;P&gt;invalid_request = 05&lt;/P&gt;&lt;P&gt;no_fielddescription = 06&lt;/P&gt;&lt;P&gt;undefind_error = 07.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF  t_dynpfield-FIELDVALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE s032(zi) with 'Enter the VKORG Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;LOOP AT ZMAP into wa_ZMAP.&lt;/P&gt;&lt;P&gt;   if wa_ZMAP-VKORG = W_VKORG&lt;/P&gt;&lt;P&gt;     append wa_VTWEG to t_VTWEG " Intctable for VTWEG&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt; ENDLOOP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Note : t_VTWEG  is an internal table to hold values for &lt;/P&gt;&lt;P&gt;       VTWEG. You need to declare this earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have enough values in t_VTWEG.Pass this to F4 help function mudule.i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA t_field like DFIES occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;b&amp;gt;'F4IF_INT_TABLE_VALUE_REQUEST'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DDIC_STRUCTURE         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      RETFIELD               = 'W_VTWEG&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PVALKEY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     DYNPPROG               = " Your prog name"&lt;/P&gt;&lt;P&gt;     DYNPNR                 = sy-dynnr&lt;/P&gt;&lt;P&gt;     DYNPROFIELD     =       'W_VTWEG'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STEPL                  = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WINDOW_TITLE           = 'VTWEG'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VALUE                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     VALUE_ORG              = 'S'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MULTIPLE_CHOICE        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISPLAY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_PROGRAM       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_FORM          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      VALUE_TAB              = t_VTWEG&lt;/P&gt;&lt;P&gt;   FIELD_TAB              = t_field&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN_TAB             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPFLD_MAPPING        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARAMETER_ERROR        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&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;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if this explanation useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt; Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 05:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933144#M61316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T05:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933145#M61317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Deepak,&lt;/P&gt;&lt;P&gt;           its a module pool program and the field is in screen no 0100, so can just give some hint, where to put the code that you have provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 05:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933145#M61317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T05:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933146#M61318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &amp;lt;b&amp;gt;W_VTWEG&amp;lt;/b&amp;gt; is the name of the second field in your screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the following in the &amp;lt;b&amp;gt;Flow logic.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;Field &amp;lt;b&amp;gt;W_VTWEG&amp;lt;/b&amp;gt; module get_dir_grp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on this above stauemen and write the code that I exlained further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code that Deepak gave will work unless you press enter or in PAI of any eveny.If you need to direcly press F4 on field 2 after entering the value in Field1 the you need to use FM &amp;lt;b&amp;gt;DYNP_VALUES_READ&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if this explanation useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 05:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933146#M61318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T05:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933147#M61319</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 your screen 100 in PAI.&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;process on value-request.&lt;/P&gt;&lt;P&gt;****After this place that code what ever i gave you earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SUB&gt;CHEERS&lt;/SUB&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 06:01:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/933147#M61319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T06:01:32Z</dc:date>
    </item>
  </channel>
</rss>

