SAP /PRA/DM_MIG_ACCT_CTRL Function Module for PRA: Create Account Entry Control Master Data
/PRA/DM_MIG_ACCT_CTRL is a standard /pra/dm mig acct ctrl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for PRA: Create Account Entry Control Master Data 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 /pra/dm mig acct ctrl FM, simply by entering the name /PRA/DM_MIG_ACCT_CTRL into the relevant SAP transaction such as SE37 or SE38.
Function Group: /PRA/DM_FI_API
Program Name: /PRA/SAPLDM_FI_API
Main Program: /PRA/SAPLDM_FI_API
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /PRA/DM_MIG_ACCT_CTRL 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 '/PRA/DM_MIG_ACCT_CTRL'"PRA: Create Account Entry Control Master Data.
EXPORTING
IT_DATA = "Account control Mass
* IV_TEST_RUN = "Indicator for program to be run in test mode
IMPORTING
ET_RETURN = "Return Parameter Table for S/4 Migration
ET_ACCT_CNTRL = "Table Type for Account Control Entry
IMPORTING Parameters details for /PRA/DM_MIG_ACCT_CTRL
IT_DATA - Account control Mass
Data type: /PRA/T_DM_ACCT_CNTRL_MASSOptional: No
Call by Reference: Yes
IV_TEST_RUN - Indicator for program to be run in test mode
Data type: /PRA/TEST_RUNOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for /PRA/DM_MIG_ACCT_CTRL
ET_RETURN - Return Parameter Table for S/4 Migration
Data type: FS4MIG_T_BAPIRET2Optional: No
Call by Reference: Yes
ET_ACCT_CNTRL - Table Type for Account Control Entry
Data type: /PRA/T_DM_ACCT_CNTRL_MSGOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for /PRA/DM_MIG_ACCT_CTRL 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_it_data | TYPE /PRA/T_DM_ACCT_CNTRL_MASS, " | |||
| lv_et_return | TYPE FS4MIG_T_BAPIRET2, " | |||
| lv_iv_test_run | TYPE /PRA/TEST_RUN, " | |||
| lv_et_acct_cntrl | TYPE /PRA/T_DM_ACCT_CNTRL_MSG. " |
|   CALL FUNCTION '/PRA/DM_MIG_ACCT_CTRL' "PRA: Create Account Entry Control Master Data |
| EXPORTING | ||
| IT_DATA | = lv_it_data | |
| IV_TEST_RUN | = lv_iv_test_run | |
| IMPORTING | ||
| ET_RETURN | = lv_et_return | |
| ET_ACCT_CNTRL | = lv_et_acct_cntrl | |
| . " /PRA/DM_MIG_ACCT_CTRL | ||
ABAP code using 7.40 inline data declarations to call FM /PRA/DM_MIG_ACCT_CTRL
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