<?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 Table Maintainance query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237671#M1210382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Freinds , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i made a table and maintainance generator , &lt;/P&gt;&lt;P&gt; it has one of the field is date field . (eg. target date) &lt;/P&gt;&lt;P&gt;Now i want the user to restrict  enter only last date of the month  , and not other date ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if user enter any other date of  the month , then it will say an error message ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. for feb 2008   user  is allowed to enter  29.02.2008 &lt;/P&gt;&lt;P&gt;     for feb 2009   user  is allowed to enter  28.02.2009   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the above enteries are  entereed  in user maintainance i.e sm30 ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2009 04:59:39 GMT</pubDate>
    <dc:creator>ajay_sharma10</dc:creator>
    <dc:date>2009-02-26T04:59:39Z</dc:date>
    <item>
      <title>Table Maintainance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237671#M1210382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Freinds , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i made a table and maintainance generator , &lt;/P&gt;&lt;P&gt; it has one of the field is date field . (eg. target date) &lt;/P&gt;&lt;P&gt;Now i want the user to restrict  enter only last date of the month  , and not other date ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if user enter any other date of  the month , then it will say an error message ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. for feb 2008   user  is allowed to enter  29.02.2008 &lt;/P&gt;&lt;P&gt;     for feb 2009   user  is allowed to enter  28.02.2009   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the above enteries are  entereed  in user maintainance i.e sm30 ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 04:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237671#M1210382</guid>
      <dc:creator>ajay_sharma10</dc:creator>
      <dc:date>2009-02-26T04:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintainance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237672#M1210383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy the Function Group Name which you have given in Table maintenance Generator. Then Go to SE80 and Change the Module Pool Program Generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 07:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237672#M1210383</guid>
      <dc:creator>AjayJangid</dc:creator>
      <dc:date>2009-02-26T07:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintainance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237673#M1210384</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;U can modify the Fun grp generated . And u can use the FM CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        day_in            = sy-datum&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        last_day_of_month = l_date&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        day_in_not_valid  = 1&lt;/P&gt;&lt;P&gt;        OTHERS            = 2.&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;    ENDIF.&lt;/P&gt;&lt;P&gt; to get the last day of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that l_date is same as the date entered by the user. If not equal then u can give an error msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 09:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237673#M1210384</guid>
      <dc:creator>keerthy_k</dc:creator>
      <dc:date>2009-02-26T09:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintainance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237674#M1210385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U said u have created the table maintance then u will be enter the values from Sm30 as i know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On that case create the table eventes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the event 05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with in the abap editor &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can function 'FKK_LAST_DAY_OF_MONTH'.&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt; DAY_IN  = traget date.&lt;/P&gt;&lt;P&gt;exporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will get the last day of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE '0'.&lt;/P&gt;&lt;P&gt;raise error message&lt;/P&gt;&lt;P&gt;endif.&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, 26 Feb 2009 16:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237674#M1210385</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-26T16:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintainance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237675#M1210386</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 view v_tvimf. SE16-&amp;gt; v_tvimf. Give ur table name. Use event '01'. create form routine, and in the routine, write your code to restrict the data, or to give error message&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;Arun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 07:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237675#M1210386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T07:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintainance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237676#M1210387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;See this thread&lt;/P&gt;&lt;P&gt;/people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 08:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237676#M1210387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T08:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintainance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237677#M1210388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually instaed of entering the values why can't you give the default dates in PBO of that screen.&lt;/P&gt;&lt;P&gt;You can write a logic for the years and the months and assign the default value to the date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it will check for the current date and be defualt it will show the last date of that month  and make that field as noneditable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so there can  not be any changes to that field in table maintianence Generator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 12:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237677#M1210388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T12:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintainance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237678#M1210389</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;&lt;/P&gt;&lt;P&gt;Use the Table Maintenance Events.In your case use the event "01-Before saving the data in the database " and code in the respective FORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For details on how to use table maintenance events,check below link:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/x/AoOUAQ" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/x/AoOUAQ&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Bhumika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 06:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237678#M1210389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T06:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintainance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237679#M1210390</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;check below link for table maintanance generator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 11:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintainance-query/m-p/5237679#M1210390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T11:06:55Z</dc:date>
    </item>
  </channel>
</rss>

