<?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: Dates in selection screens in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767574#M906520</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;Please refer the code below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PARAMETERS: sp_month(18) TYPE c.
 
DATA:BEGIN OF itab OCCURS 0,
      month(20) type c,
     END OF itab.
 
AT SELECTION-SCREEN ON VALUE-REQUEST FOR sp_month.
 
 
  itab-month = 'January'.
  APPEND itab.
  clear itab.

"Append all months to itab


  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'MONTH'
      dynpprog    = sy-repid
      dynpnr      = sy-dynnr
      dynprofield = 'SP_MONTH'
      value_org   = 'S'
    TABLES
      value_tab   = itab.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Apr 2008 19:02:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-26T19:02:23Z</dc:date>
    <item>
      <title>Dates in selection screens</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767568#M906514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to ask for the month in a selection screen (january, feb...) witha F4, wathever &lt;/P&gt;&lt;P&gt;How can I do that??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 18:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767568#M906514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T18:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dates in selection screens</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767569#M906515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  check this ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report .&lt;/P&gt;&lt;P&gt;tables: t247 , DFIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:p_month  LIKE T247-MNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      mnr like t247-mnr,&lt;/P&gt;&lt;P&gt;      ktx like t247-ktx,&lt;/P&gt;&lt;P&gt;      end of itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : LT_FIELDS TYPE TABLE OF DFIES,&lt;/P&gt;&lt;P&gt;LS_FIELD TYPE DFIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on  value-request for  p_month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select MNR&lt;/P&gt;&lt;P&gt;       KTX&lt;/P&gt;&lt;P&gt;       from t247 into  corresponding fields of table itab&lt;/P&gt;&lt;P&gt;where  spras = 'EN'.&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 = 'P_MONTH'&lt;/P&gt;&lt;P&gt;DYNPPROG = sy-cprog&lt;/P&gt;&lt;P&gt;DYNPNR = sy-dynnr&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'MNR'&lt;/P&gt;&lt;P&gt;VALUE_ORG = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUE_TAB = itab&lt;/P&gt;&lt;P&gt;FIELD_TAB = LT_FIELDS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 18:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767569#M906515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T18:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dates in selection screens</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767570#M906516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  rich_0001.

data: begin of imonths occurs 0,
       month type numc2,
      end of imonths.

parameter: p_month type numc2.

INITIALIZATION.

imonths-month = 0.
do 12 times.
  imonths-month = imonths-month + 1.
  append imonths.
enddo.

at selection-screen on value-request for p_month.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'MONTH'
            dynprofield = 'P_MONTH'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = imonths.

start-of-selection.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 18:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767570#M906516</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-04-24T18:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dates in selection screens</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767571#M906517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;parameters: p_month type month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create the search help using table T247.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Srinivas R on Apr 24, 2008 8:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 18:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767571#M906517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T18:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dates in selection screens</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767572#M906518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should give u Months in text format in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of imonths occurs 0,
       month type fcltx,
      end of imonths.

parameter: p_month type FCLTX.
 
INITIALIZATION.
 
select ltx from t247 into table imonths where spras eq 'EN'.

 
at selection-screen on value-request for p_month.
 
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'MONTH'
            dynprofield = 'P_MONTH'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = imonths.
 
start-of-selection.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 18:42:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767572#M906518</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2008-04-24T18:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dates in selection screens</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767573#M906519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a table "T015M" which stores the names of the months. You can try &lt;/P&gt;&lt;P&gt;with that, i.e. you can provide value help using that table.. still some &lt;/P&gt;&lt;P&gt;problem.. contact me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2008 18:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767573#M906519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-26T18:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dates in selection screens</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767574#M906520</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;Please refer the code below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PARAMETERS: sp_month(18) TYPE c.
 
DATA:BEGIN OF itab OCCURS 0,
      month(20) type c,
     END OF itab.
 
AT SELECTION-SCREEN ON VALUE-REQUEST FOR sp_month.
 
 
  itab-month = 'January'.
  APPEND itab.
  clear itab.

"Append all months to itab


  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'MONTH'
      dynpprog    = sy-repid
      dynpnr      = sy-dynnr
      dynprofield = 'SP_MONTH'
      value_org   = 'S'
    TABLES
      value_tab   = itab.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2008 19:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767574#M906520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-26T19:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dates in selection screens</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767575#M906521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ASHUTOSH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HAVE WRITTEN THIS CODE ONCE FOR MY USE TRY IT ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: t247 , DFIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:P_Month LIKE T247-MNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;        MNR like T247-MNR,&lt;/P&gt;&lt;P&gt;        KTX like T247-KTX,&lt;/P&gt;&lt;P&gt;        end of itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : LTF_FIELDS TYPE TABLE OF DFIES,&lt;/P&gt;&lt;P&gt;LTF_FIELD TYPE DFIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for P_MONTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select MNR&lt;/P&gt;&lt;P&gt;KTX&lt;/P&gt;&lt;P&gt;from t247 into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;where spras = 'EN'.&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 = 'P_MONTH'&lt;/P&gt;&lt;P&gt;DYNPPROG = sy-cprog&lt;/P&gt;&lt;P&gt;DYNPNR = sy-dynnr&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'MNR'&lt;/P&gt;&lt;P&gt;VALUE_ORG = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUE_TAB = itab&lt;/P&gt;&lt;P&gt;FIELD_TAB = LTF_FIELDS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;JYOTHI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2008 19:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-in-selection-screens/m-p/3767575#M906521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-26T19:49:50Z</dc:date>
    </item>
  </channel>
</rss>

