SAP ACEPSDB_ITEM_READ Function Module for Buffered Read from Table ACEPSOI
ACEPSDB_ITEM_READ is a standard acepsdb item read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Buffered Read from Table ACEPSOI 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 acepsdb item read FM, simply by entering the name ACEPSDB_ITEM_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: ACEPSDB_ITEM
Program Name: SAPLACEPSDB_ITEM
Main Program: SAPLACEPSDB_ITEM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ACEPSDB_ITEM_READ 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 'ACEPSDB_ITEM_READ'"Buffered Read from Table ACEPSOI.
EXPORTING
ID_ACE_COMP = "
* IB_WITH_SIM = ' ' "General Indicator
* IB_ONLY_SIM = ' ' "Conversion Flag
* IB_ONLY_DB = ' ' "General Indicator
* IB_BYPASSING_BUFFER = ' ' "General Indicator
IT_SELRANGES = "
* IT_DATERANGE = "
* IT_COMP_SIMUPARAM_RANGES = "Table with Field-Specific Select Options
IMPORTING
ET_ACEPSOI = "Transfer Table in Logical Database Structure ACEPSOI_LDB
ET_RETURN = "Return Table
EXCEPTIONS
NOT_FOUND = 1 INVALID_SELECTIONS = 2 SIMULATION_ERROR = 3
IMPORTING Parameters details for ACEPSDB_ITEM_READ
ID_ACE_COMP -
Data type: TACECOMP-COMPOptional: No
Call by Reference: Yes
IB_WITH_SIM - General Indicator
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IB_ONLY_SIM - Conversion Flag
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IB_ONLY_DB - General Indicator
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IB_BYPASSING_BUFFER - General Indicator
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_SELRANGES -
Data type: RSDS_FRANGE_TOptional: No
Call by Reference: Yes
IT_DATERANGE -
Data type: RSDS_SELOPT_TOptional: Yes
Call by Reference: Yes
IT_COMP_SIMUPARAM_RANGES - Table with Field-Specific Select Options
Data type: ACE_FIELD_RANGES_TOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ACEPSDB_ITEM_READ
ET_ACEPSOI - Transfer Table in Logical Database Structure ACEPSOI_LDB
Data type: ACEPS_TB_ITEMOptional: No
Call by Reference: Yes
ET_RETURN - Return Table
Data type: BAPIRET2_TOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_SELECTIONS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SIMULATION_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ACEPSDB_ITEM_READ 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_et_acepsoi | TYPE ACEPS_TB_ITEM, " | |||
lv_id_ace_comp | TYPE TACECOMP-COMP, " | |||
lv_et_return | TYPE BAPIRET2_T, " | |||
lv_ib_with_sim | TYPE FLAG, " SPACE | |||
lv_invalid_selections | TYPE FLAG, " | |||
lv_ib_only_sim | TYPE FLAG, " SPACE | |||
lv_simulation_error | TYPE FLAG, " | |||
lv_ib_only_db | TYPE FLAG, " SPACE | |||
lv_ib_bypassing_buffer | TYPE FLAG, " SPACE | |||
lv_it_selranges | TYPE RSDS_FRANGE_T, " | |||
lv_it_daterange | TYPE RSDS_SELOPT_T, " | |||
lv_it_comp_simuparam_ranges | TYPE ACE_FIELD_RANGES_T. " |
  CALL FUNCTION 'ACEPSDB_ITEM_READ' "Buffered Read from Table ACEPSOI |
EXPORTING | ||
ID_ACE_COMP | = lv_id_ace_comp | |
IB_WITH_SIM | = lv_ib_with_sim | |
IB_ONLY_SIM | = lv_ib_only_sim | |
IB_ONLY_DB | = lv_ib_only_db | |
IB_BYPASSING_BUFFER | = lv_ib_bypassing_buffer | |
IT_SELRANGES | = lv_it_selranges | |
IT_DATERANGE | = lv_it_daterange | |
IT_COMP_SIMUPARAM_RANGES | = lv_it_comp_simuparam_ranges | |
IMPORTING | ||
ET_ACEPSOI | = lv_et_acepsoi | |
ET_RETURN | = lv_et_return | |
EXCEPTIONS | ||
NOT_FOUND = 1 | ||
INVALID_SELECTIONS = 2 | ||
SIMULATION_ERROR = 3 | ||
. " ACEPSDB_ITEM_READ |
ABAP code using 7.40 inline data declarations to call FM ACEPSDB_ITEM_READ
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_ib_with_sim) | = ' '. | |||
DATA(ld_ib_only_sim) | = ' '. | |||
DATA(ld_ib_only_db) | = ' '. | |||
DATA(ld_ib_bypassing_buffer) | = ' '. | |||
Search for further information about these or an SAP related objects