SAP ACEDSDB_HEADER_PREFETCH Function Module for Fill Internal Table for Periodic Posting









ACEDSDB_HEADER_PREFETCH is a standard acedsdb header prefetch SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Fill Internal Table for Periodic Posting 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 acedsdb header prefetch FM, simply by entering the name ACEDSDB_HEADER_PREFETCH into the relevant SAP transaction such as SE37 or SE38.

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



Function ACEDSDB_HEADER_PREFETCH 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 'ACEDSDB_HEADER_PREFETCH'"Fill Internal Table for Periodic Posting
EXPORTING
I_COMP = "Application Component for Accrual
I_BUKRS = "Company Code
* IR_REFKEY = "Table with Select Options for Reference
* IS_COMP_REFKEY_RANGES = "Transfer Structure for RefKey Selection Conditions
* IR_OBJID = "Accrual Objects
* IT_DOPT = "Dynamic Selection Criteria
* IT_REFSUBKEY = "Table with Accrual Subobjects
* ID_ALLSTATUS = "Indicator: Also Read Objects to Be Archived
* IT_ACEOBJ = "Preselection of Accrual Objects

EXCEPTIONS
ERROR_OCCURRED = 1
.



IMPORTING Parameters details for ACEDSDB_HEADER_PREFETCH

I_COMP - Application Component for Accrual

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

I_BUKRS - Company Code

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

IR_REFKEY - Table with Select Options for Reference

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

IS_COMP_REFKEY_RANGES - Transfer Structure for RefKey Selection Conditions

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

IR_OBJID - Accrual Objects

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

IT_DOPT - Dynamic Selection Criteria

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

IT_REFSUBKEY - Table with Accrual Subobjects

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

ID_ALLSTATUS - Indicator: Also Read Objects to Be Archived

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

IT_ACEOBJ - Preselection of Accrual Objects

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

EXCEPTIONS details

ERROR_OCCURRED - Error occurred

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ACEDSDB_HEADER_PREFETCH 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_comp  TYPE ACE_COMP, "   
lv_error_occurred  TYPE ACE_COMP, "   
lv_i_bukrs  TYPE ACE_BUKRS, "   
lv_ir_refkey  TYPE ACE_DS_REFKEY_RANGE_T, "   
lv_is_comp_refkey_ranges  TYPE ACE_COMP_SPECIFIC_OBJ_RANGES, "   
lv_ir_objid  TYPE ACE_OBJID_RANGE_T, "   
lv_it_dopt  TYPE ACE_DOPT_T, "   
lv_it_refsubkey  TYPE ACE_SUBKEY_EXT_T, "   
lv_id_allstatus  TYPE FLAG, "   
lv_it_aceobj  TYPE ACEA_TY_ACEOBJ_TAB. "   

  CALL FUNCTION 'ACEDSDB_HEADER_PREFETCH'  "Fill Internal Table for Periodic Posting
    EXPORTING
         I_COMP = lv_i_comp
         I_BUKRS = lv_i_bukrs
         IR_REFKEY = lv_ir_refkey
         IS_COMP_REFKEY_RANGES = lv_is_comp_refkey_ranges
         IR_OBJID = lv_ir_objid
         IT_DOPT = lv_it_dopt
         IT_REFSUBKEY = lv_it_refsubkey
         ID_ALLSTATUS = lv_id_allstatus
         IT_ACEOBJ = lv_it_aceobj
    EXCEPTIONS
        ERROR_OCCURRED = 1
. " ACEDSDB_HEADER_PREFETCH




ABAP code using 7.40 inline data declarations to call FM ACEDSDB_HEADER_PREFETCH

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.

 
 
 
 
 
 
 
 
 
 


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!