SAP ACEPS_DOCUMENTS_POST Function Module for Build and Post BAPI Documents and ACE Documents
ACEPS_DOCUMENTS_POST is a standard aceps documents post SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Build and Post BAPI Documents and ACE Documents 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 aceps documents post FM, simply by entering the name ACEPS_DOCUMENTS_POST into the relevant SAP transaction such as SE37 or SE38.
Function Group: ACEPS_POST_DISPATCH
Program Name: SAPLACEPS_POST_DISPATCH
Main Program: SAPLACEPS_POST_DISPATCH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ACEPS_DOCUMENTS_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 'ACEPS_DOCUMENTS_POST'"Build and Post BAPI Documents and ACE Documents.
EXPORTING
ID_COMP = "
* ID_REVERSAL_POSTING = "
* ID_TESTRUN = "X: Test Run
* IS_POST_PARAMS = "
* ID_RUNTYPE = "Run Type of Periodic Posting Program
* ID_LASTEFFDATE = "
* ID_NO_POSTING_CHECK = "Flag: Do not Call Up RWIN for Test Runs
* ID_GET_NEW_TIMESTMP = ACEC_CON-TRUE "
* ID_TRNSFR_INITIAL_AWKEY_ONLY = "
* ID_FORCE_TRANSFER_2_ACC = ACEC_CON-TRUE "
* ID_DELAY_ACCPOSTING = "
IMPORTING
ET_ACC_PREDOC = "
ET_RETURN = "Return Table
ET_ACCDOC_RETURN = "Return Table
CHANGING
CT_DOCITEMS = "Accrual Engine Line Items with Error Handling
IMPORTING Parameters details for ACEPS_DOCUMENTS_POST
ID_COMP -
Data type: ACE_COMPOptional: No
Call by Reference: Yes
ID_REVERSAL_POSTING -
Data type: FLAGOptional: Yes
Call by Reference: Yes
ID_TESTRUN - X: Test Run
Data type: XFELDOptional: Yes
Call by Reference: Yes
IS_POST_PARAMS -
Data type: ACEPS_MANUAL_POSTING_PARAMSOptional: Yes
Call by Reference: Yes
ID_RUNTYPE - Run Type of Periodic Posting Program
Data type: ACEPS_RUNTYPEOptional: Yes
Call by Reference: Yes
ID_LASTEFFDATE -
Data type: ACE_LASTEFFDATEOptional: Yes
Call by Reference: Yes
ID_NO_POSTING_CHECK - Flag: Do not Call Up RWIN for Test Runs
Data type: ACE_PS_NO_RWIN_TESTOptional: Yes
Call by Reference: Yes
ID_GET_NEW_TIMESTMP -
Data type: FLAGDefault: ACEC_CON-TRUE
Optional: Yes
Call by Reference: Yes
ID_TRNSFR_INITIAL_AWKEY_ONLY -
Data type: FLAGOptional: Yes
Call by Reference: Yes
ID_FORCE_TRANSFER_2_ACC -
Data type: FLAGDefault: ACEC_CON-TRUE
Optional: Yes
Call by Reference: Yes
ID_DELAY_ACCPOSTING -
Data type: FLAGOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ACEPS_DOCUMENTS_POST
ET_ACC_PREDOC -
Data type: ACEPS_BAPI_PREDOC_TOptional: No
Call by Reference: Yes
ET_RETURN - Return Table
Data type: BAPIRET2_TOptional: No
Call by Reference: Yes
ET_ACCDOC_RETURN - Return Table
Data type: ACE_ACCDOC_RETURN_TOptional: No
Call by Reference: Yes
CHANGING Parameters details for ACEPS_DOCUMENTS_POST
CT_DOCITEMS - Accrual Engine Line Items with Error Handling
Data type: ACEPS_ACE_DOC_EXTENDED_TOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ACEPS_DOCUMENTS_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_id_comp | TYPE ACE_COMP, " | |||
| lv_ct_docitems | TYPE ACEPS_ACE_DOC_EXTENDED_T, " | |||
| lv_et_acc_predoc | TYPE ACEPS_BAPI_PREDOC_T, " | |||
| lv_id_reversal_posting | TYPE FLAG, " | |||
| lv_id_testrun | TYPE XFELD, " | |||
| lv_et_return | TYPE BAPIRET2_T, " | |||
| lv_is_post_params | TYPE ACEPS_MANUAL_POSTING_PARAMS, " | |||
| lv_id_runtype | TYPE ACEPS_RUNTYPE, " | |||
| lv_et_accdoc_return | TYPE ACE_ACCDOC_RETURN_T, " | |||
| lv_id_lasteffdate | TYPE ACE_LASTEFFDATE, " | |||
| lv_id_no_posting_check | TYPE ACE_PS_NO_RWIN_TEST, " | |||
| lv_id_get_new_timestmp | TYPE FLAG, " ACEC_CON-TRUE | |||
| lv_id_trnsfr_initial_awkey_only | TYPE FLAG, " | |||
| lv_id_force_transfer_2_acc | TYPE FLAG, " ACEC_CON-TRUE | |||
| lv_id_delay_accposting | TYPE FLAG. " |
|   CALL FUNCTION 'ACEPS_DOCUMENTS_POST' "Build and Post BAPI Documents and ACE Documents |
| EXPORTING | ||
| ID_COMP | = lv_id_comp | |
| ID_REVERSAL_POSTING | = lv_id_reversal_posting | |
| ID_TESTRUN | = lv_id_testrun | |
| IS_POST_PARAMS | = lv_is_post_params | |
| ID_RUNTYPE | = lv_id_runtype | |
| ID_LASTEFFDATE | = lv_id_lasteffdate | |
| ID_NO_POSTING_CHECK | = lv_id_no_posting_check | |
| ID_GET_NEW_TIMESTMP | = lv_id_get_new_timestmp | |
| ID_TRNSFR_INITIAL_AWKEY_ONLY | = lv_id_trnsfr_initial_awkey_only | |
| ID_FORCE_TRANSFER_2_ACC | = lv_id_force_transfer_2_acc | |
| ID_DELAY_ACCPOSTING | = lv_id_delay_accposting | |
| IMPORTING | ||
| ET_ACC_PREDOC | = lv_et_acc_predoc | |
| ET_RETURN | = lv_et_return | |
| ET_ACCDOC_RETURN | = lv_et_accdoc_return | |
| CHANGING | ||
| CT_DOCITEMS | = lv_ct_docitems | |
| . " ACEPS_DOCUMENTS_POST | ||
ABAP code using 7.40 inline data declarations to call FM ACEPS_DOCUMENTS_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_id_get_new_timestmp) | = ACEC_CON-TRUE. | |||
| DATA(ld_id_force_transfer_2_acc) | = ACEC_CON-TRUE. | |||
Search for further information about these or an SAP related objects