<?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: Variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934276#M691460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;    i created a object z_doc  through SNRO tc.,  Can you pls let me know how to use this varible in the fm NUMBER_GET_NEXT.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2007 14:33:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-18T14:33:37Z</dc:date>
    <item>
      <title>Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934272#M691456</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;Req :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; A varible which should be a unique no for one execution of the program . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the variable is i_doc = '1000000000' for one execution (f8), then for the next execution(f8) of the prog 'i_doc = '1000000001'. and so on . It should be&lt;/P&gt;&lt;P&gt;a number of length 10. Not time and date varible fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 13:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934272#M691456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T13:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934273#M691457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can create a Number range object and then you can get the next number every time the report is run,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number range object can be created through the transaction SNRO. You can use the Function Module &lt;/P&gt;&lt;P&gt;NUMBER_GET_NEXT to get the next number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 13:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934273#M691457</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-10-18T13:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934274#M691458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a number range in transaction SNRO and then use the function module NUMBER_GET_NEXT to increment it everytime the program runs.&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, 18 Oct 2007 13:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934274#M691458</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-10-18T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934275#M691459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could place an entry on table TVARV and update it or create a number range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chester&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 13:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934275#M691459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T13:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934276#M691460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;    i created a object z_doc  through SNRO tc.,  Can you pls let me know how to use this varible in the fm NUMBER_GET_NEXT.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 14:33:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934276#M691460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T14:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934277#M691461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simply pass the name Z_DOC and the interval number, if you have not yet created an interval, you can do so in the SNRO transaction, this is simply telling the number range object what the number range is,  like 1000000000 to 1999999999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  DATA: new_number(10) TYPE c.

  CALL FUNCTION 'NUMBER_GET_NEXT'
    EXPORTING
      nr_range_nr = '0001'
      object      = 'Z_DOC'
    IMPORTING
      number      = new_number
    EXCEPTIONS
      OTHERS      = 8.

&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, 18 Oct 2007 14:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variable/m-p/2934277#M691461</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-10-18T14:43:54Z</dc:date>
    </item>
  </channel>
</rss>

