SAP /AIN/DM_OBJECT_READ_BY_RANGE Function Module for Read object by range - ONLY TO BE USED BY UI !!









/AIN/DM_OBJECT_READ_BY_RANGE is a standard /ain/dm object read by range SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read object by range - ONLY TO BE USED BY UI !! 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 /ain/dm object read by range FM, simply by entering the name /AIN/DM_OBJECT_READ_BY_RANGE into the relevant SAP transaction such as SE37 or SE38.

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



Function /AIN/DM_OBJECT_READ_BY_RANGE 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 '/AIN/DM_OBJECT_READ_BY_RANGE'"Read object by range - ONLY TO BE USED BY UI !!
EXPORTING
* IT_OBJ_GUID = "Table type guid
* IT_PRT_OBJ_GUID = "Table type guid
* IT_OBJ_STATUS_RANGE = "Table type object status range
* IT_LOC_GUID = "Table type guid
* IT_INSERT_DEV_GUID = "Table type guid
* IT_UPDATE_DEV_GUID = "Table type guid
* IT_INSERT_ACT_GUID = "Table type guid
* IT_UPDATE_ACT_GUID = "Table type guid
* IT_INSERT_TIME_RANGE = "Timestamp range table
* IT_UPDATE_TIME_RANGE = "Timestamp range table
* IV_FIELD_NAME = "Element name
* IT_EPC1_RANGE = "Table type EPC range
* IT_FIELD_VALUE_RANGE = "Field value range table
* IT_EPC1_VERSION_RANGE = "Table type ID version range
* IT_EPC2_RANGE = "Table type EPC range
* IT_EPC2_VERSION_RANGE = "Table type ID version range
* IT_PROD_GUID = "Table type guid
* IT_SSCC_RANGE = "Table type: SSCC range
* IT_GTIN_RANGE = "Table type: GTIN range
* IT_TOP_OBJ_GUID = "Table type guid

IMPORTING
ET_OBJECT = "Object table type

EXCEPTIONS
INSUFFICIENT_DATA = 1 OBJECT_NOT_FOUND = 2 OPEN_SQL_ERROR = 3
.



IMPORTING Parameters details for /AIN/DM_OBJECT_READ_BY_RANGE

IT_OBJ_GUID - Table type guid

Data type: /AIN/DM_GUID_TAB
Optional: Yes
Call by Reference: Yes

IT_PRT_OBJ_GUID - Table type guid

Data type: /AIN/DM_GUID_TAB
Optional: Yes
Call by Reference: Yes

IT_OBJ_STATUS_RANGE - Table type object status range

Data type: /AIN/DM_OBJ_STATUS_RTAB
Optional: Yes
Call by Reference: Yes

IT_LOC_GUID - Table type guid

Data type: /AIN/DM_GUID_TAB
Optional: Yes
Call by Reference: Yes

IT_INSERT_DEV_GUID - Table type guid

Data type: /AIN/DM_GUID_TAB
Optional: Yes
Call by Reference: Yes

IT_UPDATE_DEV_GUID - Table type guid

Data type: /AIN/DM_GUID_TAB
Optional: Yes
Call by Reference: Yes

IT_INSERT_ACT_GUID - Table type guid

Data type: /AIN/DM_GUID_TAB
Optional: Yes
Call by Reference: Yes

IT_UPDATE_ACT_GUID - Table type guid

Data type: /AIN/DM_GUID_TAB
Optional: Yes
Call by Reference: Yes

IT_INSERT_TIME_RANGE - Timestamp range table

Data type: /AIN/DM_TIMESTAMP_RTAB
Optional: Yes
Call by Reference: Yes

IT_UPDATE_TIME_RANGE - Timestamp range table

Data type: /AIN/DM_TIMESTAMP_RTAB
Optional: Yes
Call by Reference: Yes

IV_FIELD_NAME - Element name

Data type: /AIN/PRF_ELEMENT
Optional: Yes
Call by Reference: Yes

IT_EPC1_RANGE - Table type EPC range

Data type: /AIN/EPC_RTAB
Optional: Yes
Call by Reference: Yes

IT_FIELD_VALUE_RANGE - Field value range table

Data type: /AIN/DM_FIELDVALUE_RTAB
Optional: Yes
Call by Reference: Yes

IT_EPC1_VERSION_RANGE - Table type ID version range

Data type: /AIN/DM_EPC_VERSION_RTAB
Optional: Yes
Call by Reference: Yes

IT_EPC2_RANGE - Table type EPC range

Data type: /AIN/EPC_RTAB
Optional: Yes
Call by Reference: Yes

IT_EPC2_VERSION_RANGE - Table type ID version range

Data type: /AIN/DM_EPC_VERSION_RTAB
Optional: Yes
Call by Reference: Yes

IT_PROD_GUID - Table type guid

Data type: /AIN/DM_GUID_TAB
Optional: Yes
Call by Reference: Yes

IT_SSCC_RANGE - Table type: SSCC range

Data type: /AIN/SSCC_RTAB
Optional: Yes
Call by Reference: Yes

IT_GTIN_RANGE - Table type: GTIN range

Data type: /AIN/GTIN_RTAB
Optional: Yes
Call by Reference: Yes

IT_TOP_OBJ_GUID - Table type guid

Data type: /AIN/DM_GUID_TAB
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for /AIN/DM_OBJECT_READ_BY_RANGE

ET_OBJECT - Object table type

Data type: /AIN/DM_OBJECT_TAB
Optional: No
Call by Reference: Yes

EXCEPTIONS details

INSUFFICIENT_DATA - Insufficient input data

Data type:
Optional: No
Call by Reference: Yes

OBJECT_NOT_FOUND - Object does not exist in the database

Data type:
Optional: No
Call by Reference: Yes

OPEN_SQL_ERROR - An Open SQL exception occurred

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /AIN/DM_OBJECT_READ_BY_RANGE 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_et_object  TYPE /AIN/DM_OBJECT_TAB, "   
lv_it_obj_guid  TYPE /AIN/DM_GUID_TAB, "   
lv_insufficient_data  TYPE /AIN/DM_GUID_TAB, "   
lv_it_prt_obj_guid  TYPE /AIN/DM_GUID_TAB, "   
lv_it_obj_status_range  TYPE /AIN/DM_OBJ_STATUS_RTAB, "   
lv_it_loc_guid  TYPE /AIN/DM_GUID_TAB, "   
lv_it_insert_dev_guid  TYPE /AIN/DM_GUID_TAB, "   
lv_it_update_dev_guid  TYPE /AIN/DM_GUID_TAB, "   
lv_it_insert_act_guid  TYPE /AIN/DM_GUID_TAB, "   
lv_it_update_act_guid  TYPE /AIN/DM_GUID_TAB, "   
lv_it_insert_time_range  TYPE /AIN/DM_TIMESTAMP_RTAB, "   
lv_it_update_time_range  TYPE /AIN/DM_TIMESTAMP_RTAB, "   
lv_iv_field_name  TYPE /AIN/PRF_ELEMENT, "   
lv_it_epc1_range  TYPE /AIN/EPC_RTAB, "   
lv_object_not_found  TYPE /AIN/EPC_RTAB, "   
lv_it_field_value_range  TYPE /AIN/DM_FIELDVALUE_RTAB, "   
lv_open_sql_error  TYPE /AIN/DM_FIELDVALUE_RTAB, "   
lv_it_epc1_version_range  TYPE /AIN/DM_EPC_VERSION_RTAB, "   
lv_it_epc2_range  TYPE /AIN/EPC_RTAB, "   
lv_it_epc2_version_range  TYPE /AIN/DM_EPC_VERSION_RTAB, "   
lv_it_prod_guid  TYPE /AIN/DM_GUID_TAB, "   
lv_it_sscc_range  TYPE /AIN/SSCC_RTAB, "   
lv_it_gtin_range  TYPE /AIN/GTIN_RTAB, "   
lv_it_top_obj_guid  TYPE /AIN/DM_GUID_TAB. "   

  CALL FUNCTION '/AIN/DM_OBJECT_READ_BY_RANGE'  "Read object by range - ONLY TO BE USED BY UI !!
    EXPORTING
         IT_OBJ_GUID = lv_it_obj_guid
         IT_PRT_OBJ_GUID = lv_it_prt_obj_guid
         IT_OBJ_STATUS_RANGE = lv_it_obj_status_range
         IT_LOC_GUID = lv_it_loc_guid
         IT_INSERT_DEV_GUID = lv_it_insert_dev_guid
         IT_UPDATE_DEV_GUID = lv_it_update_dev_guid
         IT_INSERT_ACT_GUID = lv_it_insert_act_guid
         IT_UPDATE_ACT_GUID = lv_it_update_act_guid
         IT_INSERT_TIME_RANGE = lv_it_insert_time_range
         IT_UPDATE_TIME_RANGE = lv_it_update_time_range
         IV_FIELD_NAME = lv_iv_field_name
         IT_EPC1_RANGE = lv_it_epc1_range
         IT_FIELD_VALUE_RANGE = lv_it_field_value_range
         IT_EPC1_VERSION_RANGE = lv_it_epc1_version_range
         IT_EPC2_RANGE = lv_it_epc2_range
         IT_EPC2_VERSION_RANGE = lv_it_epc2_version_range
         IT_PROD_GUID = lv_it_prod_guid
         IT_SSCC_RANGE = lv_it_sscc_range
         IT_GTIN_RANGE = lv_it_gtin_range
         IT_TOP_OBJ_GUID = lv_it_top_obj_guid
    IMPORTING
         ET_OBJECT = lv_et_object
    EXCEPTIONS
        INSUFFICIENT_DATA = 1
        OBJECT_NOT_FOUND = 2
        OPEN_SQL_ERROR = 3
. " /AIN/DM_OBJECT_READ_BY_RANGE




ABAP code using 7.40 inline data declarations to call FM /AIN/DM_OBJECT_READ_BY_RANGE

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!