<?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: Problem in Table Maintainence generator event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347963#M1730984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ji Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In TMG you create form routine 01 and 05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 05 you just create the next number from either your number range or incrementing last number by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In form routine 01 you check, the new nomber from database, else give error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srimanta &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2013 08:46:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-04-08T08:46:01Z</dc:date>
    <item>
      <title>Problem in Table Maintainence generator event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347960#M1730981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a table wherein there is a key field which will be generated internally by incrementing the previous highest value in table(ie, say 10 is my last number in table, the number will be automatically incremented to 11).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem here is, whenever we enter a single record as a new entry, system generates next number (ie, say 10 is my last number in table, the number will be automatically incremented to 11).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But incase we copy paste multiple entries, system throws error saying duplicate records cannot be proccessed.(ie, these multiple records entered has not been saved into the database, hence the system increments the same number (ie, 10 to 11 say) again and again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any EVENT in table maintainence generator for this scenario? Is there a EVENT for ENTER in TMG?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we get rid of this problem once for all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Jagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 07:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347960#M1730981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-08T07:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Table Maintainence generator event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347961#M1730982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 08:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347961#M1730982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-08T08:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Table Maintainence generator event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347962#M1730983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are events called "Before saving the data in the database" and "Creating a new entry" . I think by coding in these events we will get your desire results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a "Z" number range via SNRO, then define the range, like 1 to 999999. In the creating a new entry event write below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_automatic_increment &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;DATA: lv_num TYPE CMS_DTE_SEQNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL FUNCTION 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nr_range_nr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = '01'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ='ZCBT_NUM' --&amp;gt; it's the object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; number&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = lv_num&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interval_not_found&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; number_range_not_intern = 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object_not_found&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quantity_is_0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quantity_is_not_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interval_overflow&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; buffer_overflow&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTQM_VBATCH_COPY-REC_INCREMENT = lv_num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please see this thread &lt;A _jive_internal="true" href="https://answers.sap.com/message/7474131"&gt;http://scn.sap.com/message/7474131&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 08:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347962#M1730983</guid>
      <dc:creator>Abhijit74</dc:creator>
      <dc:date>2013-04-08T08:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Table Maintainence generator event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347963#M1730984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ji Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In TMG you create form routine 01 and 05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 05 you just create the next number from either your number range or incrementing last number by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In form routine 01 you check, the new nomber from database, else give error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srimanta &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 08:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347963#M1730984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-08T08:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Table Maintainence generator event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347964#M1730985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagannathan,&lt;/P&gt;&lt;P&gt;After going to Table maintenance screen, follow path&amp;nbsp; Environment -&amp;gt;Modification -&amp;gt; Event .&lt;/P&gt;&lt;P&gt;Then select the event '05 - Craeting New Entry '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now write code to increment the Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 09:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347964#M1730985</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2013-04-08T09:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Table Maintainence generator event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347965#M1730986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jagannathan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the SAP number interval range transaction for defining your number range object?&lt;/P&gt;&lt;P&gt;If so, are you utilizing the buffering option in the 'Customizing tab'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, I highly suggest that you create the interval range using the t-code SNRO.&amp;nbsp; This t-code is well documented.&amp;nbsp;&amp;nbsp; While in the t-code select 'Help--&amp;gt;Application Help', to pull up the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have configured your number range object, call the function module, NUMBER_GET_NEXT, to determine the next number in the sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach provides the ability to handle multiple servers and multiple requests in the buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 18:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-maintainence-generator-event/m-p/9347965#M1730986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-08T18:28:35Z</dc:date>
    </item>
  </channel>
</rss>

