SAP GLE_ECS_MAPI_DOCUMENT_POST Function Module for
GLE_ECS_MAPI_DOCUMENT_POST is a standard gle ecs mapi document post SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 gle ecs mapi document post FM, simply by entering the name GLE_ECS_MAPI_DOCUMENT_POST into the relevant SAP transaction such as SE37 or SE38.
Function Group: GLE_ECS_AI_MAPI
Program Name: SAPLGLE_ECS_AI_MAPI
Main Program: SAPLGLE_ECS_AI_MAPI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GLE_ECS_MAPI_DOCUMENT_POST 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 'GLE_ECS_MAPI_DOCUMENT_POST'".
EXPORTING
IS_ACCHD = "Standard Table Type for BKPF
I_PROC_SEQ = "ECS MAPI Document Post Process Sequence
* I_RETRY = "Indicator: 'X'=retry (transfer) post; ' '=initial (re)post
* I_SAVE_ECS_ITEM = 'X' "Checkbox
* I_NO_ECS = ' ' "Post Without ECS Item after Errors
* I_SAVE_UPDATE_TASK = 'X' "
IT_ACCIT = "Accounting: Item Information + ADB Average Activity
IT_ACCCR = "Accounting Interface: Currency Information
* IT_ACCTX = "Document segment for tax data plus additional fields RWIN
* IT_ACCWT = "Withholding Tax Information for FI Interface
IS_ACP_CTRL_PARM = "ECS: Parameters for Auto Correction Processor
* IT_RETURN = "Exceptions and Messages from Processing before Post
* I_TESTRUN = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* I_COMP_ERR = "ECS: Compound Error Category
IMPORTING
ES_ACCHD = "Accounting Interface: Header Information
ET_ACCIT = "Accounting Interface: Item Information
ET_ACCCR = "Accounting Interface: Currency Information
ET_ACCTX = "Document segment for tax data plus additional fields RWIN
ET_ACCWT = "Withholding Tax Information for FI Interface
ET_BKPF = "
ET_BSEG = "
ET_RETURN = "Return Table
CHANGING
* CT_ECS_ITEM_KEY = "Table Type for ECS Item IDs
CT_FI_DOC_KEY = "ECS: ACC Reference for FI Document
EXCEPTIONS
ECS_FAIL_NUMKR_GET = 1 ECS_FAIL_NUMKR_UPDATE = 2
IMPORTING Parameters details for GLE_ECS_MAPI_DOCUMENT_POST
IS_ACCHD - Standard Table Type for BKPF
Data type: ACCHDOptional: No
Call by Reference: Yes
I_PROC_SEQ - ECS MAPI Document Post Process Sequence
Data type: GLE_DTE_ECS_MAPI_PROC_SEQOptional: No
Call by Reference: Yes
I_RETRY - Indicator: 'X'=retry (transfer) post; ' '=initial (re)post
Data type: GLE_DTE_ECS_RETRYOptional: Yes
Call by Reference: Yes
I_SAVE_ECS_ITEM - Checkbox
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_NO_ECS - Post Without ECS Item after Errors
Data type: GLE_DTE_ECS_MAPI_NO_ECSDefault: ' '
Optional: Yes
Call by Reference: Yes
I_SAVE_UPDATE_TASK -
Data type: BOOLE_DDefault: 'X'
Optional: Yes
Call by Reference: Yes
IT_ACCIT - Accounting: Item Information + ADB Average Activity
Data type: ACCIT_TOptional: No
Call by Reference: Yes
IT_ACCCR - Accounting Interface: Currency Information
Data type: ACCCR_TOptional: No
Call by Reference: Yes
IT_ACCTX - Document segment for tax data plus additional fields RWIN
Data type: ACCBSET_TOptional: Yes
Call by Reference: Yes
IT_ACCWT - Withholding Tax Information for FI Interface
Data type: ACCIT_WT_TOptional: Yes
Call by Reference: Yes
IS_ACP_CTRL_PARM - ECS: Parameters for Auto Correction Processor
Data type: GLE_STR_ECS_ACP_CTRL_PARMOptional: No
Call by Reference: Yes
IT_RETURN - Exceptions and Messages from Processing before Post
Data type: BAPIRET2_TOptional: Yes
Call by Reference: Yes
I_TESTRUN - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: Yes
Call by Reference: Yes
I_COMP_ERR - ECS: Compound Error Category
Data type: GLE_DTE_ECS_ERROR_COMPOUNDOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for GLE_ECS_MAPI_DOCUMENT_POST
ES_ACCHD - Accounting Interface: Header Information
Data type: ACCHDOptional: No
Call by Reference: Yes
ET_ACCIT - Accounting Interface: Item Information
Data type: ACCIT_TOptional: No
Call by Reference: Yes
ET_ACCCR - Accounting Interface: Currency Information
Data type: ACCCR_TOptional: No
Call by Reference: Yes
ET_ACCTX - Document segment for tax data plus additional fields RWIN
Data type: ACCBSET_TOptional: No
Call by Reference: Yes
ET_ACCWT - Withholding Tax Information for FI Interface
Data type: ACCIT_WT_TOptional: No
Call by Reference: Yes
ET_BKPF -
Data type: BKPF_TOptional: No
Call by Reference: Yes
ET_BSEG -
Data type: BSEG_TOptional: No
Call by Reference: Yes
ET_RETURN - Return Table
Data type: BAPIRET2_TOptional: No
Call by Reference: Yes
CHANGING Parameters details for GLE_ECS_MAPI_DOCUMENT_POST
CT_ECS_ITEM_KEY - Table Type for ECS Item IDs
Data type: GLE_TAB_ECS_ITEM_KEY_POSOptional: Yes
Call by Reference: Yes
CT_FI_DOC_KEY - ECS: ACC Reference for FI Document
Data type: GLE_TAB_ECS_DOC_RECORDOptional: No
Call by Reference: Yes
EXCEPTIONS details
ECS_FAIL_NUMKR_GET -
Data type:Optional: No
Call by Reference: Yes
ECS_FAIL_NUMKR_UPDATE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for GLE_ECS_MAPI_DOCUMENT_POST 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_es_acchd | TYPE ACCHD, " | |||
| lv_is_acchd | TYPE ACCHD, " | |||
| lv_ct_ecs_item_key | TYPE GLE_TAB_ECS_ITEM_KEY_POS, " | |||
| lv_ecs_fail_numkr_get | TYPE GLE_TAB_ECS_ITEM_KEY_POS, " | |||
| lv_i_proc_seq | TYPE GLE_DTE_ECS_MAPI_PROC_SEQ, " | |||
| lv_i_retry | TYPE GLE_DTE_ECS_RETRY, " | |||
| lv_i_save_ecs_item | TYPE XFELD, " 'X' | |||
| lv_i_no_ecs | TYPE GLE_DTE_ECS_MAPI_NO_ECS, " ' ' | |||
| lv_i_save_update_task | TYPE BOOLE_D, " 'X' | |||
| lv_et_accit | TYPE ACCIT_T, " | |||
| lv_it_accit | TYPE ACCIT_T, " | |||
| lv_ct_fi_doc_key | TYPE GLE_TAB_ECS_DOC_RECORD, " | |||
| lv_ecs_fail_numkr_update | TYPE GLE_TAB_ECS_DOC_RECORD, " | |||
| lv_et_acccr | TYPE ACCCR_T, " | |||
| lv_it_acccr | TYPE ACCCR_T, " | |||
| lv_et_acctx | TYPE ACCBSET_T, " | |||
| lv_it_acctx | TYPE ACCBSET_T, " | |||
| lv_et_accwt | TYPE ACCIT_WT_T, " | |||
| lv_it_accwt | TYPE ACCIT_WT_T, " | |||
| lv_et_bkpf | TYPE BKPF_T, " | |||
| lv_is_acp_ctrl_parm | TYPE GLE_STR_ECS_ACP_CTRL_PARM, " | |||
| lv_et_bseg | TYPE BSEG_T, " | |||
| lv_it_return | TYPE BAPIRET2_T, " | |||
| lv_et_return | TYPE BAPIRET2_T, " | |||
| lv_i_testrun | TYPE BOOLE_D, " | |||
| lv_i_comp_err | TYPE GLE_DTE_ECS_ERROR_COMPOUND. " |
|   CALL FUNCTION 'GLE_ECS_MAPI_DOCUMENT_POST' " |
| EXPORTING | ||
| IS_ACCHD | = lv_is_acchd | |
| I_PROC_SEQ | = lv_i_proc_seq | |
| I_RETRY | = lv_i_retry | |
| I_SAVE_ECS_ITEM | = lv_i_save_ecs_item | |
| I_NO_ECS | = lv_i_no_ecs | |
| I_SAVE_UPDATE_TASK | = lv_i_save_update_task | |
| IT_ACCIT | = lv_it_accit | |
| IT_ACCCR | = lv_it_acccr | |
| IT_ACCTX | = lv_it_acctx | |
| IT_ACCWT | = lv_it_accwt | |
| IS_ACP_CTRL_PARM | = lv_is_acp_ctrl_parm | |
| IT_RETURN | = lv_it_return | |
| I_TESTRUN | = lv_i_testrun | |
| I_COMP_ERR | = lv_i_comp_err | |
| IMPORTING | ||
| ES_ACCHD | = lv_es_acchd | |
| ET_ACCIT | = lv_et_accit | |
| ET_ACCCR | = lv_et_acccr | |
| ET_ACCTX | = lv_et_acctx | |
| ET_ACCWT | = lv_et_accwt | |
| ET_BKPF | = lv_et_bkpf | |
| ET_BSEG | = lv_et_bseg | |
| ET_RETURN | = lv_et_return | |
| CHANGING | ||
| CT_ECS_ITEM_KEY | = lv_ct_ecs_item_key | |
| CT_FI_DOC_KEY | = lv_ct_fi_doc_key | |
| EXCEPTIONS | ||
| ECS_FAIL_NUMKR_GET = 1 | ||
| ECS_FAIL_NUMKR_UPDATE = 2 | ||
| . " GLE_ECS_MAPI_DOCUMENT_POST | ||
ABAP code using 7.40 inline data declarations to call FM GLE_ECS_MAPI_DOCUMENT_POST
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_save_ecs_item) | = 'X'. | |||
| DATA(ld_i_no_ecs) | = ' '. | |||
| DATA(ld_i_save_update_task) | = 'X'. | |||
Search for further information about these or an SAP related objects