SAP ACE_HANDLE_ACCRUAL_OBJECT Function Module for Change Accrual Object in Accrual Engine (Distribution Server)









ACE_HANDLE_ACCRUAL_OBJECT is a standard ace handle accrual object SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change Accrual Object in Accrual Engine (Distribution Server) 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 ace handle accrual object FM, simply by entering the name ACE_HANDLE_ACCRUAL_OBJECT into the relevant SAP transaction such as SE37 or SE38.

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



Function ACE_HANDLE_ACCRUAL_OBJECT 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 'ACE_HANDLE_ACCRUAL_OBJECT'"Change Accrual Object in Accrual Engine (Distribution Server)
EXPORTING
ID_ACE_COMP = "Application Component for Accrual
ID_KEYDATE = "Posting Date / Key Date for Accruals
* ID_MODE = '03' "Edit Mode
* ID_DISPLAY_TREE = ACEC_CON-TRUE "Display Tree
* IT_OBJECT_KEYS = "Tree Interface of the ACE Object Navigator
* ID_TREE_VARIANT = "Tree variant

EXCEPTIONS
NOT_FOUND = 1 NO_AUTHORIZATION = 2 OBJECT_LOCKED = 3
.



IMPORTING Parameters details for ACE_HANDLE_ACCRUAL_OBJECT

ID_ACE_COMP - Application Component for Accrual

Data type: TACECOMP-COMP
Optional: No
Call by Reference: Yes

ID_KEYDATE - Posting Date / Key Date for Accruals

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

ID_MODE - Edit Mode

Data type: ACEDS_AUTH_ACTIVITY
Default: '03'
Optional: Yes
Call by Reference: Yes

ID_DISPLAY_TREE - Display Tree

Data type: FLAG
Default: ACEC_CON-TRUE
Optional: Yes
Call by Reference: Yes

IT_OBJECT_KEYS - Tree Interface of the ACE Object Navigator

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

ID_TREE_VARIANT - Tree variant

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

EXCEPTIONS details

NOT_FOUND - Not Found

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORIZATION - No authorization for this action

Data type:
Optional: No
Call by Reference: Yes

OBJECT_LOCKED - Accrual object is already locked

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ACE_HANDLE_ACCRUAL_OBJECT 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_not_found  TYPE STRING, "   
lv_id_ace_comp  TYPE TACECOMP-COMP, "   
lv_id_keydate  TYPE ACE_KEYDATE, "   
lv_no_authorization  TYPE ACE_KEYDATE, "   
lv_id_mode  TYPE ACEDS_AUTH_ACTIVITY, "   '03'
lv_object_locked  TYPE ACEDS_AUTH_ACTIVITY, "   
lv_id_display_tree  TYPE FLAG, "   ACEC_CON-TRUE
lv_it_object_keys  TYPE ACE_TREE_INTERFACE_T, "   
lv_id_tree_variant  TYPE ACE_TREEVARI. "   

  CALL FUNCTION 'ACE_HANDLE_ACCRUAL_OBJECT'  "Change Accrual Object in Accrual Engine (Distribution Server)
    EXPORTING
         ID_ACE_COMP = lv_id_ace_comp
         ID_KEYDATE = lv_id_keydate
         ID_MODE = lv_id_mode
         ID_DISPLAY_TREE = lv_id_display_tree
         IT_OBJECT_KEYS = lv_it_object_keys
         ID_TREE_VARIANT = lv_id_tree_variant
    EXCEPTIONS
        NOT_FOUND = 1
        NO_AUTHORIZATION = 2
        OBJECT_LOCKED = 3
. " ACE_HANDLE_ACCRUAL_OBJECT




ABAP code using 7.40 inline data declarations to call FM ACE_HANDLE_ACCRUAL_OBJECT

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.

 
"SELECT single COMP FROM TACECOMP INTO @DATA(ld_id_ace_comp).
 
 
 
DATA(ld_id_mode) = '03'.
 
 
DATA(ld_id_display_tree) = ACEC_CON-TRUE.
 
 
 


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!