SAP IMA_CHECK_VTREFGRP Function Module for IO: Consistency Check for IO Group
IMA_CHECK_VTREFGRP is a standard ima check vtrefgrp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IO: Consistency Check for IO Group 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 ima check vtrefgrp FM, simply by entering the name IMA_CHECK_VTREFGRP into the relevant SAP transaction such as SE37 or SE38.
Function Group: FSCDMAD_IO_CHECK
Program Name: SAPLFSCDMAD_IO_CHECK
Main Program: SAPLFSCDMAD_IO_CHECK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function IMA_CHECK_VTREFGRP 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 'IMA_CHECK_VTREFGRP'"IO: Consistency Check for IO Group.
EXPORTING
I_INSOBJECT = "Identification for an Insurance Object
I_PARTNER = "Business Partner Number
I_CMGRP = "Collection Management: Master Data Group
I_STRAT = "Collection Strategy
* I_CPERS = "Collections Contact Person
EXCEPTIONS
WRONG_STRAT = 1 WRONG_CMGRP = 2 WRONG_CPERS = 3 MISSING_INPUT = 4 MISSING_STRAT = 5 MISSING_CPERS = 6
IMPORTING Parameters details for IMA_CHECK_VTREFGRP
I_INSOBJECT - Identification for an Insurance Object
Data type: INSOBJECT_MDOptional: No
Call by Reference: Yes
I_PARTNER - Business Partner Number
Data type: BU_PARTNEROptional: No
Call by Reference: Yes
I_CMGRP - Collection Management: Master Data Group
Data type: CMGRP_CM_KKOptional: No
Call by Reference: Yes
I_STRAT - Collection Strategy
Data type: STRAT_CM_KKOptional: No
Call by Reference: Yes
I_CPERS - Collections Contact Person
Data type: CPERS_CM_KKOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
WRONG_STRAT -
Data type:Optional: No
Call by Reference: Yes
WRONG_CMGRP -
Data type:Optional: No
Call by Reference: Yes
WRONG_CPERS -
Data type:Optional: No
Call by Reference: Yes
MISSING_INPUT - Incomplete input data
Data type:Optional: No
Call by Reference: Yes
MISSING_STRAT -
Data type:Optional: No
Call by Reference: Yes
MISSING_CPERS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for IMA_CHECK_VTREFGRP 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_insobject | TYPE INSOBJECT_MD, " | |||
| lv_wrong_strat | TYPE INSOBJECT_MD, " | |||
| lv_i_partner | TYPE BU_PARTNER, " | |||
| lv_wrong_cmgrp | TYPE BU_PARTNER, " | |||
| lv_i_cmgrp | TYPE CMGRP_CM_KK, " | |||
| lv_wrong_cpers | TYPE CMGRP_CM_KK, " | |||
| lv_i_strat | TYPE STRAT_CM_KK, " | |||
| lv_missing_input | TYPE STRAT_CM_KK, " | |||
| lv_i_cpers | TYPE CPERS_CM_KK, " | |||
| lv_missing_strat | TYPE CPERS_CM_KK, " | |||
| lv_missing_cpers | TYPE CPERS_CM_KK. " |
|   CALL FUNCTION 'IMA_CHECK_VTREFGRP' "IO: Consistency Check for IO Group |
| EXPORTING | ||
| I_INSOBJECT | = lv_i_insobject | |
| I_PARTNER | = lv_i_partner | |
| I_CMGRP | = lv_i_cmgrp | |
| I_STRAT | = lv_i_strat | |
| I_CPERS | = lv_i_cpers | |
| EXCEPTIONS | ||
| WRONG_STRAT = 1 | ||
| WRONG_CMGRP = 2 | ||
| WRONG_CPERS = 3 | ||
| MISSING_INPUT = 4 | ||
| MISSING_STRAT = 5 | ||
| MISSING_CPERS = 6 | ||
| . " IMA_CHECK_VTREFGRP | ||
ABAP code using 7.40 inline data declarations to call FM IMA_CHECK_VTREFGRP
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