SAP BBP_INVOICE_CREATE Function Module for BBP Create Invoice
BBP_INVOICE_CREATE is a standard bbp invoice create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BBP Create Invoice 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 invoice create FM, simply by entering the name BBP_INVOICE_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBPI
Program Name: SAPLBBPI
Main Program: SAPLBBPI
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BBP_INVOICE_CREATE 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_INVOICE_CREATE'"BBP Create Invoice.
EXPORTING
I_HD = "
IMPORTING
E_BELNR = "
E_GJAHR = "
TABLES
TI_IT = "
* TI_TAX = "
* TI_SHP = "
* TI_CMT = "
* TI_ADD = "
* TI_EXR = "Umrechnungskurs
* RETURN = "Returnparameter
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_INVOICE_CREATE
I_HD -
Data type: BBP_IV_HDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BBP_INVOICE_CREATE
E_BELNR -
Data type: BKPF-BELNROptional: No
Call by Reference: No ( called with pass by value option)
E_GJAHR -
Data type: BKPF-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BBP_INVOICE_CREATE
TI_IT -
Data type: BBP_IV_ITOptional: No
Call by Reference: No ( called with pass by value option)
TI_TAX -
Data type: BBP_IV_TAXOptional: Yes
Call by Reference: No ( called with pass by value option)
TI_SHP -
Data type: BBP_IV_SHPOptional: Yes
Call by Reference: No ( called with pass by value option)
TI_CMT -
Data type: BBPACPO01Optional: Yes
Call by Reference: No ( called with pass by value option)
TI_ADD -
Data type: BBP_IV_ADDOptional: Yes
Call by Reference: No ( called with pass by value option)
TI_EXR - Umrechnungskurs
Data type: BBP_IV_EXROptional: Yes
Call by Reference: Yes
RETURN - Returnparameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BBP_INVOICE_CREATE 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_hd | TYPE BBP_IV_HD, " | |||
| lt_ti_it | TYPE STANDARD TABLE OF BBP_IV_IT, " | |||
| lv_e_belnr | TYPE BKPF-BELNR, " | |||
| lt_ti_tax | TYPE STANDARD TABLE OF BBP_IV_TAX, " | |||
| lv_e_gjahr | TYPE BKPF-GJAHR, " | |||
| lt_ti_shp | TYPE STANDARD TABLE OF BBP_IV_SHP, " | |||
| lt_ti_cmt | TYPE STANDARD TABLE OF BBPACPO01, " | |||
| lt_ti_add | TYPE STANDARD TABLE OF BBP_IV_ADD, " | |||
| lt_ti_exr | TYPE STANDARD TABLE OF BBP_IV_EXR, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION 'BBP_INVOICE_CREATE' "BBP Create Invoice |
| EXPORTING | ||
| I_HD | = lv_i_hd | |
| IMPORTING | ||
| E_BELNR | = lv_e_belnr | |
| E_GJAHR | = lv_e_gjahr | |
| TABLES | ||
| TI_IT | = lt_ti_it | |
| TI_TAX | = lt_ti_tax | |
| TI_SHP | = lt_ti_shp | |
| TI_CMT | = lt_ti_cmt | |
| TI_ADD | = lt_ti_add | |
| TI_EXR | = lt_ti_exr | |
| RETURN | = lt_return | |
| . " BBP_INVOICE_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM BBP_INVOICE_CREATE
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 BELNR FROM BKPF INTO @DATA(ld_e_belnr). | ||||
| "SELECT single GJAHR FROM BKPF INTO @DATA(ld_e_gjahr). | ||||
Search for further information about these or an SAP related objects