<?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 number range - update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912705#M1483044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created one number range, initially it should appear in the screen but if the user clicks no in popup then the number range it should get reduced since it is not used, kindly find the below codes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: RC         LIKE INRI-RETURNCODE,&lt;/P&gt;&lt;P&gt;      NUMBER(10) TYPE C,&lt;/P&gt;&lt;P&gt;      YEAR       LIKE INRI-TOYEAR,&lt;/P&gt;&lt;P&gt;      QUAN       LIKE INRI-QUANTITY.&lt;/P&gt;&lt;P&gt;data : Category type CRMC_ACT_CATEGOR-CATEGORY.&lt;/P&gt;&lt;P&gt;   QUAN              = 1.&lt;/P&gt;&lt;P&gt;   Category    = 'Z22'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;           OBJECT           = 'ZTEST'&lt;/P&gt;&lt;P&gt;           NR_RANGE_NR      = '01'&lt;/P&gt;&lt;P&gt;           SUBOBJECT        = Category&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;           RETURNCODE       =  RC&lt;/P&gt;&lt;P&gt;           QUANTITY         = QUAN&lt;/P&gt;&lt;P&gt;           NUMBER           = NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : lv_ans type c.&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;      TITLEBAR                    = 'Are you sure'&lt;/P&gt;&lt;P&gt;       text_question               = 'Are you sure'&lt;/P&gt;&lt;P&gt;      DEFAULT_BUTTON              = '1'&lt;/P&gt;&lt;P&gt;      DISPLAY_CANCEL_BUTTON       = ' '&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ANSWER                      = lv_ans.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_ans = '1'.&lt;/P&gt;&lt;P&gt;   Write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'Next available number is: ', Number, RC.&lt;/P&gt;&lt;P&gt;   else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*here we have to reduce the number range - 1.&lt;/P&gt;&lt;P&gt;*here can we use f.s's like,&lt;/P&gt;&lt;P&gt; NUMBER_RANGE_ENQUEUE&lt;/P&gt;&lt;P&gt;NUMBER_RANGE_INTERVAL_UPDATE&lt;/P&gt;&lt;P&gt;NUMBER_RANGE_DEQUEUE&lt;/P&gt;&lt;P&gt;NUMBER_RANGE_UPDATE_CLOSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly guide me how to proceed here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     write : /'not allowed'.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 06:17:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-05T06:17:55Z</dc:date>
    <item>
      <title>number range - update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912705#M1483044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created one number range, initially it should appear in the screen but if the user clicks no in popup then the number range it should get reduced since it is not used, kindly find the below codes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: RC         LIKE INRI-RETURNCODE,&lt;/P&gt;&lt;P&gt;      NUMBER(10) TYPE C,&lt;/P&gt;&lt;P&gt;      YEAR       LIKE INRI-TOYEAR,&lt;/P&gt;&lt;P&gt;      QUAN       LIKE INRI-QUANTITY.&lt;/P&gt;&lt;P&gt;data : Category type CRMC_ACT_CATEGOR-CATEGORY.&lt;/P&gt;&lt;P&gt;   QUAN              = 1.&lt;/P&gt;&lt;P&gt;   Category    = 'Z22'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;           OBJECT           = 'ZTEST'&lt;/P&gt;&lt;P&gt;           NR_RANGE_NR      = '01'&lt;/P&gt;&lt;P&gt;           SUBOBJECT        = Category&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;           RETURNCODE       =  RC&lt;/P&gt;&lt;P&gt;           QUANTITY         = QUAN&lt;/P&gt;&lt;P&gt;           NUMBER           = NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : lv_ans type c.&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;      TITLEBAR                    = 'Are you sure'&lt;/P&gt;&lt;P&gt;       text_question               = 'Are you sure'&lt;/P&gt;&lt;P&gt;      DEFAULT_BUTTON              = '1'&lt;/P&gt;&lt;P&gt;      DISPLAY_CANCEL_BUTTON       = ' '&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ANSWER                      = lv_ans.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_ans = '1'.&lt;/P&gt;&lt;P&gt;   Write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'Next available number is: ', Number, RC.&lt;/P&gt;&lt;P&gt;   else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*here we have to reduce the number range - 1.&lt;/P&gt;&lt;P&gt;*here can we use f.s's like,&lt;/P&gt;&lt;P&gt; NUMBER_RANGE_ENQUEUE&lt;/P&gt;&lt;P&gt;NUMBER_RANGE_INTERVAL_UPDATE&lt;/P&gt;&lt;P&gt;NUMBER_RANGE_DEQUEUE&lt;/P&gt;&lt;P&gt;NUMBER_RANGE_UPDATE_CLOSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly guide me how to proceed here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     write : /'not allowed'.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 06:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912705#M1483044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T06:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: number range - update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912706#M1483045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if 'cancelled'&lt;/P&gt;&lt;P&gt;data : lv_nrlevel type nriv-nrlevel.&lt;/P&gt;&lt;P&gt;clear : lv_nrlevel.&lt;/P&gt;&lt;P&gt;select single nrlevel from  NRIV into lv_nrlevel     where OBJECT = 'ZTEST' and SUBOBJECT = 'Z22'.&lt;/P&gt;&lt;P&gt;  lv_nrlevel = lv_nrlevel - 1.&lt;/P&gt;&lt;P&gt;  update nriv set nrlevel = lv_nrlevel where   OBJECT = 'ZTEST' and SUBOBJECT = 'Z22'.&lt;/P&gt;&lt;P&gt;     write : /'not allowed' , lv_nrlevel.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its working fine can i proceed with this needs inputs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;thirukumaran. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 06:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912706#M1483045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T06:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: number range - update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912707#M1483046</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;     Write the FM 'POPUP_TO_CONFIRM' first and then call FM 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 06:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912707#M1483046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T06:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: number range - update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912708#M1483047</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;The standard functionality for function module "'NUMBER_GET_NEXT'" is if you call this FM, the next value field in NRIV will be incremented by one.  The method of direct update in NRIV is not correct and may lead to inconsistant data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 06:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912708#M1483047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T06:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: number range - update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912709#M1483048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created one screen, where this number range should appear initially, then based on action performed if he saves then that number range should be considered and it has to be stored in ztable, if cancelled we should not consider that number range, so what i did is if cancelled i am using this logic to reset the number range,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : lv_nrlevel.&lt;/P&gt;&lt;P&gt;select single nrlevel from  NRIV into lv_nrlevel     where OBJECT = 'ZTEST' and SUBOBJECT = 'Z22'.&lt;/P&gt;&lt;P&gt;  lv_nrlevel = lv_nrlevel - 1.&lt;/P&gt;&lt;P&gt;  update nriv set nrlevel = lv_nrlevel where   OBJECT = 'ZTEST' and SUBOBJECT = 'Z22'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your responses,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;thirukumaran. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 06:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912709#M1483048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T06:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: number range - update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912710#M1483049</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;One alternate solution is to follow below steps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Enqueue NRIV Table,&lt;/P&gt;&lt;P&gt;2) Fetch the Required Number range using select statement.&lt;/P&gt;&lt;P&gt;3) Display the Number range selected the in Popup.&lt;/P&gt;&lt;P&gt;4) If the user selects Yes, the call the function module NUMBER_RANGE_NEXT &amp;amp; Dequeue the table&lt;/P&gt;&lt;P&gt;5) If the user seelct No, then dequeue the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 06:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-update/m-p/6912710#M1483049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T06:58:53Z</dc:date>
    </item>
  </channel>
</rss>

