SAP ACAC_OBJECT_RANGE_CHECK Function Module for Check the object range if it is self-defined or external









ACAC_OBJECT_RANGE_CHECK is a standard acac object range check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check the object range if it is self-defined or external 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 acac object range check FM, simply by entering the name ACAC_OBJECT_RANGE_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function ACAC_OBJECT_RANGE_CHECK 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 'ACAC_OBJECT_RANGE_CHECK'"Check the object range if it is self-defined or external
EXPORTING
IV_ACAC_OBJTYPE = "Accrual Object Category for Manual Accruals
IV_BUKRS = "Company Code
* IV_ACAC_OBJNUMBER = "Object Number of an Accrual Object

IMPORTING
EB_SELFDEFINED = "
EB_EXTERNAL = "
EB_NUM_IN_RANGE = "
EV_NUM_FROM = "From number
EV_NUM_TO = "To number

EXCEPTIONS
NR_RANGE_NR1_NOT_FOUND = 1 NR_RANGE_NR1_NOT_INTERN = 2 NR_RANGE_NR2_MUST_BE_SPACE = 3 NR_RANGE_NR2_NOT_EXTERN = 4 NR_RANGE_NR2_NOT_FOUND = 5 OBJECT_NOT_FOUND = 6 SUBOBJECT_MUST_BE_SPACE = 7 SUBOBJECT_NOT_FOUND = 8 INTERVAL_NOT_FOUND = 9
.



IMPORTING Parameters details for ACAC_OBJECT_RANGE_CHECK

IV_ACAC_OBJTYPE - Accrual Object Category for Manual Accruals

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

IV_BUKRS - Company Code

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

IV_ACAC_OBJNUMBER - Object Number of an Accrual Object

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

EXPORTING Parameters details for ACAC_OBJECT_RANGE_CHECK

EB_SELFDEFINED -

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

EB_EXTERNAL -

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

EB_NUM_IN_RANGE -

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

EV_NUM_FROM - From number

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

EV_NUM_TO - To number

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

EXCEPTIONS details

NR_RANGE_NR1_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NR_RANGE_NR1_NOT_INTERN -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NR_RANGE_NR2_MUST_BE_SPACE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NR_RANGE_NR2_NOT_EXTERN -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NR_RANGE_NR2_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SUBOBJECT_MUST_BE_SPACE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SUBOBJECT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERVAL_NOT_FOUND - Entry not found in number range interval customizing

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ACAC_OBJECT_RANGE_CHECK 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_eb_selfdefined  TYPE ABAP_BOOL, "   
lv_iv_acac_objtype  TYPE ACAC_OBJTYPE, "   
lv_nr_range_nr1_not_found  TYPE ACAC_OBJTYPE, "   
lv_iv_bukrs  TYPE BUKRS, "   
lv_eb_external  TYPE ABAP_BOOL, "   
lv_nr_range_nr1_not_intern  TYPE ABAP_BOOL, "   
lv_eb_num_in_range  TYPE ABAP_BOOL, "   
lv_iv_acac_objnumber  TYPE ACAC_OBJNUMBER, "   
lv_nr_range_nr2_must_be_space  TYPE ACAC_OBJNUMBER, "   
lv_ev_num_from  TYPE NRFROM, "   
lv_nr_range_nr2_not_extern  TYPE NRFROM, "   
lv_ev_num_to  TYPE NRTO, "   
lv_nr_range_nr2_not_found  TYPE NRTO, "   
lv_object_not_found  TYPE NRTO, "   
lv_subobject_must_be_space  TYPE NRTO, "   
lv_subobject_not_found  TYPE NRTO, "   
lv_interval_not_found  TYPE NRTO. "   

  CALL FUNCTION 'ACAC_OBJECT_RANGE_CHECK'  "Check the object range if it is self-defined or external
    EXPORTING
         IV_ACAC_OBJTYPE = lv_iv_acac_objtype
         IV_BUKRS = lv_iv_bukrs
         IV_ACAC_OBJNUMBER = lv_iv_acac_objnumber
    IMPORTING
         EB_SELFDEFINED = lv_eb_selfdefined
         EB_EXTERNAL = lv_eb_external
         EB_NUM_IN_RANGE = lv_eb_num_in_range
         EV_NUM_FROM = lv_ev_num_from
         EV_NUM_TO = lv_ev_num_to
    EXCEPTIONS
        NR_RANGE_NR1_NOT_FOUND = 1
        NR_RANGE_NR1_NOT_INTERN = 2
        NR_RANGE_NR2_MUST_BE_SPACE = 3
        NR_RANGE_NR2_NOT_EXTERN = 4
        NR_RANGE_NR2_NOT_FOUND = 5
        OBJECT_NOT_FOUND = 6
        SUBOBJECT_MUST_BE_SPACE = 7
        SUBOBJECT_NOT_FOUND = 8
        INTERVAL_NOT_FOUND = 9
. " ACAC_OBJECT_RANGE_CHECK




ABAP code using 7.40 inline data declarations to call FM ACAC_OBJECT_RANGE_CHECK

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!