SAP BCA_DIM_BILLDOC_CREATMULTPL_V2 Function Module for Create billdoc RFC(Synchronizing Billing & Invoicing via Process observer)









BCA_DIM_BILLDOC_CREATMULTPL_V2 is a standard bca dim billdoc creatmultpl v2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create billdoc RFC(Synchronizing Billing & Invoicing via Process observer) 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 billdoc creatmultpl v2 FM, simply by entering the name BCA_DIM_BILLDOC_CREATMULTPL_V2 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_BILLDOC_CREATMULTPL_V2 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_BILLDOC_CREATMULTPL_V2'"Create billdoc RFC(Synchronizing Billing & Invoicing via Process observer)
EXPORTING
* TESTRUN = ' ' "

TABLES
HEADERS = "Header structure for wrapper RFC
* ITEMS = "Items for Wrapper RFC
* TAXITEMS = "Tax items in External Billing System
* ADDITEMS = "
* EXTENSIONIN = "
* EXTENSIONOUT = "
* BAPI_BILLDOCNUMBER = "
RETURN = "

EXCEPTIONS
BP_UPDATE_FAILED = 1 FAILED = 2
.



IMPORTING Parameters details for BCA_DIM_BILLDOC_CREATMULTPL_V2

TESTRUN -

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

TABLES Parameters details for BCA_DIM_BILLDOC_CREATMULTPL_V2

HEADERS - Header structure for wrapper RFC

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

ITEMS - Items for Wrapper RFC

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

TAXITEMS - Tax items in External Billing System

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

ADDITEMS -

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

EXTENSIONIN -

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

EXTENSIONOUT -

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

BAPI_BILLDOCNUMBER -

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

RETURN -

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

EXCEPTIONS details

BP_UPDATE_FAILED - Business Partner Update Failed

Data type:
Optional: No
Call by Reference: Yes

FAILED - Billing Document Creation Failed

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BCA_DIM_BILLDOC_CREATMULTPL_V2 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_headers  TYPE STANDARD TABLE OF BCA_STR_DIM_BAPI_EXTDOC_H, "   
lv_testrun  TYPE BAPI_AUX_INV-TESTRUN, "   SPACE
lv_bp_update_failed  TYPE BAPI_AUX_INV, "   
lt_items  TYPE STANDARD TABLE OF BCA_STR_DIM_BAPI_EXTDOC_I_V2, "   
lv_failed  TYPE BCA_STR_DIM_BAPI_EXTDOC_I_V2, "   
lt_taxitems  TYPE STANDARD TABLE OF BAPI_EXTDOC_T, "   
lt_additems  TYPE STANDARD TABLE OF BAPI_EXTDOC_A, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_bapi_billdocnumber  TYPE STANDARD TABLE OF BAPI_FKKINV_BILLDOCNUMBER, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2. "   

  CALL FUNCTION 'BCA_DIM_BILLDOC_CREATMULTPL_V2'  "Create billdoc RFC(Synchronizing Billing & Invoicing via Process observer)
    EXPORTING
         TESTRUN = lv_testrun
    TABLES
         HEADERS = lt_headers
         ITEMS = lt_items
         TAXITEMS = lt_taxitems
         ADDITEMS = lt_additems
         EXTENSIONIN = lt_extensionin
         EXTENSIONOUT = lt_extensionout
         BAPI_BILLDOCNUMBER = lt_bapi_billdocnumber
         RETURN = lt_return
    EXCEPTIONS
        BP_UPDATE_FAILED = 1
        FAILED = 2
. " BCA_DIM_BILLDOC_CREATMULTPL_V2




ABAP code using 7.40 inline data declarations to call FM BCA_DIM_BILLDOC_CREATMULTPL_V2

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 BAPI_AUX_INV INTO @DATA(ld_testrun).
DATA(ld_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!