SAP BCA_DIM_READ_OPENITEMS Function Module for Reading open items









BCA_DIM_READ_OPENITEMS is a standard bca dim read openitems SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reading open items 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 bca dim read openitems FM, simply by entering the name BCA_DIM_READ_OPENITEMS into the relevant SAP transaction such as SE37 or SE38.

Function Group: BCA_DIM_LOANS_RFC
Program Name: SAPLBCA_DIM_LOANS_RFC
Main Program: SAPLBCA_DIM_LOANS_RFC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BCA_DIM_READ_OPENITEMS 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 'BCA_DIM_READ_OPENITEMS'"Reading open items
EXPORTING
* I_CLEARINGCURRENCY = "Clearing Currency
* I_CLEARINGCURRENCYISO = "Clearing currency ISO
* I_CLEARINGDATE = SY-DATUM "Clearing Date
* I_ENQUEUE = "Lock Items
IT_MAINSELECTIONS = "Main Selections
* IT_ITEMCURRENCIES = "Parallel Currencies of Document
* IT_VALUESELECTIONS = "Interface to transfer selection criteria
* IT_AMOUNTSELECTIONS = "Interface to Transfer Selection Criteria
* IT_CLEARINGRESTRICTIONS = "Interface for transfer of clearing restrictions

IMPORTING
ET_OPENITEMS = "BAPIDFKKCL structure for wrapper
ET_RETURN = "Table with BAPI Return Information

TABLES
* EXTENSIONOUT = "Customer Enhancements - Export
* EXTENSIONIN = "Customer Enhancements - Import

EXCEPTIONS
INPUT_NOT_QUALIFIED = 1 CLEAR_ACCT_NOT_QUALIFIED = 2 MAPPING_FAILED = 3 FAILED = 4
.



IMPORTING Parameters details for BCA_DIM_READ_OPENITEMS

I_CLEARINGCURRENCY - Clearing Currency

Data type: BAPIDFKKCL-CURRENCY
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CLEARINGCURRENCYISO - Clearing currency ISO

Data type: BAPIDFKKCL-CURRENCY_ISO
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CLEARINGDATE - Clearing Date

Data type: BAPIDFKKCL-DOC_DATE
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ENQUEUE - Lock Items

Data type: BAPIFLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_MAINSELECTIONS - Main Selections

Data type: BCA_STR_DIM_FKKOPSELHEAD_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

IT_ITEMCURRENCIES - Parallel Currencies of Document

Data type: BAPIDFKKOPCUR_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_VALUESELECTIONS - Interface to transfer selection criteria

Data type: BAPIFKKOPSELTXT1_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_AMOUNTSELECTIONS - Interface to Transfer Selection Criteria

Data type: BAPIFKKOPSELNUM_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_CLEARINGRESTRICTIONS - Interface for transfer of clearing restrictions

Data type: BAPIAGRTAB_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BCA_DIM_READ_OPENITEMS

ET_OPENITEMS - BAPIDFKKCL structure for wrapper

Data type: BCA_STR_DIM_BAPIDFKKCL_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

ET_RETURN - Table with BAPI Return Information

Data type: BAPIRETTAB
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BCA_DIM_READ_OPENITEMS

EXTENSIONOUT - Customer Enhancements - Export

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

EXTENSIONIN - Customer Enhancements - Import

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

EXCEPTIONS details

INPUT_NOT_QUALIFIED - Input not qualified

Data type:
Optional: No
Call by Reference: Yes

CLEAR_ACCT_NOT_QUALIFIED - Clearing account not qualified.

Data type:
Optional: No
Call by Reference: Yes

MAPPING_FAILED - Mapping record creation Failed.

Data type:
Optional: No
Call by Reference: Yes

FAILED - Reading Openitems Failed

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BCA_DIM_READ_OPENITEMS 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_et_openitems  TYPE BCA_STR_DIM_BAPIDFKKCL_TAB, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_i_clearingcurrency  TYPE BAPIDFKKCL-CURRENCY, "   
lv_input_not_qualified  TYPE BAPIDFKKCL, "   
lv_et_return  TYPE BAPIRETTAB, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_i_clearingcurrencyiso  TYPE BAPIDFKKCL-CURRENCY_ISO, "   
lv_clear_acct_not_qualified  TYPE BAPIDFKKCL, "   
lv_i_clearingdate  TYPE BAPIDFKKCL-DOC_DATE, "   SY-DATUM
lv_mapping_failed  TYPE BAPIDFKKCL, "   
lv_failed  TYPE BAPIDFKKCL, "   
lv_i_enqueue  TYPE BAPIFLAG, "   
lv_it_mainselections  TYPE BCA_STR_DIM_FKKOPSELHEAD_TAB, "   
lv_it_itemcurrencies  TYPE BAPIDFKKOPCUR_TAB, "   
lv_it_valueselections  TYPE BAPIFKKOPSELTXT1_TAB, "   
lv_it_amountselections  TYPE BAPIFKKOPSELNUM_TAB, "   
lv_it_clearingrestrictions  TYPE BAPIAGRTAB_TAB. "   

  CALL FUNCTION 'BCA_DIM_READ_OPENITEMS'  "Reading open items
    EXPORTING
         I_CLEARINGCURRENCY = lv_i_clearingcurrency
         I_CLEARINGCURRENCYISO = lv_i_clearingcurrencyiso
         I_CLEARINGDATE = lv_i_clearingdate
         I_ENQUEUE = lv_i_enqueue
         IT_MAINSELECTIONS = lv_it_mainselections
         IT_ITEMCURRENCIES = lv_it_itemcurrencies
         IT_VALUESELECTIONS = lv_it_valueselections
         IT_AMOUNTSELECTIONS = lv_it_amountselections
         IT_CLEARINGRESTRICTIONS = lv_it_clearingrestrictions
    IMPORTING
         ET_OPENITEMS = lv_et_openitems
         ET_RETURN = lv_et_return
    TABLES
         EXTENSIONOUT = lt_extensionout
         EXTENSIONIN = lt_extensionin
    EXCEPTIONS
        INPUT_NOT_QUALIFIED = 1
        CLEAR_ACCT_NOT_QUALIFIED = 2
        MAPPING_FAILED = 3
        FAILED = 4
. " BCA_DIM_READ_OPENITEMS




ABAP code using 7.40 inline data declarations to call FM BCA_DIM_READ_OPENITEMS

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 CURRENCY FROM BAPIDFKKCL INTO @DATA(ld_i_clearingcurrency).
 
 
 
 
"SELECT single CURRENCY_ISO FROM BAPIDFKKCL INTO @DATA(ld_i_clearingcurrencyiso).
 
 
"SELECT single DOC_DATE FROM BAPIDFKKCL INTO @DATA(ld_i_clearingdate).
DATA(ld_i_clearingdate) = SY-DATUM.
 
 
 
 
 
 
 
 
 


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!