SAP CUSTOMER_OPEN_ITEMS_STRUCTURE Function Module for
CUSTOMER_OPEN_ITEMS_STRUCTURE is a standard customer open items structure SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 customer open items structure FM, simply by entering the name CUSTOMER_OPEN_ITEMS_STRUCTURE into the relevant SAP transaction such as SE37 or SE38.
Function Group: F035
Program Name: SAPLF035
Main Program: SAPLF035
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function CUSTOMER_OPEN_ITEMS_STRUCTURE 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 'CUSTOMER_OPEN_ITEMS_STRUCTURE'".
EXPORTING
I_KKBER = "Credit control area
I_KUNNR = "Customer
I_PDTOL = "No.Days in Arrears
I_REGUL = "Only read payer data?
* I_LOGSYS = "
* I_TMSTMP = "Time Stamp
* I_ERLTA = '01' "Permitted ageing in days
* I_ERLST = '00' "Permitted Ageing in Hours
* I_XCRCV = ' ' "
IMPORTING
E_SFAEL = "Total of all open items
E_SUMOP = "Total of open items w. day in arrears > PDTOL
E_WAERS = "Currency
E_XODAT = "
E_XNDAT = "
E_VERTA = "
E_VERST = "
E_XDATAAKT = "
TABLES
* E_KNKKF2 = "
EXCEPTIONS
INVALID_CALL = 1 NO_BUKRS = 2 NO_ITEMS = 3
IMPORTING Parameters details for CUSTOMER_OPEN_ITEMS_STRUCTURE
I_KKBER - Credit control area
Data type: T014-KKBEROptional: No
Call by Reference: No ( called with pass by value option)
I_KUNNR - Customer
Data type: KNKK-KUNNROptional: No
Call by Reference: No ( called with pass by value option)
I_PDTOL - No.Days in Arrears
Data type: T691F-PDTOLOptional: No
Call by Reference: No ( called with pass by value option)
I_REGUL - Only read payer data?
Data type: T691F-REGULOptional: No
Call by Reference: No ( called with pass by value option)
I_LOGSYS -
Data type: KNKKF2-LOGSYSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TMSTMP - Time Stamp
Data type: KNKKF2-TMSTMPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ERLTA - Permitted ageing in days
Data type: RF035-ERLTADefault: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ERLST - Permitted Ageing in Hours
Data type: RF035-ERLSTDefault: '00'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XCRCV -
Data type: BOOLE-BOOLEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CUSTOMER_OPEN_ITEMS_STRUCTURE
E_SFAEL - Total of all open items
Data type: RF035-SFAELOptional: No
Call by Reference: No ( called with pass by value option)
E_SUMOP - Total of open items w. day in arrears > PDTOL
Data type: RF035-SUMOPOptional: No
Call by Reference: No ( called with pass by value option)
E_WAERS - Currency
Data type: BSID-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
E_XODAT -
Data type: RF035-XODATOptional: No
Call by Reference: No ( called with pass by value option)
E_XNDAT -
Data type: RF035-XNDATOptional: No
Call by Reference: No ( called with pass by value option)
E_VERTA -
Data type: RF035-ERLTAOptional: No
Call by Reference: No ( called with pass by value option)
E_VERST -
Data type: RF035-ERLSTOptional: No
Call by Reference: No ( called with pass by value option)
E_XDATAAKT -
Data type: BOOLE-BOOLEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CUSTOMER_OPEN_ITEMS_STRUCTURE
E_KNKKF2 -
Data type: KNKKF2Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_CALL - Invalid call
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_BUKRS - Customer created in no company code
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ITEMS - No open items were found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CUSTOMER_OPEN_ITEMS_STRUCTURE 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_e_sfael | TYPE RF035-SFAEL, " | |||
lv_i_kkber | TYPE T014-KKBER, " | |||
lt_e_knkkf2 | TYPE STANDARD TABLE OF KNKKF2, " | |||
lv_invalid_call | TYPE KNKKF2, " | |||
lv_e_sumop | TYPE RF035-SUMOP, " | |||
lv_i_kunnr | TYPE KNKK-KUNNR, " | |||
lv_no_bukrs | TYPE KNKK, " | |||
lv_e_waers | TYPE BSID-WAERS, " | |||
lv_i_pdtol | TYPE T691F-PDTOL, " | |||
lv_no_items | TYPE T691F, " | |||
lv_e_xodat | TYPE RF035-XODAT, " | |||
lv_i_regul | TYPE T691F-REGUL, " | |||
lv_e_xndat | TYPE RF035-XNDAT, " | |||
lv_i_logsys | TYPE KNKKF2-LOGSYS, " | |||
lv_e_verta | TYPE RF035-ERLTA, " | |||
lv_i_tmstmp | TYPE KNKKF2-TMSTMP, " | |||
lv_e_verst | TYPE RF035-ERLST, " | |||
lv_i_erlta | TYPE RF035-ERLTA, " '01' | |||
lv_i_erlst | TYPE RF035-ERLST, " '00' | |||
lv_e_xdataakt | TYPE BOOLE-BOOLE, " | |||
lv_i_xcrcv | TYPE BOOLE-BOOLE. " ' ' |
  CALL FUNCTION 'CUSTOMER_OPEN_ITEMS_STRUCTURE' " |
EXPORTING | ||
I_KKBER | = lv_i_kkber | |
I_KUNNR | = lv_i_kunnr | |
I_PDTOL | = lv_i_pdtol | |
I_REGUL | = lv_i_regul | |
I_LOGSYS | = lv_i_logsys | |
I_TMSTMP | = lv_i_tmstmp | |
I_ERLTA | = lv_i_erlta | |
I_ERLST | = lv_i_erlst | |
I_XCRCV | = lv_i_xcrcv | |
IMPORTING | ||
E_SFAEL | = lv_e_sfael | |
E_SUMOP | = lv_e_sumop | |
E_WAERS | = lv_e_waers | |
E_XODAT | = lv_e_xodat | |
E_XNDAT | = lv_e_xndat | |
E_VERTA | = lv_e_verta | |
E_VERST | = lv_e_verst | |
E_XDATAAKT | = lv_e_xdataakt | |
TABLES | ||
E_KNKKF2 | = lt_e_knkkf2 | |
EXCEPTIONS | ||
INVALID_CALL = 1 | ||
NO_BUKRS = 2 | ||
NO_ITEMS = 3 | ||
. " CUSTOMER_OPEN_ITEMS_STRUCTURE |
ABAP code using 7.40 inline data declarations to call FM CUSTOMER_OPEN_ITEMS_STRUCTURE
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 SFAEL FROM RF035 INTO @DATA(ld_e_sfael). | ||||
"SELECT single KKBER FROM T014 INTO @DATA(ld_i_kkber). | ||||
"SELECT single SUMOP FROM RF035 INTO @DATA(ld_e_sumop). | ||||
"SELECT single KUNNR FROM KNKK INTO @DATA(ld_i_kunnr). | ||||
"SELECT single WAERS FROM BSID INTO @DATA(ld_e_waers). | ||||
"SELECT single PDTOL FROM T691F INTO @DATA(ld_i_pdtol). | ||||
"SELECT single XODAT FROM RF035 INTO @DATA(ld_e_xodat). | ||||
"SELECT single REGUL FROM T691F INTO @DATA(ld_i_regul). | ||||
"SELECT single XNDAT FROM RF035 INTO @DATA(ld_e_xndat). | ||||
"SELECT single LOGSYS FROM KNKKF2 INTO @DATA(ld_i_logsys). | ||||
"SELECT single ERLTA FROM RF035 INTO @DATA(ld_e_verta). | ||||
"SELECT single TMSTMP FROM KNKKF2 INTO @DATA(ld_i_tmstmp). | ||||
"SELECT single ERLST FROM RF035 INTO @DATA(ld_e_verst). | ||||
"SELECT single ERLTA FROM RF035 INTO @DATA(ld_i_erlta). | ||||
DATA(ld_i_erlta) | = '01'. | |||
"SELECT single ERLST FROM RF035 INTO @DATA(ld_i_erlst). | ||||
DATA(ld_i_erlst) | = '00'. | |||
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_e_xdataakt). | ||||
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xcrcv). | ||||
DATA(ld_i_xcrcv) | = ' '. | |||
Search for further information about these or an SAP related objects