SAP TPM_THX_NUMBER_GET_INFO Function Module for Buffered Access to Number Range Information









TPM_THX_NUMBER_GET_INFO is a standard tpm thx number get info SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Buffered Access to Number Range Information 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 tpm thx number get info FM, simply by entering the name TPM_THX_NUMBER_GET_INFO into the relevant SAP transaction such as SE37 or SE38.

Function Group: TPM_THX_APPL
Program Name: SAPLTPM_THX_APPL
Main Program: SAPLTPM_THX_APPL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TPM_THX_NUMBER_GET_INFO 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 'TPM_THX_NUMBER_GET_INFO'"Buffered Access to Number Range Information
EXPORTING
IM_NR_RANGE_NR = "Number range number
IM_NROBJ = "Name of number range object
* IM_COMPANY_CODE = "Company Code
* IM_FISCAL_YEAR = "Fiscal Year

IMPORTING
E_STR_NRIV = "Number Range Intervals

EXCEPTIONS
INTERVAL_NOT_FOUND = 1 OBJECT_NOT_FOUND = 2 PARAMETER_ERROR = 3 INVALID_NUMBER_RANGE_OBJECT = 4
.



IMPORTING Parameters details for TPM_THX_NUMBER_GET_INFO

IM_NR_RANGE_NR - Number range number

Data type: NRNR
Optional: No
Call by Reference: Yes

IM_NROBJ - Name of number range object

Data type: NROBJ
Optional: No
Call by Reference: Yes

IM_COMPANY_CODE - Company Code

Data type: BUKRS
Optional: Yes
Call by Reference: Yes

IM_FISCAL_YEAR - Fiscal Year

Data type: GJAHR
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for TPM_THX_NUMBER_GET_INFO

E_STR_NRIV - Number Range Intervals

Data type: NRIV
Optional: No
Call by Reference: Yes

EXCEPTIONS details

INTERVAL_NOT_FOUND - Interval not found

Data type:
Optional: No
Call by Reference: Yes

OBJECT_NOT_FOUND - Object not defined in table TNRO

Data type:
Optional: No
Call by Reference: Yes

PARAMETER_ERROR - Function parameters incomplete

Data type:
Optional: No
Call by Reference: Yes

INVALID_NUMBER_RANGE_OBJECT - Number range object is not supported

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TPM_THX_NUMBER_GET_INFO 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_e_str_nriv  TYPE NRIV, "   
lv_im_nr_range_nr  TYPE NRNR, "   
lv_interval_not_found  TYPE NRNR, "   
lv_im_nrobj  TYPE NROBJ, "   
lv_object_not_found  TYPE NROBJ, "   
lv_im_company_code  TYPE BUKRS, "   
lv_parameter_error  TYPE BUKRS, "   
lv_im_fiscal_year  TYPE GJAHR, "   
lv_invalid_number_range_object  TYPE GJAHR. "   

  CALL FUNCTION 'TPM_THX_NUMBER_GET_INFO'  "Buffered Access to Number Range Information
    EXPORTING
         IM_NR_RANGE_NR = lv_im_nr_range_nr
         IM_NROBJ = lv_im_nrobj
         IM_COMPANY_CODE = lv_im_company_code
         IM_FISCAL_YEAR = lv_im_fiscal_year
    IMPORTING
         E_STR_NRIV = lv_e_str_nriv
    EXCEPTIONS
        INTERVAL_NOT_FOUND = 1
        OBJECT_NOT_FOUND = 2
        PARAMETER_ERROR = 3
        INVALID_NUMBER_RANGE_OBJECT = 4
. " TPM_THX_NUMBER_GET_INFO




ABAP code using 7.40 inline data declarations to call FM TPM_THX_NUMBER_GET_INFO

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.

 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!