<?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 help for selection screen field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585065#M263800</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;i have Char10 field on selection screen which doesnt have f4 help.&lt;/P&gt;&lt;P&gt;i want f4 functionality for that particular filed,when press f4 i should get calander,so that i have to slect date.&lt;/P&gt;&lt;P&gt;note:selection screen field type should be of char10.&lt;/P&gt;&lt;P&gt;please post the answer as soon as possible.its an urgent requirement for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Oct 2006 14:32:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-09T14:32:10Z</dc:date>
    <item>
      <title>F4 help for selection screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585065#M263800</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;i have Char10 field on selection screen which doesnt have f4 help.&lt;/P&gt;&lt;P&gt;i want f4 functionality for that particular filed,when press f4 i should get calander,so that i have to slect date.&lt;/P&gt;&lt;P&gt;note:selection screen field type should be of char10.&lt;/P&gt;&lt;P&gt;please post the answer as soon as possible.its an urgent requirement for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 14:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585065#M263800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T14:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for selection screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585066#M263801</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;If you declare your parameter like SY-DATUM instead of CHAR10 you'll have automatically what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_DATE LIKE SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 14:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585066#M263801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T14:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for selection screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585067#M263802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ym.&lt;/P&gt;&lt;P&gt;  PERFORM f4_ym.&lt;/P&gt;&lt;P&gt;&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  f4_ym&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;      F4 for Year and Month&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 f4_ym .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: li_ret_tab LIKE  ddshretval OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      tabname           = ' '&lt;/P&gt;&lt;P&gt;      fieldname         = ' '&lt;/P&gt;&lt;P&gt;      searchhelp        = 'BU_DATE_CHAR'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      return_tab        = li_ret_tab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      field_not_found   = 1&lt;/P&gt;&lt;P&gt;      no_help_for_field = 2&lt;/P&gt;&lt;P&gt;      inconsistent_help = 3&lt;/P&gt;&lt;P&gt;      no_values_found   = 4&lt;/P&gt;&lt;P&gt;      OTHERS            = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;    READ TABLE li_ret_tab INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;      CONCATENATE li_ret_tab-fieldval&lt;EM&gt;6(4) li_ret_tab-fieldval&lt;/EM&gt;3(2) li_ret_tab-fieldval+0(2)&lt;/P&gt;&lt;P&gt;        INTO  p_ym separated by '.'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                                                    " f4_ym&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 14:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585067#M263802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for selection screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585068#M263803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When working with dates, you should be using the data type D or type sy-datum, this is how every date in the system is stored and internal formatting will be handled for you automatically, I would advise not use a character 10 field, and do as Max has suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 14:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585068#M263803</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-09T14:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for selection screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585069#M263804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you still want to use char10 and do not want to use sy-datum as other have suggested, then use this code:&lt;/P&gt;&lt;P&gt;parameters: p_date like char10.&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_date.&lt;/P&gt;&lt;P&gt;  call function 'F4_DATE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            date_for_first_month = sy-datum&lt;/P&gt;&lt;P&gt;            display              = ' '&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            select_date          = p_date.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 14:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585069#M263804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T14:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for selection screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585070#M263805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When you use the Date, then why don't you declare it as like SY-DATUM, so it will pick the calender when you press the F4. however, see the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters: Date(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: DAte_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = ' '&lt;/P&gt;&lt;P&gt;fieldname = ' '&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;searchhelp = 'BU_DATE_CHAR'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;return_tab = date_tab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;field_not_found = 1&lt;/P&gt;&lt;P&gt;no_help_for_field = 2&lt;/P&gt;&lt;P&gt;inconsistent_help = 3&lt;/P&gt;&lt;P&gt;no_values_found = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;READ TABLE date_tab INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;CONCATENATE date_tab-fieldval&lt;EM&gt;6(4) li_ret_tab-fieldval&lt;/EM&gt;3(2) li_ret_tab-fieldval+0(2)&lt;/P&gt;&lt;P&gt;INTO dateseparated by '/'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 14:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-selection-screen-field/m-p/1585070#M263805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T14:38:52Z</dc:date>
    </item>
  </channel>
</rss>

