SAP IMRG_TEST_DATA_VALIDATE Function Module for NOTRANSL: IMRG Test data validation for posting









IMRG_TEST_DATA_VALIDATE is a standard imrg test data validate 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: IMRG Test data validation for posting 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 imrg test data validate FM, simply by entering the name IMRG_TEST_DATA_VALIDATE into the relevant SAP transaction such as SE37 or SE38.

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



Function IMRG_TEST_DATA_VALIDATE 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 'IMRG_TEST_DATA_VALIDATE'"NOTRANSL: IMRG Test data validation for posting
EXPORTING
* IV_ERDAT = "Date on which the object was created
IV_MODE = "Numeric 1-character
* IV_STOP = "Checkbox

TABLES
* RETURN = "Return Parameter
* T_IMRG = "Measurement Document
* T_IMRG_INS = "Measurement Document
* T_IMRG_UPD = "Measurement Document
* T_IMRG_OLD = "Measurement Document
* T_IMPTT = "Measuring Point (Table)

EXCEPTIONS
IMRG_TEST_ERROR = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLIMR1_005 Exit in AUTHORITY_CHECK_IMPT

IMPORTING Parameters details for IMRG_TEST_DATA_VALIDATE

IV_ERDAT - Date on which the object was created

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

IV_MODE - Numeric 1-character

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

IV_STOP - Checkbox

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

TABLES Parameters details for IMRG_TEST_DATA_VALIDATE

RETURN - Return Parameter

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

T_IMRG - Measurement Document

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

T_IMRG_INS - Measurement Document

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

T_IMRG_UPD - Measurement Document

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

T_IMRG_OLD - Measurement Document

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

T_IMPTT - Measuring Point (Table)

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

EXCEPTIONS details

IMRG_TEST_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for IMRG_TEST_DATA_VALIDATE 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:
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_iv_erdat  TYPE ICRDT, "   
lv_imrg_test_error  TYPE ICRDT, "   
lt_t_imrg  TYPE STANDARD TABLE OF IMRG, "   
lv_iv_mode  TYPE NUM1, "   
lv_iv_stop  TYPE XFELD, "   
lt_t_imrg_ins  TYPE STANDARD TABLE OF IMRG, "   
lt_t_imrg_upd  TYPE STANDARD TABLE OF IMRG, "   
lt_t_imrg_old  TYPE STANDARD TABLE OF IMRG, "   
lt_t_imptt  TYPE STANDARD TABLE OF IMPTT. "   

  CALL FUNCTION 'IMRG_TEST_DATA_VALIDATE'  "NOTRANSL: IMRG Test data validation for posting
    EXPORTING
         IV_ERDAT = lv_iv_erdat
         IV_MODE = lv_iv_mode
         IV_STOP = lv_iv_stop
    TABLES
         RETURN = lt_return
         T_IMRG = lt_t_imrg
         T_IMRG_INS = lt_t_imrg_ins
         T_IMRG_UPD = lt_t_imrg_upd
         T_IMRG_OLD = lt_t_imrg_old
         T_IMPTT = lt_t_imptt
    EXCEPTIONS
        IMRG_TEST_ERROR = 1
. " IMRG_TEST_DATA_VALIDATE




ABAP code using 7.40 inline data declarations to call FM IMRG_TEST_DATA_VALIDATE

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!