SAP BBP_FI_DOCUMENT_READ Function Module for Finance document read
BBP_FI_DOCUMENT_READ is a standard bbp fi document 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 Finance document read 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 bbp fi document read FM, simply by entering the name BBP_FI_DOCUMENT_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBPI
Program Name: SAPLBBPI
Main Program: SAPLBBPI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BBP_FI_DOCUMENT_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 'BBP_FI_DOCUMENT_READ'"Finance document read.
EXPORTING
* I_AWTYP = "
* I_AWREF = "
* I_AWORG = "
* I_AWSYS = "
* I_XNBKL = "
* I_BUKRS = "
* I_BELNR = "
* I_GJAHR = "
IMPORTING
E_AWTYP = "
E_AWREF = "
E_AWORG = "
E_AWSYS = "
TABLES
* T_ABUZ = "
* T_ACCHD = "
* T_ACCIT = "
* T_ACCCR = "
* T_BKPF = "
* T_BSEG = "
EXCEPTIONS
WRONG_INPUT = 1 NOT_FOUND = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLBBPI4X_001 Update of Customer Fields for Invoice with Reference to PO
EXIT_SAPLBBPI_001 Determine UPF posting
EXIT_SAPLBBPI_002 Determine expense account
EXIT_SAPLBBPI_003 Mapping from Idocsegments E1BIVIC and E1BIVHC
EXIT_SAPLBBPI_004 Update for Customer Fields before call to FI-Interface
EXIT_SAPLBBPI_006 Idoc BBPIV mapping of segments
IMPORTING Parameters details for BBP_FI_DOCUMENT_READ
I_AWTYP -
Data type: ACCHD-AWTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AWREF -
Data type: ACCHD-AWREFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AWORG -
Data type: ACCHD-AWORGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AWSYS -
Data type: ACCHD-AWSYSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XNBKL -
Data type: ACCIT-XAUTOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BUKRS -
Data type: ACCIT-BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BELNR -
Data type: BSEG-BELNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_GJAHR -
Data type: BSEG-GJAHROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BBP_FI_DOCUMENT_READ
E_AWTYP -
Data type: ACCHD-AWTYPOptional: No
Call by Reference: No ( called with pass by value option)
E_AWREF -
Data type: ACCHD-AWREFOptional: No
Call by Reference: No ( called with pass by value option)
E_AWORG -
Data type: ACCHD-AWORGOptional: No
Call by Reference: No ( called with pass by value option)
E_AWSYS -
Data type: ACCHD-AWSYSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BBP_FI_DOCUMENT_READ
T_ABUZ -
Data type: ABUZOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ACCHD -
Data type: ACCHDOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ACCIT -
Data type: ACCITOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ACCCR -
Data type: ACCCROptional: Yes
Call by Reference: No ( called with pass by value option)
T_BKPF -
Data type: BKPFOptional: Yes
Call by Reference: No ( called with pass by value option)
T_BSEG -
Data type: BSEGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_INPUT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BBP_FI_DOCUMENT_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: | ||||
| lt_t_abuz | TYPE STANDARD TABLE OF ABUZ, " | |||
| lv_e_awtyp | TYPE ACCHD-AWTYP, " | |||
| lv_i_awtyp | TYPE ACCHD-AWTYP, " | |||
| lv_wrong_input | TYPE ACCHD, " | |||
| lv_e_awref | TYPE ACCHD-AWREF, " | |||
| lv_i_awref | TYPE ACCHD-AWREF, " | |||
| lt_t_acchd | TYPE STANDARD TABLE OF ACCHD, " | |||
| lv_not_found | TYPE ACCHD, " | |||
| lv_e_aworg | TYPE ACCHD-AWORG, " | |||
| lv_i_aworg | TYPE ACCHD-AWORG, " | |||
| lt_t_accit | TYPE STANDARD TABLE OF ACCIT, " | |||
| lv_e_awsys | TYPE ACCHD-AWSYS, " | |||
| lv_i_awsys | TYPE ACCHD-AWSYS, " | |||
| lt_t_acccr | TYPE STANDARD TABLE OF ACCCR, " | |||
| lt_t_bkpf | TYPE STANDARD TABLE OF BKPF, " | |||
| lv_i_xnbkl | TYPE ACCIT-XAUTO, " | |||
| lt_t_bseg | TYPE STANDARD TABLE OF BSEG, " | |||
| lv_i_bukrs | TYPE ACCIT-BUKRS, " | |||
| lv_i_belnr | TYPE BSEG-BELNR, " | |||
| lv_i_gjahr | TYPE BSEG-GJAHR. " |
|   CALL FUNCTION 'BBP_FI_DOCUMENT_READ' "Finance document read |
| EXPORTING | ||
| I_AWTYP | = lv_i_awtyp | |
| I_AWREF | = lv_i_awref | |
| I_AWORG | = lv_i_aworg | |
| I_AWSYS | = lv_i_awsys | |
| I_XNBKL | = lv_i_xnbkl | |
| I_BUKRS | = lv_i_bukrs | |
| I_BELNR | = lv_i_belnr | |
| I_GJAHR | = lv_i_gjahr | |
| IMPORTING | ||
| E_AWTYP | = lv_e_awtyp | |
| E_AWREF | = lv_e_awref | |
| E_AWORG | = lv_e_aworg | |
| E_AWSYS | = lv_e_awsys | |
| TABLES | ||
| T_ABUZ | = lt_t_abuz | |
| T_ACCHD | = lt_t_acchd | |
| T_ACCIT | = lt_t_accit | |
| T_ACCCR | = lt_t_acccr | |
| T_BKPF | = lt_t_bkpf | |
| T_BSEG | = lt_t_bseg | |
| EXCEPTIONS | ||
| WRONG_INPUT = 1 | ||
| NOT_FOUND = 2 | ||
| . " BBP_FI_DOCUMENT_READ | ||
ABAP code using 7.40 inline data declarations to call FM BBP_FI_DOCUMENT_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 AWTYP FROM ACCHD INTO @DATA(ld_e_awtyp). | ||||
| "SELECT single AWTYP FROM ACCHD INTO @DATA(ld_i_awtyp). | ||||
| "SELECT single AWREF FROM ACCHD INTO @DATA(ld_e_awref). | ||||
| "SELECT single AWREF FROM ACCHD INTO @DATA(ld_i_awref). | ||||
| "SELECT single AWORG FROM ACCHD INTO @DATA(ld_e_aworg). | ||||
| "SELECT single AWORG FROM ACCHD INTO @DATA(ld_i_aworg). | ||||
| "SELECT single AWSYS FROM ACCHD INTO @DATA(ld_e_awsys). | ||||
| "SELECT single AWSYS FROM ACCHD INTO @DATA(ld_i_awsys). | ||||
| "SELECT single XAUTO FROM ACCIT INTO @DATA(ld_i_xnbkl). | ||||
| "SELECT single BUKRS FROM ACCIT INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single BELNR FROM BSEG INTO @DATA(ld_i_belnr). | ||||
| "SELECT single GJAHR FROM BSEG INTO @DATA(ld_i_gjahr). | ||||
Search for further information about these or an SAP related objects