## 4.2.15.6.2.1  Creating Intervals of Number Range Objects
Use the CREATE method to create number range intervals.
Import Parameters
| Parameter Name   | Field Name   | Value Help                                                    |
|------------------|--------------|---------------------------------------------------------------|
| INTERVAL         |              | Interval Table                                                |
|                  | SUBOBJECT    | Number Range Object Sub-object Value                          |
|                  | NRRANGENR    | Number Range Number                                           |
|                  | TOYEAR       | To Fiscal Year                                                |
|                  | FROMNUMBER   | From Number                                                   |
|                  | TONUMBER     | To Number                                                     |
|                  | NRLEVEL      | Number Range Level                                            |
|                  | EXTERNIND    | Internal (' ') or external ('X') number range flag            |
|                  | PROCIND      | Processing flag (I=Insert, D=Delete, U=Update,' '=no changes) |
| OBJECT           |              | Number Range Object                                           |
| SUBOBJECT        |              | Sub-object                                                    |
## Export Parameters
| Parameter Name   | Field Name   | Value Help                                                    |
|------------------|--------------|---------------------------------------------------------------|
| ERROR            |              | Flag showing that an error occurred during testing            |
| ERROR_INF        |              | Error Information                                             |
|                  | MSGNR        | Message Number                                                |
|                  | TABLENAME    | ParameterName                                                 |
|                  | FIELDNAME    | FieldName                                                     |
|                  | TABIX        | Index of Row with Error                                       |
| ERROR_IV         |              | Intervals with errors                                         |
|                  | SUBOBJECT    | Number range object subobject value                           |
|                  | NRRANGENR    | Number range number                                           |
|                  | TOYEAR       | To fiscal year                                                |
|                  | FROMNUMBER   | From number                                                   |
|                  | TONUMBER     | To number                                                     |
|                  | NRLEVEL      | Number range level                                            |
|                  | EXTERNIND    | Internal (' ') or external ('X') number range flag            |
|                  | PROCIND      | Processing flag (I=Insert, D=Delete, U=Update,' '=no changes) |
| WARNING          |              | Flag: Warning after check?                                    |
##  Sample Code
```
… CLASS zcl_nr_test_intervals_create DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. INTERFACES if_oo_adt_classrun. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_nr_test_intervals_create IMPLEMENTATION. METHOD if_oo_adt_classrun~main. DATA: lv_object   TYPE cl_numberrange_objects=>nr_attributes-object, lt_interval TYPE cl_numberrange_intervals=>nr_interval, ls_interval TYPE cl_numberrange_intervals=>nr_nriv_line. lv_object = 'Z_TEST_03'. *   intervals
```
```
ls_interval-nrrangenr  = '01'. ls_interval-fromnumber = '00000001'. ls_interval-tonumber   = '19999999'. ls_interval-procind    = 'I'. APPEND ls_interval TO lt_interval. ls_interval-nrrangenr  = '02'. ls_interval-fromnumber = '20000000'. ls_interval-tonumber   = '29999999'. APPEND ls_interval TO lt_interval. *   create intervals TRY. out->write( |Create Intervals for Object: { lv_object } | ). CALL METHOD cl_numberrange_intervals=>create EXPORTING interval  = lt_interval object    = lv_object subobject = ' ' IMPORTING error     = DATA(lv_error) error_inf = DATA(ls_error) error_iv  = DATA(lt_error_iv) warning   = DATA(lv_warning). ENDTRY. ENDMETHOD. ENDCLASS. …
```