SAP FVD_BILL_CREATE Function Module for Start Creation of Individual Bill
FVD_BILL_CREATE is a standard fvd bill 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 Start Creation of Individual Bill 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 fvd bill create FM, simply by entering the name FVD_BILL_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_BILL_PROCESS
Program Name: SAPLFVD_BILL_PROCESS
Main Program: SAPLFVD_BILL_PROCESS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_BILL_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 'FVD_BILL_CREATE'"Start Creation of Individual Bill.
EXPORTING
I_BILL_DATE = "Bill Creation Date
I_VDBILL_CONTROL = "Bill Control
I_VDBILL_HIST = "Structure of Billing History
I_STR_VD_BILL_RES_BP = "Business Partner Information for Bill
I_TAB_VDBEPP = "Table Type for Table VDBEPP
I_TAB_VDBEKI = "Table Type for Table VDBEKI
I_TAB_VDBEPI = "Table Type for Table VDBEPI
I_TAB_VZZBEPP = "Table Type for Structure VZZBEPP
I_REMITTANCE_CODE = "Date and Time, Current (Application Server) Date
* I_GRACE_DAYS = "Grace Periods per Line Item
* I_KALID = "Public holiday calendar ID
I_BILL_PAR = "Settings for Bill Creation
I_OBJ_BILLING_LOG = "
* I_SIMULATION = "Boolean Variable
I_VDARL = "Loans
I_VDARL_BILL = "Internal Processing Structure for Bills in Loan
IMPORTING
E_BILL_CREATED = "Boolean Variable
E_VDBILL_HIST = "Invoice History
E_VDBILL_RES_HEAD = "Bill Results Header
E_TAB_VDBILL_ITEMS = "Table Type for Billing Item
EXCEPTIONS
NO_BILLS_CREATED = 1
IMPORTING Parameters details for FVD_BILL_CREATE
I_BILL_DATE - Bill Creation Date
Data type: TB_BILL_DATEOptional: No
Call by Reference: Yes
I_VDBILL_CONTROL - Bill Control
Data type: VDBILL_CONTROLOptional: No
Call by Reference: Yes
I_VDBILL_HIST - Structure of Billing History
Data type: RVD_BILL_HISTOptional: No
Call by Reference: Yes
I_STR_VD_BILL_RES_BP - Business Partner Information for Bill
Data type: RVD_BILL_RES_BPOptional: No
Call by Reference: Yes
I_TAB_VDBEPP - Table Type for Table VDBEPP
Data type: TRTY_VDBEPPOptional: No
Call by Reference: Yes
I_TAB_VDBEKI - Table Type for Table VDBEKI
Data type: TRTY_VDBEKIOptional: No
Call by Reference: Yes
I_TAB_VDBEPI - Table Type for Table VDBEPI
Data type: TRTY_VDBEPIOptional: No
Call by Reference: Yes
I_TAB_VZZBEPP - Table Type for Structure VZZBEPP
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
I_REMITTANCE_CODE - Date and Time, Current (Application Server) Date
Data type: TB_REMIT_CODEOptional: No
Call by Reference: Yes
I_GRACE_DAYS - Grace Periods per Line Item
Data type: KULEP_047AOptional: Yes
Call by Reference: Yes
I_KALID - Public holiday calendar ID
Data type: HIDENT_47AOptional: Yes
Call by Reference: Yes
I_BILL_PAR - Settings for Bill Creation
Data type: TDBILL_PAROptional: No
Call by Reference: Yes
I_OBJ_BILLING_LOG -
Data type: CL_FVD_LOGOptional: No
Call by Reference: Yes
I_SIMULATION - Boolean Variable
Data type: XFLAGOptional: Yes
Call by Reference: Yes
I_VDARL - Loans
Data type: VDARLOptional: No
Call by Reference: Yes
I_VDARL_BILL - Internal Processing Structure for Bills in Loan
Data type: RVDARL_BILLOptional: No
Call by Reference: Yes
EXPORTING Parameters details for FVD_BILL_CREATE
E_BILL_CREATED - Boolean Variable
Data type: BOOLEOptional: No
Call by Reference: Yes
E_VDBILL_HIST - Invoice History
Data type: VDBILL_HISTOptional: No
Call by Reference: Yes
E_VDBILL_RES_HEAD - Bill Results Header
Data type: VDBILL_RES_HEADOptional: No
Call by Reference: Yes
E_TAB_VDBILL_ITEMS - Table Type for Billing Item
Data type: TRTY_VDBILL_ITEMSOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_BILLS_CREATED - No Bills Created
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_BILL_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_bill_date | TYPE TB_BILL_DATE, " | |||
| lv_e_bill_created | TYPE BOOLE, " | |||
| lv_no_bills_created | TYPE BOOLE, " | |||
| lv_i_vdbill_control | TYPE VDBILL_CONTROL, " | |||
| lv_i_vdbill_hist | TYPE RVD_BILL_HIST, " | |||
| lv_i_str_vd_bill_res_bp | TYPE RVD_BILL_RES_BP, " | |||
| lv_i_tab_vdbepp | TYPE TRTY_VDBEPP, " | |||
| lv_i_tab_vdbeki | TYPE TRTY_VDBEKI, " | |||
| lv_i_tab_vdbepi | TYPE TRTY_VDBEPI, " | |||
| lv_i_tab_vzzbepp | TYPE TRTY_VZZBEPP, " | |||
| lv_e_vdbill_hist | TYPE VDBILL_HIST, " | |||
| lv_i_remittance_code | TYPE TB_REMIT_CODE, " | |||
| lv_i_grace_days | TYPE KULEP_047A, " | |||
| lv_e_vdbill_res_head | TYPE VDBILL_RES_HEAD, " | |||
| lv_i_kalid | TYPE HIDENT_47A, " | |||
| lv_e_tab_vdbill_items | TYPE TRTY_VDBILL_ITEMS, " | |||
| lv_i_bill_par | TYPE TDBILL_PAR, " | |||
| lv_i_obj_billing_log | TYPE CL_FVD_LOG, " | |||
| lv_i_simulation | TYPE XFLAG, " | |||
| lv_i_vdarl | TYPE VDARL, " | |||
| lv_i_vdarl_bill | TYPE RVDARL_BILL. " |
|   CALL FUNCTION 'FVD_BILL_CREATE' "Start Creation of Individual Bill |
| EXPORTING | ||
| I_BILL_DATE | = lv_i_bill_date | |
| I_VDBILL_CONTROL | = lv_i_vdbill_control | |
| I_VDBILL_HIST | = lv_i_vdbill_hist | |
| I_STR_VD_BILL_RES_BP | = lv_i_str_vd_bill_res_bp | |
| I_TAB_VDBEPP | = lv_i_tab_vdbepp | |
| I_TAB_VDBEKI | = lv_i_tab_vdbeki | |
| I_TAB_VDBEPI | = lv_i_tab_vdbepi | |
| I_TAB_VZZBEPP | = lv_i_tab_vzzbepp | |
| I_REMITTANCE_CODE | = lv_i_remittance_code | |
| I_GRACE_DAYS | = lv_i_grace_days | |
| I_KALID | = lv_i_kalid | |
| I_BILL_PAR | = lv_i_bill_par | |
| I_OBJ_BILLING_LOG | = lv_i_obj_billing_log | |
| I_SIMULATION | = lv_i_simulation | |
| I_VDARL | = lv_i_vdarl | |
| I_VDARL_BILL | = lv_i_vdarl_bill | |
| IMPORTING | ||
| E_BILL_CREATED | = lv_e_bill_created | |
| E_VDBILL_HIST | = lv_e_vdbill_hist | |
| E_VDBILL_RES_HEAD | = lv_e_vdbill_res_head | |
| E_TAB_VDBILL_ITEMS | = lv_e_tab_vdbill_items | |
| EXCEPTIONS | ||
| NO_BILLS_CREATED = 1 | ||
| . " FVD_BILL_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM FVD_BILL_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.Search for further information about these or an SAP related objects