{"audience":"BASIS administrators, FI/MM/SD application support teams and those responsible for year-end closing.","authorization_objects":[{"note":"Display authorization for number range objects (activity 03)","object":"S_NUMBER"}],"components":[],"countries":[],"effort_days_max":3,"effort_days_min":2,"effort_size":"S","faq":[{"a":"No. The program only reads and reports. A new interval or next-year interval is created by an authorized person in SNRO or in the application's own screen (for example FBN1).","q":"Does the program change number ranges?"},{"a":"For buffered objects the application servers reserve numbers in packages, so the level in NRIV is slightly ahead of actual usage. This means the warning comes early; the finding line shows the buffering setting.","q":"Is the utilization correct for buffered objects?"},{"a":"Yes. Because the program writes the level to the log in each run, an estimated exhaustion date can be calculated from the consumption of the last 30 days. This extension takes about one day.","q":"Can an exhaustion forecast (days left) be added?"}],"features":[{"code":"background","label":"Runs as a background job","note":""},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"email","label":"Send the result by email","note":"An email with an Excel attachment is sent only when there are findings."},{"code":"excel","label":"Export to Excel","note":""}],"functions":[{"name":"SO_NEW_DOCUMENT_ATT_SEND_API1","role":"Sends the findings list to the BASIS team as an Excel attachment"}],"gap":"SNRO and the application screens show the current status of a number range one object at a time; the warning percentage of the object only produces a message when a number is drawn in dialog, and nobody sees that message for background postings. There is no standard monitor that scans all objects at once and reports a missing next-year interval before year end. The custom program does this check every night and sends an email only when there are findings.","id":"basis-number-range-exhaustion-alert-job","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The intervals of the selected objects are read from NRIV; external intervals (EXTERNIND = X) are skipped because the number is given by the user.\n2. Utilization % = (NRLEVEL − FROMNUMBER) ÷ (TONUMBER − FROMNUMBER) × 100; remaining numbers = TONUMBER − NRLEVEL. Intervals from which no number has been drawn yet (NRLEVEL = 0) count as zero utilization.\n3. Threshold: the general threshold on the selection screen or the warning percentage defined for the object in TNRO (PERCENTAGE), whichever is lower.\n4. For year-dependent intervals (TOYEAR filled), with \"Check next year\" selected, a next-year entry is searched for every sub-object and interval number used this year; if none exists, a finding is written.\n5. Buffering information (TNRO-BUFFER, NOIVBUFFER) is added to the finding; for buffered objects it is noted that actual usage can be a few numbers ahead.\n6. Findings are written to an ALV list and the application log; if there is at least one finding, an email with an Excel attachment is sent with SO_NEW_DOCUMENT_ATT_SEND_API1.","module":"BASIS","object_type":"batch_job","output_columns":[{"calculated":false,"formula":"","label":"Object","source_field":"OBJECT","source_table":"NRIV"},{"calculated":false,"formula":"","label":"Sub-object","source_field":"SUBOBJECT","source_table":"NRIV"},{"calculated":false,"formula":"","label":"Interval","source_field":"NRRANGENR","source_table":"NRIV"},{"calculated":false,"formula":"","label":"To year","source_field":"TOYEAR","source_table":"NRIV"},{"calculated":false,"formula":"","label":"From number","source_field":"FROMNUMBER","source_table":"NRIV"},{"calculated":false,"formula":"","label":"To number","source_field":"TONUMBER","source_table":"NRIV"},{"calculated":false,"formula":"","label":"Current level","source_field":"NRLEVEL","source_table":"NRIV"},{"calculated":true,"formula":"(NRLEVEL − FROMNUMBER) ÷ (TONUMBER − FROMNUMBER) × 100","label":"Utilization %","source_field":null,"source_table":null},{"calculated":true,"formula":"NRIV-TONUMBER − NRIV-NRLEVEL","label":"Remaining numbers","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Object warning %","source_field":"PERCENTAGE","source_table":"TNRO"},{"calculated":false,"formula":"","label":"Buffering","source_field":"BUFFER","source_table":"TNRO"},{"calculated":true,"formula":"Threshold exceeded or next-year interval missing","label":"Finding","source_field":null,"source_table":null}],"parameters":[{"example":"RF_BELEG, MATERIALNR, RV_BELEG","kind":"select_option","label":"Number range object","name":"S_OBJECT","ref_field":"NRIV-OBJECT","required":false},{"example":"1000","kind":"select_option","label":"Sub-object (for example company code)","name":"S_SUBOBJ","ref_field":"NRIV-SUBOBJECT","required":false},{"example":"85","kind":"parameter","label":"Warning threshold (%)","name":"P_PCT","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Check next-year interval","name":"P_NEXTYR","ref_field":"","required":false},{"example":"sap-basis@ornek.com.tr","kind":"parameter","label":"Email recipient","name":"P_MAIL","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Send email only when there are findings","name":"P_ONLYF","ref_field":"","required":false}],"part_of":["basis-daily-system-check-pack"],"performance":"NRIV and TNRO are small tables; the program finishes in seconds. Run it every night; enabling the next-year check only from October to December avoids unnecessary warnings.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=basis-number-range-exhaustion-alert-job","related":["basis-cancelled-long-running-jobs"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Shows the intervals and current level of one number range object; there is no automatic alert that scans all objects.","tcode":"SNRO"}],"summary":"A custom background program that checks the utilization of document, material and other number ranges every night and reports by email the intervals above the threshold, as well as objects that have no interval for the next year before year end. Mornings where nothing can be posted because a number range ran out are prevented in advance.","tables":[{"access":"read","join_on":"","role":"Number range intervals: sub-object, year, from, to and current level","table":"NRIV","variant":"both"},{"access":"read","join_on":"TNRO-OBJECT = NRIV-OBJECT","role":"Warning percentage, year dependency and buffering of the object","table":"TNRO","variant":"both"}],"title":"Number Range Exhaustion Alert Program (Email)","url":"https://nekuhub.com/en/programs/number-range-exhaustion-alert-program/","vendor_id":"nekudos"}