SAP BBP_BAPI_IV_CREATE_IN Function Module for









BBP_BAPI_IV_CREATE_IN is a standard bbp bapi iv create in 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 bbp bapi iv create in FM, simply by entering the name BBP_BAPI_IV_CREATE_IN into the relevant SAP transaction such as SE37 or SE38.

Function Group: BBP_BD_DRIVER_BAPI
Program Name: SAPLBBP_BD_DRIVER_BAPI
Main Program: SAPLBBP_BD_DRIVER_BAPI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function BBP_BAPI_IV_CREATE_IN 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_BAPI_IV_CREATE_IN'"
EXPORTING
I_INV_HEADER = "
* I_INV_HEADER_CUST = "
* I_INP_TYPE = "
* I_TESTRUN = ' ' "

IMPORTING
E_INV_HEADER = "
E_INV_HEADER_CUST = "

TABLES
I_INV_ITEMS = "
* E_INV_ITEMS = "
* E_INV_ITEMS_CUST = "
* E_INV_ACCASS = "
* E_INV_ACCASS_CUST = "
* E_INV_PARTNER = "
* E_INV_TAXES = "
* E_INV_SHIPCOST = "
* E_INV_ORGDATA = "
* E_INV_TEXT = "
* E_INV_STATUS = "
* I_INV_ITEMS_CUST = "
* E_INV_ATTACH = "
* RETURN = "
* I_INV_ACCASS = "
* I_INV_ACCASS_CUST = "
* I_INV_PARTNER = "
* I_INV_TAXES = "
* I_INV_SHIPCOST = "
* I_INV_TEXT = "
* I_INV_ATTACH = "
.



IMPORTING Parameters details for BBP_BAPI_IV_CREATE_IN

I_INV_HEADER -

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

I_INV_HEADER_CUST -

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

I_INP_TYPE -

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

I_TESTRUN -

Data type: BBPS_BAPI2091-TESTRUN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BBP_BAPI_IV_CREATE_IN

E_INV_HEADER -

Data type: BAPI_INV_HEADER_D
Optional: No
Call by Reference: Yes

E_INV_HEADER_CUST -

Data type: BAPI_INV_HEADER_CUST_D
Optional: No
Call by Reference: Yes

TABLES Parameters details for BBP_BAPI_IV_CREATE_IN

I_INV_ITEMS -

Data type: BAPI_INV_ITEM_C
Optional: No
Call by Reference: Yes

E_INV_ITEMS -

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

E_INV_ITEMS_CUST -

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

E_INV_ACCASS -

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

E_INV_ACCASS_CUST -

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

E_INV_PARTNER -

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

E_INV_TAXES -

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

E_INV_SHIPCOST -

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

E_INV_ORGDATA -

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

E_INV_TEXT -

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

E_INV_STATUS -

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

I_INV_ITEMS_CUST -

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

E_INV_ATTACH -

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

RETURN -

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

I_INV_ACCASS -

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

I_INV_ACCASS_CUST -

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

I_INV_PARTNER -

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

I_INV_TAXES -

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

I_INV_SHIPCOST -

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

I_INV_TEXT -

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

I_INV_ATTACH -

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

Copy and paste ABAP code example for BBP_BAPI_IV_CREATE_IN 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_i_inv_items  TYPE STANDARD TABLE OF BAPI_INV_ITEM_C, "   
lv_e_inv_header  TYPE BAPI_INV_HEADER_D, "   
lv_i_inv_header  TYPE BAPI_INV_HEADER_C, "   
lt_e_inv_items  TYPE STANDARD TABLE OF BAPI_INV_ITEM_D, "   
lt_e_inv_items_cust  TYPE STANDARD TABLE OF BAPI_INV_ITEM_CUST_D, "   
lt_e_inv_accass  TYPE STANDARD TABLE OF BAPI_ACC_D, "   
lt_e_inv_accass_cust  TYPE STANDARD TABLE OF BAPI_ACC_CUST_D, "   
lt_e_inv_partner  TYPE STANDARD TABLE OF BAPI_BUP_D, "   
lt_e_inv_taxes  TYPE STANDARD TABLE OF BAPI_IVTAX_D, "   
lt_e_inv_shipcost  TYPE STANDARD TABLE OF BAPI_IVSHP_D, "   
lt_e_inv_orgdata  TYPE STANDARD TABLE OF BAPI_ORG_D, "   
lt_e_inv_text  TYPE STANDARD TABLE OF BAPI_TEXT_I, "   
lt_e_inv_status  TYPE STANDARD TABLE OF BAPI_BBP_STATUS, "   
lt_i_inv_items_cust  TYPE STANDARD TABLE OF BAPI_INV_ITEM_CUST_C, "   
lv_e_inv_header_cust  TYPE BAPI_INV_HEADER_CUST_D, "   
lv_i_inv_header_cust  TYPE BAPI_INV_HEADER_CUST_C, "   
lt_e_inv_attach  TYPE STANDARD TABLE OF BAPI_ATT_D, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_i_inp_type  TYPE BBP_INP_TYPE, "   
lt_i_inv_accass  TYPE STANDARD TABLE OF BAPI_ACC_C, "   
lv_i_testrun  TYPE BBPS_BAPI2091-TESTRUN, "   SPACE
lt_i_inv_accass_cust  TYPE STANDARD TABLE OF BAPI_ACC_CUST_C, "   
lt_i_inv_partner  TYPE STANDARD TABLE OF BAPI_BUP_C, "   
lt_i_inv_taxes  TYPE STANDARD TABLE OF BAPI_IVTAX_C, "   
lt_i_inv_shipcost  TYPE STANDARD TABLE OF BAPI_IVSHP_C, "   
lt_i_inv_text  TYPE STANDARD TABLE OF BAPI_TEXT_I, "   
lt_i_inv_attach  TYPE STANDARD TABLE OF BAPI_ATT_C. "   

  CALL FUNCTION 'BBP_BAPI_IV_CREATE_IN'  "
    EXPORTING
         I_INV_HEADER = lv_i_inv_header
         I_INV_HEADER_CUST = lv_i_inv_header_cust
         I_INP_TYPE = lv_i_inp_type
         I_TESTRUN = lv_i_testrun
    IMPORTING
         E_INV_HEADER = lv_e_inv_header
         E_INV_HEADER_CUST = lv_e_inv_header_cust
    TABLES
         I_INV_ITEMS = lt_i_inv_items
         E_INV_ITEMS = lt_e_inv_items
         E_INV_ITEMS_CUST = lt_e_inv_items_cust
         E_INV_ACCASS = lt_e_inv_accass
         E_INV_ACCASS_CUST = lt_e_inv_accass_cust
         E_INV_PARTNER = lt_e_inv_partner
         E_INV_TAXES = lt_e_inv_taxes
         E_INV_SHIPCOST = lt_e_inv_shipcost
         E_INV_ORGDATA = lt_e_inv_orgdata
         E_INV_TEXT = lt_e_inv_text
         E_INV_STATUS = lt_e_inv_status
         I_INV_ITEMS_CUST = lt_i_inv_items_cust
         E_INV_ATTACH = lt_e_inv_attach
         RETURN = lt_return
         I_INV_ACCASS = lt_i_inv_accass
         I_INV_ACCASS_CUST = lt_i_inv_accass_cust
         I_INV_PARTNER = lt_i_inv_partner
         I_INV_TAXES = lt_i_inv_taxes
         I_INV_SHIPCOST = lt_i_inv_shipcost
         I_INV_TEXT = lt_i_inv_text
         I_INV_ATTACH = lt_i_inv_attach
. " BBP_BAPI_IV_CREATE_IN




ABAP code using 7.40 inline data declarations to call FM BBP_BAPI_IV_CREATE_IN

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 TESTRUN FROM BBPS_BAPI2091 INTO @DATA(ld_i_testrun).
DATA(ld_i_testrun) = ' '.
 
 
 
 
 
 
 


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!