<?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/3943562#M943219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Use the foll data elements :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sale order(jobno)     : VBELN&lt;/P&gt;&lt;P&gt;Ship to Party          :  KUNAG&lt;/P&gt;&lt;P&gt;CURRENCY           : WERKS&lt;/P&gt;&lt;P&gt;Fiscal Year            : GJAHR&lt;/P&gt;&lt;P&gt;Country                  : LAND1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2008 05:48:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-04T05:48:05Z</dc:date>
    <item>
      <title>F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943557#M943214</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 am try to create one Ztable in which I want help(F4) option ( Field name "Company code") in table creation only. What I should do. Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sureshkumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 03:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943557#M943214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T03:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943558#M943215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link foreign key your Ztable (BUKRS) and T001(BUKRS) table. &lt;/P&gt;&lt;P&gt;That time automatically F4 available. &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;&lt;/P&gt;&lt;P&gt;Durai.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 04:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943558#M943215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T04:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943559#M943216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's say the selection screen has two input fields. One is plant i.e., PA_WERKS and other one is object(PA_OBJ). While executing the report, User will first enter the plant name in the WERKS field. Then, he will press F4 at the PA_OBJ field. It should dynamically take the value from PA_WERKS and display the possible values on F4 dialog box by searching in the table ZAIS_MMG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution is written below and all the comments were provided at necessary places. Table need not be necessarily ZAIS_MMG. This logic is used for any table where you just need to change the table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Below is the subroutine that needs to be called at seelction screenAT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  object_f4help&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Provides the possible values for pa_obj&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM object_f4help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Refresh the internal table. This helps in reusing these tables and variables in * other subroutines.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR:   tb_dynpfields,&lt;/P&gt;&lt;P&gt;           tb_object_range.&lt;/P&gt;&lt;P&gt;  REFRESH: tb_dynpfields,&lt;/P&gt;&lt;P&gt;           tb_object_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Define Internal tables.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Define constants.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONSTANTS: co_retfield  TYPE  dfies-fieldname VALUE 'OBJECT',&lt;/P&gt;&lt;P&gt;             co_dynprog   LIKE sy-repid&lt;/P&gt;&lt;P&gt;                                 VALUE '/DCSEA/Z_AIS_NUM_RESET_PAJERO',&lt;/P&gt;&lt;P&gt;             co_s         TYPE c VALUE 'S',&lt;/P&gt;&lt;P&gt;             co_field(27) TYPE c VALUE 'PA_OBJ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assigning the values of program name and screen to the variables.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wf_dyname = sy-repid.   " PROGRAM NAME&lt;/P&gt;&lt;P&gt;  wf_dynumb = sy-dynnr.   " SCREEN NUMBER&lt;/P&gt;&lt;P&gt;  wf_dynpro = co_field.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Move the field name to tb_dynpfields.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MOVE 'PA_WERKS' TO&lt;/P&gt;&lt;P&gt;            tb_dynpfields-fieldname.&lt;/P&gt;&lt;P&gt;  APPEND tb_dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read screen field values before PAI field transport. This FM is used for dynamically * reading a value from the selection screen field .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            dyname               = wf_dyname&lt;/P&gt;&lt;P&gt;            dynumb               = wf_dynumb&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            dynpfields           = tb_dynpfields&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;            invalid_dynprofield  = 2&lt;/P&gt;&lt;P&gt;            invalid_dynproname   = 3&lt;/P&gt;&lt;P&gt;            invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;            invalid_request      = 5&lt;/P&gt;&lt;P&gt;            no_fielddescription  = 6&lt;/P&gt;&lt;P&gt;            invalid_parameter    = 7&lt;/P&gt;&lt;P&gt;            undefind_error       = 8&lt;/P&gt;&lt;P&gt;            double_conversion    = 9&lt;/P&gt;&lt;P&gt;            stepl_not_found      = 10&lt;/P&gt;&lt;P&gt;            OTHERS               = 11.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the tbale tb_dynpfields to read the dynamic value of pa_werks&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  READ TABLE tb_dynpfields INDEX 1.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    wf_werks = tb_dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the table tb_object_range. Make sure that we filter out null values as it * might appear on the screen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT werks object&lt;/P&gt;&lt;P&gt;    INTO TABLE tb_object_range&lt;/P&gt;&lt;P&gt;    FROM zais_mmg&lt;/P&gt;&lt;P&gt;    WHERE werks  EQ wf_werks&lt;/P&gt;&lt;P&gt;      and object NE ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sorting is always done before dlete adjacent duplicate.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  sort tb_object_range.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This will delete all duplicate entries. Or else when you press F4, it will display * the duplicates also.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  delete adjacent duplicates from tb_object_range comparing object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;F4 help also returning the value to be displayed in internal table. If the internal table is empty, it will display the message saying 'Values are not found'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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        = co_retfield&lt;/P&gt;&lt;P&gt;            dynpprog        = co_dynprog&lt;/P&gt;&lt;P&gt;            dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;            dynprofield     = wf_dynpro&lt;/P&gt;&lt;P&gt;            value_org       = co_s&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            value_tab       = tb_object_range&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;ENDFORM.                    " object_f4help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Do award points if Helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 04:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943559#M943216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T04:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943560#M943217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the data element 'BUKRS' for that field when creating your Ztable.&lt;/P&gt;&lt;P&gt;This will automatically provide F4 help for ur field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 04:04:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943560#M943217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T04:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943561#M943218</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks For Your Reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     come code f4 help values will come&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how will find in this data element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need the following fields want f4 help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sale order(jobno)&lt;/P&gt;&lt;P&gt;Ship to Party&lt;/P&gt;&lt;P&gt;CURRENCY&lt;/P&gt;&lt;P&gt;PAYMENTTEAMS&lt;/P&gt;&lt;P&gt;Fiscal Year&lt;/P&gt;&lt;P&gt;Country &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;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 05:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943561#M943218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T05:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943562#M943219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Use the foll data elements :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sale order(jobno)     : VBELN&lt;/P&gt;&lt;P&gt;Ship to Party          :  KUNAG&lt;/P&gt;&lt;P&gt;CURRENCY           : WERKS&lt;/P&gt;&lt;P&gt;Fiscal Year            : GJAHR&lt;/P&gt;&lt;P&gt;Country                  : LAND1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 05:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943562#M943219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T05:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943563#M943220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Nayan&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 for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i will give same data element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sale order(jobno) : VBELN&lt;/P&gt;&lt;P&gt;Ship to Party : KUNAG&lt;/P&gt;&lt;P&gt;CURRENCY : WERKS&lt;/P&gt;&lt;P&gt;Fiscal Year : GJAHR&lt;/P&gt;&lt;P&gt;Country : LAND1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but didnot come f4 help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 06:33:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943563#M943220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T06:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943564#M943221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;Just use the same Data Elements, You will get the defauld F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Currency use 'WAERS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 06:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3943564#M943221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T06:38:37Z</dc:date>
    </item>
  </channel>
</rss>

