SAP AC_INT_ECS_ACP_PROCESS Function Module for ECS: Auto Correction Processor









AC_INT_ECS_ACP_PROCESS is a standard ac int ecs acp process SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ECS: Auto Correction Processor 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 ac int ecs acp process FM, simply by entering the name AC_INT_ECS_ACP_PROCESS into the relevant SAP transaction such as SE37 or SE38.

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



Function AC_INT_ECS_ACP_PROCESS 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 'AC_INT_ECS_ACP_PROCESS'"ECS: Auto Correction Processor
EXPORTING
* I_CTRL_MODE = ' ' "Process Flow Control
I_STR_ACP_CTRL_PARM = "Processing Options for Automatic Correction Process
* I_STR_ITEM_MSG = "Structure for Error Messages for ECS Items (Data Only)

IMPORTING
E_TAB_ITEM_MSG = "Table Type for Error Messages for ECS Items
E_TAB_RETURN = "Table with BAPI Return Information

CHANGING
* C_STR_FI_ITEM = "ECS: FI Line Item (Header/Line Item/Crcy Data for Acctg I/F)
* C_STR_BBKPF = "Document header for accntng document (batch input structure)
* C_STR_BBSEG = "Accounting document segment (direct input)
.



IMPORTING Parameters details for AC_INT_ECS_ACP_PROCESS

I_CTRL_MODE - Process Flow Control

Data type: GLE_DTE_ECS_ACP_CTRL_MODE
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_STR_ACP_CTRL_PARM - Processing Options for Automatic Correction Process

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

I_STR_ITEM_MSG - Structure for Error Messages for ECS Items (Data Only)

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

EXPORTING Parameters details for AC_INT_ECS_ACP_PROCESS

E_TAB_ITEM_MSG - Table Type for Error Messages for ECS Items

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

E_TAB_RETURN - Table with BAPI Return Information

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

CHANGING Parameters details for AC_INT_ECS_ACP_PROCESS

C_STR_FI_ITEM - ECS: FI Line Item (Header/Line Item/Crcy Data for Acctg I/F)

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

C_STR_BBKPF - Document header for accntng document (batch input structure)

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

C_STR_BBSEG - Accounting document segment (direct input)

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

Copy and paste ABAP code example for AC_INT_ECS_ACP_PROCESS 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_ctrl_mode  TYPE GLE_DTE_ECS_ACP_CTRL_MODE, "   SPACE
lv_c_str_fi_item  TYPE GLE_STR_FI_ITEM_ALL_DATA, "   
lv_e_tab_item_msg  TYPE GLE_TAB_ECS_ITEM_MSG_DATA, "   
lv_c_str_bbkpf  TYPE BBKPF, "   
lv_e_tab_return  TYPE BAPIRETTAB, "   
lv_i_str_acp_ctrl_parm  TYPE GLE_STR_ECS_ACP_CTRL_PARM, "   
lv_c_str_bbseg  TYPE BBSEG_DI, "   
lv_i_str_item_msg  TYPE GLE_STR_ECS_ITEM_MSG_DATA. "   

  CALL FUNCTION 'AC_INT_ECS_ACP_PROCESS'  "ECS: Auto Correction Processor
    EXPORTING
         I_CTRL_MODE = lv_i_ctrl_mode
         I_STR_ACP_CTRL_PARM = lv_i_str_acp_ctrl_parm
         I_STR_ITEM_MSG = lv_i_str_item_msg
    IMPORTING
         E_TAB_ITEM_MSG = lv_e_tab_item_msg
         E_TAB_RETURN = lv_e_tab_return
    CHANGING
         C_STR_FI_ITEM = lv_c_str_fi_item
         C_STR_BBKPF = lv_c_str_bbkpf
         C_STR_BBSEG = lv_c_str_bbseg
. " AC_INT_ECS_ACP_PROCESS




ABAP code using 7.40 inline data declarations to call FM AC_INT_ECS_ACP_PROCESS

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.

DATA(ld_i_ctrl_mode) = ' '.
 
 
 
 
 
 
 
 


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!