<?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: Breaking values into ranges in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329475#M512402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;right what about when material numbers contain even characters in them... so that doesnt resolve it completely in my case...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyways i used another approach to solve the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Aug 2008 10:02:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-08T10:02:30Z</dc:date>
    <item>
      <title>Breaking values into ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329470#M512397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I presently I am using CFM1 transaction where I have to upload values into Material number field which are individual material numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I run this with more than 6000 records this goes for a dump as it cannot takeup individual values more than 6K....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way I may sometimes have 60, 000 records... is there any way that I can make break these values into ranges...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1000001&lt;/P&gt;&lt;P&gt;1000002&lt;/P&gt;&lt;P&gt;1000003&lt;/P&gt;&lt;P&gt;1000004&lt;/P&gt;&lt;P&gt;1100006&lt;/P&gt;&lt;P&gt;1100007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want these individual values to be broken into ranges like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1000001-100004 and 1100006-1100007&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 11:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329470#M512397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T11:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking values into ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329471#M512398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here i m sending u one example.. i have used this kind of code when i have a problem like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code is for upload data in T.Code : MB1C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT YSH_MB1C_UPLOAD_LAST&lt;/P&gt;&lt;P&gt;NO STANDARD PAGE HEADING LINE-SIZE 255.&lt;/P&gt;&lt;P&gt;TABLES: MARA.&lt;/P&gt;&lt;P&gt;INCLUDE BDCRECX1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT OCCURS 0,&lt;/P&gt;&lt;P&gt;      BLDAT(8) TYPE C,  "Document Date&lt;/P&gt;&lt;P&gt;      BUDAT(8) TYPE C,  "Posting Date&lt;/P&gt;&lt;P&gt;      WERKS(4) TYPE C,  "plant&lt;/P&gt;&lt;P&gt;      MATNR(18) TYPE C, "material&lt;/P&gt;&lt;P&gt;      ERFMG(13) TYPE C, "qty&lt;/P&gt;&lt;P&gt;      ERFME(13) TYPE C, "unit&lt;/P&gt;&lt;P&gt;      EXBWR(13) TYPE C, "value&lt;/P&gt;&lt;P&gt;      CHARG(10) TYPE C, "batch&lt;/P&gt;&lt;P&gt;      SGTXT(30) TYPE C, "Item Level text&lt;/P&gt;&lt;P&gt;      LGORT(4) TYPE C,  "storage locnt&lt;/P&gt;&lt;P&gt;END OF IT.&lt;/P&gt;&lt;P&gt;DATA: IT1 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT2 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT3 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT4 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT5 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT6 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT7 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT8 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT9 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT10 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT11 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA:FINAL LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA:FINAL1 LIKE IT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: N TYPE I,&lt;/P&gt;&lt;P&gt;      I TYPE I.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Parameter /  Selection - screens&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;PARAMETERS : P_FILE LIKE IBIPPARMS-PATH OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At selection-screen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      FILE_NAME = P_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      FILENAME = P_FILE&lt;/P&gt;&lt;P&gt;      FILETYPE = 'DAT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      DATA_TAB = IT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM MARA&lt;/P&gt;&lt;P&gt;  WHERE MATNR = IT-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*if mara-mtart = 'ZFER' or mara-mtart = 'ZHAW'.&lt;/P&gt;&lt;P&gt;*it-lgort = 'FGST'.&lt;/P&gt;&lt;P&gt;*elseif mara-mtart = 'ZROH' or mara-mtart = 'ZVER'.&lt;/P&gt;&lt;P&gt;*it-lgort = 'RMST'.&lt;/P&gt;&lt;P&gt;*elseif mara-mtart = 'ZHIB'.&lt;/P&gt;&lt;P&gt;*it-lgort = 'CONS'.&lt;/P&gt;&lt;P&gt;*elseif mara-mtart = 'ZERS'.&lt;/P&gt;&lt;P&gt;*it-lgort = 'SPAR'.&lt;/P&gt;&lt;P&gt;*elseif mara-mtart = 'ZHAL'.&lt;/P&gt;&lt;P&gt;*it-lgort = 'PRDN'.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY IT TRANSPORTING LGORT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SEPRATE THE DATA FOR PLANT....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FINAL[] = IT[].&lt;/P&gt;&lt;P&gt;FINAL1[] = IT[].&lt;/P&gt;&lt;P&gt;SORT FINAL BY WERKS.&lt;/P&gt;&lt;P&gt;SORT FINAL1 BY WERKS.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM FINAL COMPARING WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT FINAL.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;AS ONE DOCUMENT CAN TAKE ONLY 499 ITEMS AT A TIME , SPLIT THE FILE IN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*11 FILES OF 450 EACH&lt;/P&gt;&lt;P&gt;CLEAR:IT,IT1,IT2,IT3,IT4,IT5,IT6,IT7,IT8,IT9,IT10,IT11.&lt;/P&gt;&lt;P&gt;REFRESH:IT,IT1,IT2,IT3,IT4,IT5,IT6,IT7,IT8,IT9,IT10,IT11.&lt;/P&gt;&lt;P&gt;IT[] = FINAL1[].&lt;/P&gt;&lt;P&gt;DELETE IT WHERE WERKS &amp;lt;&amp;gt; FINAL-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND LINES OF IT FROM 1 TO 450 TO IT1.&lt;/P&gt;&lt;P&gt;APPEND LINES OF IT FROM 451 TO 900 TO IT2.&lt;/P&gt;&lt;P&gt;APPEND LINES OF IT FROM 901 TO 1350 TO IT3.&lt;/P&gt;&lt;P&gt;APPEND LINES OF IT FROM 1351 TO 1800 TO IT4.&lt;/P&gt;&lt;P&gt;APPEND LINES OF IT FROM 1801 TO 2250 TO IT5.&lt;/P&gt;&lt;P&gt;APPEND LINES OF IT FROM 2251 TO 2700 TO IT6.&lt;/P&gt;&lt;P&gt;APPEND LINES OF IT FROM 2701 TO 3150 TO IT7.&lt;/P&gt;&lt;P&gt;APPEND LINES OF IT FROM 3151 TO 3600 TO IT8.&lt;/P&gt;&lt;P&gt;APPEND LINES OF IT FROM 3601 TO 4050 TO IT9.&lt;/P&gt;&lt;P&gt;APPEND LINES OF IT FROM 4051 TO 4500 TO IT10.&lt;/P&gt;&lt;P&gt;APPEND LINES OF IT FROM 4501 TO 4950 TO IT11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT IT1[] IS INITIAL.&lt;/P&gt;&lt;P&gt;PERFORM BDC TABLES IT1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF NOT IT2[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC TABLES IT2.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT IT3[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC TABLES IT3.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT IT4[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC TABLES IT4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT IT5[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC TABLES IT5.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT IT6[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC TABLES IT6.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC TABLES IT STRUCTURE IT1.&lt;/P&gt;&lt;P&gt;CLEAR: I,N.&lt;/P&gt;&lt;P&gt;PERFORM OPEN_GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE IT LINES N.&lt;/P&gt;&lt;P&gt;READ TABLE IT INDEX 1.&lt;/P&gt;&lt;P&gt;PERFORM BDC_DYNPRO      USING 'SAPMM07M' '0400'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MKPF-BKTXT'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=NPE'.&lt;/P&gt;&lt;P&gt;*IF IT-WERKS = '1001' OR IT-WERKS = '1501'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OR IT-WERKS = '1502' OR IT-WERKS = '2001'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OR IT-WERKS = '2002'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'MKPF-BLDAT'&lt;/P&gt;&lt;P&gt;                              IT-BLDAT.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'MKPF-BUDAT'&lt;/P&gt;&lt;P&gt;                              IT-BUDAT.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'MKPF-BKTXT'&lt;/P&gt;&lt;P&gt;                              'CLOSING STOCK-30TH APR 06'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ELSE.&lt;/P&gt;&lt;P&gt;*perform bdc_field       using 'MKPF-BLDAT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             '31.03.2006'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*perform bdc_field       using 'MKPF-BUDAT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             '31.03.2006'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*perform bdc_field       using 'MKPF-BKTXT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             'OPENING STOCK-1ST OCT 05'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'RM07M-BWARTWA'&lt;/P&gt;&lt;P&gt;                              '561'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'RM07M-WERKS'&lt;/P&gt;&lt;P&gt;                              IT-WERKS.  "'1501'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'RM07M-LGORT'&lt;/P&gt;&lt;P&gt;                              IT-LGORT.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'XFULL'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'RM07M-WVERS2'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;LOOP AT IT.&lt;/P&gt;&lt;P&gt;I = I + 1.&lt;/P&gt;&lt;P&gt;PERFORM BDC_DYNPRO      USING 'SAPMM07M' '0410'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MSEG-EXBWR'.&lt;/P&gt;&lt;P&gt;IF N &amp;lt;&amp;gt; I.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=NPE'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BU'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'MSEG-MATNR'&lt;/P&gt;&lt;P&gt;                              IT-MATNR.  "'rdnk031'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'MSEG-ERFMG'&lt;/P&gt;&lt;P&gt;                              IT-ERFMG. "'10'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'MSEG-ERFME'&lt;/P&gt;&lt;P&gt;                              IT-ERFME. "'kg'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'MSEG-WERKS'&lt;/P&gt;&lt;P&gt;                              IT-WERKS.  "'1501'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'MSEG-LGORT'&lt;/P&gt;&lt;P&gt;                              IT-LGORT. "'RMST'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'MSEG-EXBWR'&lt;/P&gt;&lt;P&gt;                              IT-EXBWR.  "'12390'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'DKACB-FMORE'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;*IF IT-WERKS = '1001' OR IT-WERKS = '1501'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OR IT-WERKS = '1502' OR IT-WERKS = '2001'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OR IT-WERKS = '2002'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'MSEG-SGTXT'&lt;/P&gt;&lt;P&gt;                              IT-SGTXT.&lt;/P&gt;&lt;P&gt;*ELSE.&lt;/P&gt;&lt;P&gt;*perform bdc_field       using 'MSEG-SGTXT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             'OPENING STOCK-1ST OCT 05'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'MSEG-CHARG'&lt;/P&gt;&lt;P&gt;                              IT-CHARG. "'rmst'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_DYNPRO      USING 'SAPLKACB' '0002'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ENTE'.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_TRANSACTION USING 'MB1C'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;shardul shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 11:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329471#M512398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T11:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking values into ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329472#M512399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think you can use the number ranges to solve this kind of problem&lt;/P&gt;&lt;P&gt;go through this which ll give you complete idea about the number ranges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'NUMBER_RANGE_ENQUEUE'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;               object              = 'ZOWNNO'   "Create with SNUM&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;               foreign_lock        = 1&lt;/P&gt;&lt;P&gt;               object_not_found    = 2&lt;/P&gt;&lt;P&gt;               system_failure      = 3&lt;/P&gt;&lt;P&gt;               others              = 4.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  message e086 with 'Lock error' sy-subrc.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&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;               nr_range_nr         = wnorange&lt;/P&gt;&lt;P&gt;               object              = 'ZOWNNO'&lt;/P&gt;&lt;P&gt;               subobject           = wsubobj&lt;/P&gt;&lt;P&gt;         importing&lt;/P&gt;&lt;P&gt;               number                  = wdocno  "Number generated by SAP&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;               interval_not_found      = 1&lt;/P&gt;&lt;P&gt;               number_range_not_intern = 2&lt;/P&gt;&lt;P&gt;               object_not_found        = 3&lt;/P&gt;&lt;P&gt;               quantity_is_0           = 4&lt;/P&gt;&lt;P&gt;               quantity_is_not_1       = 5&lt;/P&gt;&lt;P&gt;               internal_overflow       = 6&lt;/P&gt;&lt;P&gt;               others                  = 7.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  message e086 with 'Number Range' sy-subrc.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'NUMBER_RANGE_DEQUEUE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      object                 = 'ZOWNNO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ge003.htm" target="test_blank"&gt;http://www.sap-img.com/ge003.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 11:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329472#M512399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T11:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking values into ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329473#M512400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;doesnt work still &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 09:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329473#M512400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T09:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking values into ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329474#M512401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Grame,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same question some time ago, pls. have a look:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="623601"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS.: and don't mark the question as answered, when it is not answered yet &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 09:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329474#M512401</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-08-08T09:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking values into ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329475#M512402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;right what about when material numbers contain even characters in them... so that doesnt resolve it completely in my case...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyways i used another approach to solve the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 10:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329475#M512402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T10:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking values into ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329476#M512403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works with letters as well, there is just an example with numbers only. I personally use that logic for cost centers and there are sometimes letters as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 10:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/breaking-values-into-ranges/m-p/2329476#M512403</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-08-08T10:04:49Z</dc:date>
    </item>
  </channel>
</rss>

