<?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: Update custom table through custom program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-table-through-custom-program/m-p/698397#M31617</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It should be something like this -&lt;/P&gt;&lt;P&gt;1) Use FM HR_99S_DATE_ADD_SUB_DURATION to add and subtract 6 months to get start and end dates.&lt;/P&gt;&lt;P&gt;2)  Use FM - GET_WEEK_INFO_BASED_ON_DATE to retrieve the week info of the start date&lt;/P&gt;&lt;P&gt;3) Now use FM - NEXT_WEEK to retrieve the subsequent week info till the end date. This FM will give you the Sunday date add 6 to get the subsequent Saturday. Fill your internal table and keep adding your number type.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 23:50:24 GMT</pubDate>
    <dc:creator>former_member593648</dc:creator>
    <dc:date>2018-11-27T23:50:24Z</dc:date>
    <item>
      <title>Update custom table through custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-table-through-custom-program/m-p/698396#M31616</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;
  &lt;P&gt;Requirement is to update custom table with weeks of the year.&lt;/P&gt;
  &lt;P&gt;Based on the rundate, program should update weeks of 6 months in past and 6 months in future.&lt;/P&gt;
  &lt;P&gt;The table has 3 fields, Number type, start date and end date.&lt;/P&gt;
  &lt;P&gt;Number type contains fixed value from 2Z01 to 2Z53. Start date should be beginning of the week (Monday) and end date should be end of the week ( Sunday).&lt;/P&gt;
  &lt;P&gt;For example - if I run my report today at 27.11.2018&lt;/P&gt;
  &lt;P&gt;First it should check if this date exist in the table against any number type.&lt;/P&gt;
  &lt;P&gt;If Table has entries and current date 26.11.2018 lies within specific week of table for any number type.&lt;/P&gt;
  &lt;P&gt;For eg - number type - 2Z48&lt;/P&gt;
  &lt;P&gt; Start date - 26.11.2018&lt;/P&gt;
  &lt;P&gt; End date - 02.12.2018&lt;/P&gt;
  &lt;P&gt;Table should be updated from here -&lt;/P&gt;
  &lt;P&gt;2Z20 14.05.2018 20.05.2018&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;
  &lt;P&gt;2Z48 26.11.2018 02.12.2018&lt;/P&gt;
  &lt;P&gt;2Z49 03.12.2018 09.12.2018&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;
  &lt;P&gt;2Z19 06.05.2019 12.05.2019&lt;/P&gt;
  &lt;P&gt;Please help me in knowing how to update this table through custom report.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 20:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-table-through-custom-program/m-p/698396#M31616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-27T20:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update custom table through custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-table-through-custom-program/m-p/698397#M31617</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It should be something like this -&lt;/P&gt;&lt;P&gt;1) Use FM HR_99S_DATE_ADD_SUB_DURATION to add and subtract 6 months to get start and end dates.&lt;/P&gt;&lt;P&gt;2)  Use FM - GET_WEEK_INFO_BASED_ON_DATE to retrieve the week info of the start date&lt;/P&gt;&lt;P&gt;3) Now use FM - NEXT_WEEK to retrieve the subsequent week info till the end date. This FM will give you the Sunday date add 6 to get the subsequent Saturday. Fill your internal table and keep adding your number type.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 23:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-table-through-custom-program/m-p/698397#M31617</guid>
      <dc:creator>former_member593648</dc:creator>
      <dc:date>2018-11-27T23:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Update custom table through custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-table-through-custom-program/m-p/698398#M31618</link>
      <description>&lt;P&gt;Thanks for details. But I need to update the dates in a particular order. If the rundate already exist in the table, it should start updating from that point. How can this be achieved?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 10:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-table-through-custom-program/m-p/698398#M31618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-28T10:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Update custom table through custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-table-through-custom-program/m-p/698399#M31619</link>
      <description>&lt;P&gt;Calculate, read your table, if exists, re-calculate, update.&lt;BR /&gt;What's the problem?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 11:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-table-through-custom-program/m-p/698399#M31619</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2018-11-28T11:30:10Z</dc:date>
    </item>
  </channel>
</rss>

