SAP C149_NUM_RANGE_INTERVAL_CREATE Function Module for NOTRANSL: EHS: Anlegen von Nummernkreisintervallen
C149_NUM_RANGE_INTERVAL_CREATE is a standard c149 num range interval create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS: Anlegen von Nummernkreisintervallen processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for c149 num range interval create FM, simply by entering the name C149_NUM_RANGE_INTERVAL_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: C149
Program Name: SAPLC149
Main Program: SAPLC149
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function C149_NUM_RANGE_INTERVAL_CREATE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'C149_NUM_RANGE_INTERVAL_CREATE'"NOTRANSL: EHS: Anlegen von Nummernkreisintervallen.
EXPORTING
I_OBJECT = "Number Range Object
* I_SUBOBJECT = ' ' "Subobject
* I_RANGE_NAME = ' ' "Number range number
* I_NUMBER_FROM = ' ' "From number
* I_NUMBER_TO = ' ' "To number
EXCEPTIONS
OBJECT_NOT_FOUND = 1 NRIV_CREATION_ERROR = 2 NRIV_CLOSE_ERROR = 3
IMPORTING Parameters details for C149_NUM_RANGE_INTERVAL_CREATE
I_OBJECT - Number Range Object
Data type: NRIV-OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
I_SUBOBJECT - Subobject
Data type: NRIV-SUBOBJECTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RANGE_NAME - Number range number
Data type: NRIV-NRRANGENRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NUMBER_FROM - From number
Data type: NRIV-FROMNUMBERDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NUMBER_TO - To number
Data type: NRIV-TONUMBERDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OBJECT_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NRIV_CREATION_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NRIV_CLOSE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for C149_NUM_RANGE_INTERVAL_CREATE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_object | TYPE NRIV-OBJECT, " | |||
| lv_object_not_found | TYPE NRIV, " | |||
| lv_i_subobject | TYPE NRIV-SUBOBJECT, " SPACE | |||
| lv_nriv_creation_error | TYPE NRIV, " | |||
| lv_i_range_name | TYPE NRIV-NRRANGENR, " SPACE | |||
| lv_nriv_close_error | TYPE NRIV, " | |||
| lv_i_number_from | TYPE NRIV-FROMNUMBER, " SPACE | |||
| lv_i_number_to | TYPE NRIV-TONUMBER. " SPACE |
|   CALL FUNCTION 'C149_NUM_RANGE_INTERVAL_CREATE' "NOTRANSL: EHS: Anlegen von Nummernkreisintervallen |
| EXPORTING | ||
| I_OBJECT | = lv_i_object | |
| I_SUBOBJECT | = lv_i_subobject | |
| I_RANGE_NAME | = lv_i_range_name | |
| I_NUMBER_FROM | = lv_i_number_from | |
| I_NUMBER_TO | = lv_i_number_to | |
| EXCEPTIONS | ||
| OBJECT_NOT_FOUND = 1 | ||
| NRIV_CREATION_ERROR = 2 | ||
| NRIV_CLOSE_ERROR = 3 | ||
| . " C149_NUM_RANGE_INTERVAL_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM C149_NUM_RANGE_INTERVAL_CREATE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single OBJECT FROM NRIV INTO @DATA(ld_i_object). | ||||
| "SELECT single SUBOBJECT FROM NRIV INTO @DATA(ld_i_subobject). | ||||
| DATA(ld_i_subobject) | = ' '. | |||
| "SELECT single NRRANGENR FROM NRIV INTO @DATA(ld_i_range_name). | ||||
| DATA(ld_i_range_name) | = ' '. | |||
| "SELECT single FROMNUMBER FROM NRIV INTO @DATA(ld_i_number_from). | ||||
| DATA(ld_i_number_from) | = ' '. | |||
| "SELECT single TONUMBER FROM NRIV INTO @DATA(ld_i_number_to). | ||||
| DATA(ld_i_number_to) | = ' '. | |||
Search for further information about these or an SAP related objects