SAP ACEPS_CORRECTION_POSTING Function Module for Make Correction Posting in Accrual Engine









ACEPS_CORRECTION_POSTING is a standard aceps correction posting SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Make Correction Posting in Accrual Engine 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 correction posting FM, simply by entering the name ACEPS_CORRECTION_POSTING into the relevant SAP transaction such as SE37 or SE38.

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



Function ACEPS_CORRECTION_POSTING 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_CORRECTION_POSTING'"Make Correction Posting in Accrual Engine
EXPORTING
ID_COMP = "Accrual Engine Application Component
* ID_TESTRUN = "Test Run
* IS_POST_PARAMS = "Manual Posting Parameters for Posting in Accounting
* ID_RUNTYPE = "Run Type of Periodic Accrual Program
* ID_LASTEFFDATE = "Last Periodic Posting
* ID_NO_POSTING_CHECK = "Indicator: Do Not Call Up RWIN for Test Runs
* ID_FORCE_TRANSFER_2_ACC = 'X' "Force Transfer to AC
* ID_GET_NEW_TIMESTMP = 'X' "Get New Timestamp
* ID_GET_NEW_DOCNR = 'X' "Get New ACE Document Number
* ID_GET_NEW_AWKEY = 'X' "Get New AWKEY

IMPORTING
ET_ACC_PREDOC = "Transfer Table for BAPI Structure Document
ET_ACCDOC_RETURN = "Table with Messages About Transferred Accounting Documents
ET_RETURN = "Return Table

CHANGING
CT_ACEPSOIT = "Accrual Engine Line Items with Error Handling
.



IMPORTING Parameters details for ACEPS_CORRECTION_POSTING

ID_COMP - Accrual Engine Application Component

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

ID_TESTRUN - Test Run

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

IS_POST_PARAMS - Manual Posting Parameters for Posting in Accounting

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

ID_RUNTYPE - Run Type of Periodic Accrual Program

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

ID_LASTEFFDATE - Last Periodic Posting

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

ID_NO_POSTING_CHECK - Indicator: Do Not Call Up RWIN for Test Runs

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

ID_FORCE_TRANSFER_2_ACC - Force Transfer to AC

Data type: FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

ID_GET_NEW_TIMESTMP - Get New Timestamp

Data type: FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

ID_GET_NEW_DOCNR - Get New ACE Document Number

Data type: FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

ID_GET_NEW_AWKEY - Get New AWKEY

Data type: FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ACEPS_CORRECTION_POSTING

ET_ACC_PREDOC - Transfer Table for BAPI Structure Document

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

ET_ACCDOC_RETURN - Table with Messages About Transferred Accounting Documents

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

ET_RETURN - Return Table

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

CHANGING Parameters details for ACEPS_CORRECTION_POSTING

CT_ACEPSOIT - Accrual Engine Line Items with Error Handling

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

Copy and paste ABAP code example for ACEPS_CORRECTION_POSTING 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_acepsoit  TYPE ACEPS_ACE_DOC_EXTENDED_T, "   
lv_et_acc_predoc  TYPE ACEPS_BAPI_PREDOC_T, "   
lv_id_testrun  TYPE ACE_TESTRUN, "   
lv_is_post_params  TYPE ACEPS_MANUAL_POSTING_PARAMS, "   
lv_et_accdoc_return  TYPE ACE_ACCDOC_RETURN_T, "   
lv_et_return  TYPE BAPIRET2_T, "   
lv_id_runtype  TYPE ACEPS_RUNTYPE, "   
lv_id_lasteffdate  TYPE ACE_LASTEFFDATE, "   
lv_id_no_posting_check  TYPE ACE_PS_NO_RWIN_TEST, "   
lv_id_force_transfer_2_acc  TYPE FLAG, "   'X'
lv_id_get_new_timestmp  TYPE FLAG, "   'X'
lv_id_get_new_docnr  TYPE FLAG, "   'X'
lv_id_get_new_awkey  TYPE FLAG. "   'X'

  CALL FUNCTION 'ACEPS_CORRECTION_POSTING'  "Make Correction Posting in Accrual Engine
    EXPORTING
         ID_COMP = lv_id_comp
         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_FORCE_TRANSFER_2_ACC = lv_id_force_transfer_2_acc
         ID_GET_NEW_TIMESTMP = lv_id_get_new_timestmp
         ID_GET_NEW_DOCNR = lv_id_get_new_docnr
         ID_GET_NEW_AWKEY = lv_id_get_new_awkey
    IMPORTING
         ET_ACC_PREDOC = lv_et_acc_predoc
         ET_ACCDOC_RETURN = lv_et_accdoc_return
         ET_RETURN = lv_et_return
    CHANGING
         CT_ACEPSOIT = lv_ct_acepsoit
. " ACEPS_CORRECTION_POSTING




ABAP code using 7.40 inline data declarations to call FM ACEPS_CORRECTION_POSTING

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_force_transfer_2_acc) = 'X'.
 
DATA(ld_id_get_new_timestmp) = 'X'.
 
DATA(ld_id_get_new_docnr) = 'X'.
 
DATA(ld_id_get_new_awkey) = 'X'.
 


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!