<?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: Changing the End Date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206477#M1715896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class="L0S52"&gt;Or You can also create a new module to perform all checks after the loop. This is your custom FG, you can make all the changes you want.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what'll happen to your custom FG when you regenerate the Table Maintenance Generator(TMG) - did you think about it prior to replying?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a common mistake done by developers. Never change the system generated TMG FuGr &lt;SPAN __jive_emoticon_name="angry" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" height="1" src="https://community.sap.com/1142/images/emoticons/angry.gif" width="1"&gt;&lt;/SPAN&gt; All your changes will be lost when someone regenerates the TMG!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 06:55:50 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2013-01-03T06:55:50Z</dc:date>
    <item>
      <title>Changing the End Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206473#M1715892</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;&lt;/P&gt;&lt;P&gt;I have a requirement to change the end date automatically if the category is same for two records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields are, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Category, &lt;/P&gt;&lt;P&gt;2. Start date, &lt;/P&gt;&lt;P&gt;3. End date,&lt;/P&gt;&lt;P&gt;4. Category Number,&lt;/P&gt;&lt;P&gt;5. Category Description1,&lt;/P&gt;&lt;P&gt;6. Category Description2,&lt;/P&gt;&lt;P&gt;7. Category Description3,&lt;/P&gt;&lt;P&gt;8. Category Description4,&lt;/P&gt;&lt;P&gt;9. Category Description5,&lt;/P&gt;&lt;P&gt;10. Category Description6,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Category, Start date and End date are the Keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i have a record for category as AA, Start date-02.01.2013, end date as 31.12.9999&lt;/P&gt;&lt;P&gt;if suppose a new record with category AA, Start date as 01.01.2014, end date as 31.12.9999, the 1st records end date should get changed to 31.12.2013, &lt;/P&gt;&lt;P&gt;i.e. before the start date of next record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 14:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206473#M1715892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-02T14:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the End Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206474#M1715893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You sort the records you have according to the start date and end date. You put a loop on the table of records. You read the next record using index access and compare the next record with current record in loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where are you stuck?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 19:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206474#M1715893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-02T19:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the End Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206475#M1715894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chinmay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not doing a report for this table. I will maintain the entries directly to the table through SM30, that time i want to change the end date of the previous record.&lt;/P&gt;&lt;P&gt;&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, 03 Jan 2013 05:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206475#M1715894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-03T05:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the End Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206476#M1715895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to SM30.&lt;/P&gt;&lt;P&gt;Put your table and click on maintian.&lt;/P&gt;&lt;P&gt;click on create new entries.&lt;/P&gt;&lt;P&gt;Once the screen is in editable mode, press F1 and navigate to the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put your logic in Loop after&amp;nbsp; PROCESS AFTER &lt;SPAN class="L0S52"&gt;INPUT&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Or You can also create a new module to perform all checks after the loop. This is your custom FG, you can make all the changes you want.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 06:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206476#M1715895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-03T06:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the End Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206477#M1715896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class="L0S52"&gt;Or You can also create a new module to perform all checks after the loop. This is your custom FG, you can make all the changes you want.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what'll happen to your custom FG when you regenerate the Table Maintenance Generator(TMG) - did you think about it prior to replying?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a common mistake done by developers. Never change the system generated TMG FuGr &lt;SPAN __jive_emoticon_name="angry" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" height="1" src="https://community.sap.com/1142/images/emoticons/angry.gif" width="1"&gt;&lt;/SPAN&gt; All your changes will be lost when someone regenerates the TMG!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 06:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206477#M1715896</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2013-01-03T06:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the End Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206478#M1715897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have thought about it and I do it often.&lt;/P&gt;&lt;P&gt;Whats wrong in that if you have mentioned the changes in TS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach is far better than going for a module pool development for some small requirement, 95% of which is handled by SAP. Let me know if you have any other easier way to handle this requirement apart from creating a dedicated module pool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 09:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206478#M1715897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-03T09:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the End Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206479#M1715898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Yes, I have thought about it and I do it often&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Unfortunately you do it wrong then! Afair SAP even gives a pop-up not to change the standard code in the TMG &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1142/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Whats wrong in that if you have mentioned the changes in TS?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In case you did not get the message I&lt;A&gt;&lt;/A&gt; tr&lt;A&gt;&lt;/A&gt;ied to convey in my previous response, let me reiterate it. Suppose you have to add a new field to the table &amp;amp; re-generate the TMG. All the changes that you've done in the FuGr. are lost for good!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;Let me know if you have any other easier way to handle this requirement apart from creating a dedicated module pool.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;SAP has provided quite a few &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm" title="http://help.sap.com/saphelp_nw70/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm"&gt;Extended Table Maintenance Events (SAP Library - BC - Generate Table Maintenance Dialog)&lt;/A&gt; for the very purpose of enhancing the standard TMG process. Although i must admit they don't cover all the requirements, but IMO any requirement beyond this should not be handled by TMG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you're talking about the OP's requirement specifically, then SAP has provided a standard way of handling this - by defining &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/91/ca9fb3a9d111d1a5690000e82deaaa/content.htm" title="http://help.sap.com/saphelp_nw70/helpdata/en/91/ca9fb3a9d111d1a5690000e82deaaa/content.htm"&gt;Time-Dependent Table/View (SAP Library - BC - Generate Table Maintenance Dialog)&lt;/A&gt;. You'll have to do the following to &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/c1/df5c3c3b067331e10000000a114084/content.htm" title="http://help.sap.com/saphelp_nw70/helpdata/en/c1/df5c3c3b067331e10000000a114084/content.htm"&gt;Generate Time-Dependence (SAP Library - BC - Generate Table Maintenance Dialog)&lt;/A&gt; in your table maintenance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I'm not sure if this is "easy" or "difficult" compared to your solution of implementing custom logic in the system-generated FuGr. But IMHO this is definitely the SAP recommended way of doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 10:49:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206479#M1715898</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2013-01-03T10:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the End Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206480#M1715899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! &lt;SPAN __jive_emoticon_name="grin" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1142/images/emoticons/grin.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I learned something new today. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 15:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-end-date/m-p/9206480#M1715899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-03T15:47:45Z</dc:date>
    </item>
  </channel>
</rss>

