SAP APAR_GET_CUST_ITEMS Function Module for EBPP: Lesen von Posten
APAR_GET_CUST_ITEMS is a standard apar get cust items SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EBPP: Lesen von Posten 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 apar get cust items FM, simply by entering the name APAR_GET_CUST_ITEMS into the relevant SAP transaction such as SE37 or SE38.
Function Group: APAR_EBPP_IMPL
Program Name: SAPLAPAR_EBPP_IMPL
Main Program: SAPLAPAR_EBPP_IMPL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function APAR_GET_CUST_ITEMS 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 'APAR_GET_CUST_ITEMS'"EBPP: Lesen von Posten.
EXPORTING
I_COMP_CODE = "Buchungskreis
I_CUSTOMER = "Debitorennummer
* I_LOCK = ' ' "boolsche Variable (X=true, -=false, space=unknown)
* I_CURRENCY = ' ' "Währungsschlüssel für Fremdwährungsumrechnung
* I_CLEARED_ITEMS = ' ' "boolsche Variable (X=true, -=false, space=unknown)
* I_GET_DP_FOR_ALL = ' ' "boolsche Variable (X=true, -=false, space=unknown)
TABLES
* T_SELECTION = "Selektion: Identifikation eines Postens im APAR
* T_ITEMS = "EBPP: Positionsdaten
* T_CCINF = "Beleg: Daten zur Zahlung mit Zahlungskarten
EXCEPTIONS
ACCOUNT_LOCKED = 1 ACCOUNT_MISSING = 2
IMPORTING Parameters details for APAR_GET_CUST_ITEMS
I_COMP_CODE - Buchungskreis
Data type: BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_CUSTOMER - Debitorennummer
Data type: KUNNROptional: No
Call by Reference: No ( called with pass by value option)
I_LOCK - boolsche Variable (X=true, -=false, space=unknown)
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CURRENCY - Währungsschlüssel für Fremdwährungsumrechnung
Data type: WAERSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CLEARED_ITEMS - boolsche Variable (X=true, -=false, space=unknown)
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GET_DP_FOR_ALL - boolsche Variable (X=true, -=false, space=unknown)
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for APAR_GET_CUST_ITEMS
T_SELECTION - Selektion: Identifikation eines Postens im APAR
Data type: APAR_ITEM_IDOptional: Yes
Call by Reference: Yes
T_ITEMS - EBPP: Positionsdaten
Data type: APAREBPP_ITEMOptional: Yes
Call by Reference: No ( called with pass by value option)
T_CCINF - Beleg: Daten zur Zahlung mit Zahlungskarten
Data type: BSEGCOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ACCOUNT_LOCKED - Konto ist gesperrt
Data type:Optional: No
Call by Reference: Yes
ACCOUNT_MISSING - Konto ist nicht definiert
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for APAR_GET_CUST_ITEMS 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_code | TYPE BUKRS, " | |||
| lt_t_selection | TYPE STANDARD TABLE OF APAR_ITEM_ID, " | |||
| lv_account_locked | TYPE APAR_ITEM_ID, " | |||
| lt_t_items | TYPE STANDARD TABLE OF APAREBPP_ITEM, " | |||
| lv_i_customer | TYPE KUNNR, " | |||
| lv_account_missing | TYPE KUNNR, " | |||
| lv_i_lock | TYPE BOOLEAN, " SPACE | |||
| lt_t_ccinf | TYPE STANDARD TABLE OF BSEGC, " | |||
| lv_i_currency | TYPE WAERS, " SPACE | |||
| lv_i_cleared_items | TYPE BOOLEAN, " SPACE | |||
| lv_i_get_dp_for_all | TYPE BOOLEAN. " SPACE |
|   CALL FUNCTION 'APAR_GET_CUST_ITEMS' "EBPP: Lesen von Posten |
| EXPORTING | ||
| I_COMP_CODE | = lv_i_comp_code | |
| I_CUSTOMER | = lv_i_customer | |
| I_LOCK | = lv_i_lock | |
| I_CURRENCY | = lv_i_currency | |
| I_CLEARED_ITEMS | = lv_i_cleared_items | |
| I_GET_DP_FOR_ALL | = lv_i_get_dp_for_all | |
| TABLES | ||
| T_SELECTION | = lt_t_selection | |
| T_ITEMS | = lt_t_items | |
| T_CCINF | = lt_t_ccinf | |
| EXCEPTIONS | ||
| ACCOUNT_LOCKED = 1 | ||
| ACCOUNT_MISSING = 2 | ||
| . " APAR_GET_CUST_ITEMS | ||
ABAP code using 7.40 inline data declarations to call FM APAR_GET_CUST_ITEMS
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_i_lock) | = ' '. | |||
| DATA(ld_i_currency) | = ' '. | |||
| DATA(ld_i_cleared_items) | = ' '. | |||
| DATA(ld_i_get_dp_for_all) | = ' '. | |||
Search for further information about these or an SAP related objects