SAP BAPI_INVEC_XML_INTERNAL_SEND Function Module for
BAPI_INVEC_XML_INTERNAL_SEND is a standard bapi invec xml internal send 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 bapi invec xml internal send FM, simply by entering the name BAPI_INVEC_XML_INTERNAL_SEND into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBP_BUS2205
Program Name: SAPLBBP_BUS2205
Main Program: SAPLBBP_BUS2205
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_INVEC_XML_INTERNAL_SEND 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 'BAPI_INVEC_XML_INTERNAL_SEND'".
EXPORTING
INV_HEADER = "Header Data Invoice (GetDetail)
* SHIP_FROM_ADDRESS = "BAPI Reference Structure for Addresses (ShipFrom)
SYSTEM_COM_ADDRESS = "Communication Data for Communication with System via BC
* INV_HEADER_CUST = "
* VENDOR = "Business Partner (Bapi Send)
* VENDOR_CONTACT = "Business Partner (Bapi Send)
* BILL_TO_PARTY = "Business Partner (Bapi Send)
* BILL_TO_PARTY_CONTACT = "Business Partner (Bapi Send)
* SOLD_TO_PARTY = "Business Partner (Bapi Send)
* SERVICE_PROVIDER = "Business Partner (Service Provider)
* SHIP_TO_ADDRESS = "BAPI Reference Structure for Addresses (ShipTo)
TABLES
* I_INV_ITEMS = "Item Invoice (GetDetail)
* I_CMMT_CUST = "
* I_BILL_TO_PARTY_CONTACT = "Requester at Item Level
* I_SERVICE_PROVIDER = "Service Provider at Item Level
* I_SHIP_TO_ADDRESS = "Ship-To Address at Item Level
* I_SHIP_FROM_ADDRESS = "Ship-From Address at Item Level
* E_RETURN = "Return Parameter
* I_INV_ITEMS_CUST = "
* I_INV_TEXT_HEAD = "
* I_INV_TEXT_ITEMS = "
* I_INV_ACCASS = "Account Assignment (GetDetail)
* I_INV_ACCASS_CUST = "
* I_INV_TAXES = "Taxes Invoice (Get Detail)
* I_INV_SHIPCOST = "Freight Costs Invoice (Get Detail)
* I_CMMT = "Item Commitments (Detail)
IMPORTING Parameters details for BAPI_INVEC_XML_INTERNAL_SEND
INV_HEADER - Header Data Invoice (GetDetail)
Data type: BAPI_INV_HEADER_DOptional: No
Call by Reference: No ( called with pass by value option)
SHIP_FROM_ADDRESS - BAPI Reference Structure for Addresses (ShipFrom)
Data type: BAPIADDR3Optional: Yes
Call by Reference: No ( called with pass by value option)
SYSTEM_COM_ADDRESS - Communication Data for Communication with System via BC
Data type: BAPI_SYSTEM_COMADROptional: No
Call by Reference: No ( called with pass by value option)
INV_HEADER_CUST -
Data type: BAPI_INV_HEADER_CUST_DOptional: Yes
Call by Reference: No ( called with pass by value option)
VENDOR - Business Partner (Bapi Send)
Data type: BAPI_BUP_SOptional: Yes
Call by Reference: No ( called with pass by value option)
VENDOR_CONTACT - Business Partner (Bapi Send)
Data type: BAPI_BUP_SOptional: Yes
Call by Reference: No ( called with pass by value option)
BILL_TO_PARTY - Business Partner (Bapi Send)
Data type: BAPI_BUP_SOptional: Yes
Call by Reference: No ( called with pass by value option)
BILL_TO_PARTY_CONTACT - Business Partner (Bapi Send)
Data type: BAPI_BUP_SOptional: Yes
Call by Reference: No ( called with pass by value option)
SOLD_TO_PARTY - Business Partner (Bapi Send)
Data type: BAPI_BUP_SOptional: Yes
Call by Reference: No ( called with pass by value option)
SERVICE_PROVIDER - Business Partner (Service Provider)
Data type: BAPI_BUP_SOptional: Yes
Call by Reference: No ( called with pass by value option)
SHIP_TO_ADDRESS - BAPI Reference Structure for Addresses (ShipTo)
Data type: BAPIADDR3Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_INVEC_XML_INTERNAL_SEND
I_INV_ITEMS - Item Invoice (GetDetail)
Data type: BAPI_INV_ITEM_DOptional: Yes
Call by Reference: Yes
I_CMMT_CUST -
Data type: BAPI_ACC_CUST_DOptional: Yes
Call by Reference: Yes
I_BILL_TO_PARTY_CONTACT - Requester at Item Level
Data type: BAPI_BUP_SOptional: Yes
Call by Reference: Yes
I_SERVICE_PROVIDER - Service Provider at Item Level
Data type: BAPI_BUP_SOptional: Yes
Call by Reference: Yes
I_SHIP_TO_ADDRESS - Ship-To Address at Item Level
Data type: BAPI_BUP_SOptional: Yes
Call by Reference: Yes
I_SHIP_FROM_ADDRESS - Ship-From Address at Item Level
Data type: BAPI_BUP_SOptional: Yes
Call by Reference: Yes
E_RETURN - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
I_INV_ITEMS_CUST -
Data type: BAPI_INV_ITEM_CUST_DOptional: Yes
Call by Reference: Yes
I_INV_TEXT_HEAD -
Data type: BAPI_TEXT_IOptional: Yes
Call by Reference: Yes
I_INV_TEXT_ITEMS -
Data type: BAPI_TEXT_IOptional: Yes
Call by Reference: Yes
I_INV_ACCASS - Account Assignment (GetDetail)
Data type: BAPI_ACC_DOptional: Yes
Call by Reference: Yes
I_INV_ACCASS_CUST -
Data type: BAPI_ACC_CUST_DOptional: Yes
Call by Reference: Yes
I_INV_TAXES - Taxes Invoice (Get Detail)
Data type: BAPI_IVTAX_DOptional: Yes
Call by Reference: Yes
I_INV_SHIPCOST - Freight Costs Invoice (Get Detail)
Data type: BAPI_IVSHP_DOptional: Yes
Call by Reference: Yes
I_CMMT - Item Commitments (Detail)
Data type: BAPI_CMMT_DOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_INVEC_XML_INTERNAL_SEND 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_inv_header | TYPE BAPI_INV_HEADER_D, " | |||
| lt_i_inv_items | TYPE STANDARD TABLE OF BAPI_INV_ITEM_D, " | |||
| lt_i_cmmt_cust | TYPE STANDARD TABLE OF BAPI_ACC_CUST_D, " | |||
| lv_ship_from_address | TYPE BAPIADDR3, " | |||
| lv_system_com_address | TYPE BAPI_SYSTEM_COMADR, " | |||
| lt_i_bill_to_party_contact | TYPE STANDARD TABLE OF BAPI_BUP_S, " | |||
| lt_i_service_provider | TYPE STANDARD TABLE OF BAPI_BUP_S, " | |||
| lt_i_ship_to_address | TYPE STANDARD TABLE OF BAPI_BUP_S, " | |||
| lt_i_ship_from_address | TYPE STANDARD TABLE OF BAPI_BUP_S, " | |||
| lt_e_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_inv_header_cust | TYPE BAPI_INV_HEADER_CUST_D, " | |||
| lt_i_inv_items_cust | TYPE STANDARD TABLE OF BAPI_INV_ITEM_CUST_D, " | |||
| lv_vendor | TYPE BAPI_BUP_S, " | |||
| lt_i_inv_text_head | TYPE STANDARD TABLE OF BAPI_TEXT_I, " | |||
| lv_vendor_contact | TYPE BAPI_BUP_S, " | |||
| lt_i_inv_text_items | TYPE STANDARD TABLE OF BAPI_TEXT_I, " | |||
| lt_i_inv_accass | TYPE STANDARD TABLE OF BAPI_ACC_D, " | |||
| lv_bill_to_party | TYPE BAPI_BUP_S, " | |||
| lt_i_inv_accass_cust | TYPE STANDARD TABLE OF BAPI_ACC_CUST_D, " | |||
| lv_bill_to_party_contact | TYPE BAPI_BUP_S, " | |||
| lt_i_inv_taxes | TYPE STANDARD TABLE OF BAPI_IVTAX_D, " | |||
| lv_sold_to_party | TYPE BAPI_BUP_S, " | |||
| lt_i_inv_shipcost | TYPE STANDARD TABLE OF BAPI_IVSHP_D, " | |||
| lv_service_provider | TYPE BAPI_BUP_S, " | |||
| lt_i_cmmt | TYPE STANDARD TABLE OF BAPI_CMMT_D, " | |||
| lv_ship_to_address | TYPE BAPIADDR3. " |
|   CALL FUNCTION 'BAPI_INVEC_XML_INTERNAL_SEND' " |
| EXPORTING | ||
| INV_HEADER | = lv_inv_header | |
| SHIP_FROM_ADDRESS | = lv_ship_from_address | |
| SYSTEM_COM_ADDRESS | = lv_system_com_address | |
| INV_HEADER_CUST | = lv_inv_header_cust | |
| VENDOR | = lv_vendor | |
| VENDOR_CONTACT | = lv_vendor_contact | |
| BILL_TO_PARTY | = lv_bill_to_party | |
| BILL_TO_PARTY_CONTACT | = lv_bill_to_party_contact | |
| SOLD_TO_PARTY | = lv_sold_to_party | |
| SERVICE_PROVIDER | = lv_service_provider | |
| SHIP_TO_ADDRESS | = lv_ship_to_address | |
| TABLES | ||
| I_INV_ITEMS | = lt_i_inv_items | |
| I_CMMT_CUST | = lt_i_cmmt_cust | |
| I_BILL_TO_PARTY_CONTACT | = lt_i_bill_to_party_contact | |
| I_SERVICE_PROVIDER | = lt_i_service_provider | |
| I_SHIP_TO_ADDRESS | = lt_i_ship_to_address | |
| I_SHIP_FROM_ADDRESS | = lt_i_ship_from_address | |
| E_RETURN | = lt_e_return | |
| I_INV_ITEMS_CUST | = lt_i_inv_items_cust | |
| I_INV_TEXT_HEAD | = lt_i_inv_text_head | |
| I_INV_TEXT_ITEMS | = lt_i_inv_text_items | |
| I_INV_ACCASS | = lt_i_inv_accass | |
| I_INV_ACCASS_CUST | = lt_i_inv_accass_cust | |
| I_INV_TAXES | = lt_i_inv_taxes | |
| I_INV_SHIPCOST | = lt_i_inv_shipcost | |
| I_CMMT | = lt_i_cmmt | |
| . " BAPI_INVEC_XML_INTERNAL_SEND | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_INVEC_XML_INTERNAL_SEND
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.Search for further information about these or an SAP related objects