SAP FMCA_BILLING_FORM_BASED Function Module for PSCD: Form-based Billing









FMCA_BILLING_FORM_BASED is a standard fmca billing form based SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for PSCD: Form-based Billing 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 fmca billing form based FM, simply by entering the name FMCA_BILLING_FORM_BASED into the relevant SAP transaction such as SE37 or SE38.

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



Function FMCA_BILLING_FORM_BASED 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 'FMCA_BILLING_FORM_BASED'"PSCD: Form-based Billing
EXPORTING
I_TAX_RETURN = "Uploadstruktur für Prozeßobjekte
* I_ONLY_VALIDATION = ' ' "Nur Prüfergebnisse schreiben
* I_SAVE_CHANGES = ' ' "Geänderte Daten in neue Version speichern
* I_START_WF = ' ' "Workflow starten
* I_BILL = ' ' "Abrechnungsbeleg erstellen
* I_INV = ' ' "Rechnung erstellen
* I_TAXST = ' ' "Steuerbescheid erstellen
* I_PRSIM = ' ' "Feld zum Ankreuzen
* I_PDF = ' ' "Feld zum Ankreuzen
* I_APPLCLASS = ' ' "BRF: Anwendungsklasse
* I_EVENT = "Bezeichnung des Ereignisses
IT_FORMS = "Tabellentyp für Upload von Steuerformularen
* I_TRC = ' ' "Feld zum Ankreuzen
* I_CALLER = "FPF: Caller of Form Bundle Processing
* IT_NOTES = "Tabellentyp für Notizen mit Texten und Attributen
IT_FORM_FIELD_DATA = "Tabellentyp für Formularfelddaten
* I_VDATE = "Datum
* I_SIMULATION = ' ' "Massenaktivität: Simulationslauf
* I_SIMUDOC = ' ' "Erstellung von simulierten Abrechnungsbelegen
* I_SIMUINV = ' ' "Erstellung von simulierten Fakturierungsbelegen
* I_CHECK_DUPL = ' ' "Duplikate und Nachträge prüfen

IMPORTING
ET_BILLDOC = "Standardtabelle zur Struktur BAPI_FKKINV_BILLDOCNUMBER
ET_INVDOC_H = "Standardtabelle zum Typ FKKINVDOC_H
ET_FORM_FIELD_DATA = "Tabellentyp für Formularfelddaten
E_TRC = "Feld zum Ankreuzen
E_TAX_RETURN = "Uploadstruktur für Prozeßobjekte
ET_FORMS = "Table Type for Uploading Tax Forms
ET_INVBILL_I = "Standardtabelle zur Struktur FKKINVBILL_I

CHANGING
CT_RETURN = "FI-CA: Standardtabelle zur Struktur BAPIRET2
* CT_CHECKMSG = "Steuerberechnung und -validierung: Tabelle Fehlernachrichten
.



IMPORTING Parameters details for FMCA_BILLING_FORM_BASED

I_TAX_RETURN - Uploadstruktur für Prozeßobjekte

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

I_ONLY_VALIDATION - Nur Prüfergebnisse schreiben

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_SAVE_CHANGES - Geänderte Daten in neue Version speichern

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_START_WF - Workflow starten

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_BILL - Abrechnungsbeleg erstellen

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_INV - Rechnung erstellen

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_TAXST - Steuerbescheid erstellen

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_PRSIM - Feld zum Ankreuzen

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_PDF - Feld zum Ankreuzen

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_APPLCLASS - BRF: Anwendungsklasse

Data type: BRF_APPLCLASS
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_EVENT - Bezeichnung des Ereignisses

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

IT_FORMS - Tabellentyp für Upload von Steuerformularen

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

I_TRC - Feld zum Ankreuzen

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_CALLER - FPF: Caller of Form Bundle Processing

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

IT_NOTES - Tabellentyp für Notizen mit Texten und Attributen

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

IT_FORM_FIELD_DATA - Tabellentyp für Formularfelddaten

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

I_VDATE - Datum

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

I_SIMULATION - Massenaktivität: Simulationslauf

Data type: FKK_XSIMU_KK
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_SIMUDOC - Erstellung von simulierten Abrechnungsbelegen

Data type: SIMUDOC_PS
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_SIMUINV - Erstellung von simulierten Fakturierungsbelegen

Data type: SIMUINV_PS
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_CHECK_DUPL - Duplikate und Nachträge prüfen

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FMCA_BILLING_FORM_BASED

ET_BILLDOC - Standardtabelle zur Struktur BAPI_FKKINV_BILLDOCNUMBER

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

ET_INVDOC_H - Standardtabelle zum Typ FKKINVDOC_H

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

ET_FORM_FIELD_DATA - Tabellentyp für Formularfelddaten

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

E_TRC - Feld zum Ankreuzen

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

E_TAX_RETURN - Uploadstruktur für Prozeßobjekte

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

ET_FORMS - Table Type for Uploading Tax Forms

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

ET_INVBILL_I - Standardtabelle zur Struktur FKKINVBILL_I

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

CHANGING Parameters details for FMCA_BILLING_FORM_BASED

CT_RETURN - FI-CA: Standardtabelle zur Struktur BAPIRET2

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

CT_CHECKMSG - Steuerberechnung und -validierung: Tabelle Fehlernachrichten

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

Copy and paste ABAP code example for FMCA_BILLING_FORM_BASED 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_ct_return  TYPE BAPIRET2_TAB_KK, "   
lv_et_billdoc  TYPE BAPI_FKKINV_BILLDOCNUMBER_TAB, "   
lv_i_tax_return  TYPE FMCA_POBJ_S, "   
lv_i_only_validation  TYPE XFELD, "   SPACE
lv_i_save_changes  TYPE XFELD, "   SPACE
lv_i_start_wf  TYPE XFELD, "   SPACE
lv_i_bill  TYPE XFELD, "   SPACE
lv_i_inv  TYPE XFELD, "   SPACE
lv_i_taxst  TYPE XFELD, "   SPACE
lv_i_prsim  TYPE XFELD, "   SPACE
lv_i_pdf  TYPE XFELD, "   SPACE
lv_i_applclass  TYPE BRF_APPLCLASS, "   SPACE
lv_i_event  TYPE BRF_EVENT, "   
lv_it_forms  TYPE FMCA_FORMS_T, "   
lv_ct_checkmsg  TYPE FMCA_BRF_MSG_T, "   
lv_et_invdoc_h  TYPE FKKINVDOC_H_TAB, "   
lv_i_trc  TYPE XFELD, "   SPACE
lv_i_caller  TYPE FPFCA_PS, "   
lv_it_notes  TYPE FMCA_POBJ_NOTE_T, "   
lv_et_form_field_data  TYPE FMCA_FORM_FIELD_DATA_T, "   
lv_e_trc  TYPE XFELD, "   
lv_it_form_field_data  TYPE FMCA_FORM_FIELD_DATA_T, "   
lv_i_vdate  TYPE DATUM, "   
lv_e_tax_return  TYPE FMCA_POBJ_S, "   
lv_et_forms  TYPE FMCA_FORMS_T, "   
lv_i_simulation  TYPE FKK_XSIMU_KK, "   SPACE
lv_i_simudoc  TYPE SIMUDOC_PS, "   SPACE
lv_et_invbill_i  TYPE FKKINVBILL_I_TAB, "   
lv_i_simuinv  TYPE SIMUINV_PS, "   SPACE
lv_i_check_dupl  TYPE XFELD. "   SPACE

  CALL FUNCTION 'FMCA_BILLING_FORM_BASED'  "PSCD: Form-based Billing
    EXPORTING
         I_TAX_RETURN = lv_i_tax_return
         I_ONLY_VALIDATION = lv_i_only_validation
         I_SAVE_CHANGES = lv_i_save_changes
         I_START_WF = lv_i_start_wf
         I_BILL = lv_i_bill
         I_INV = lv_i_inv
         I_TAXST = lv_i_taxst
         I_PRSIM = lv_i_prsim
         I_PDF = lv_i_pdf
         I_APPLCLASS = lv_i_applclass
         I_EVENT = lv_i_event
         IT_FORMS = lv_it_forms
         I_TRC = lv_i_trc
         I_CALLER = lv_i_caller
         IT_NOTES = lv_it_notes
         IT_FORM_FIELD_DATA = lv_it_form_field_data
         I_VDATE = lv_i_vdate
         I_SIMULATION = lv_i_simulation
         I_SIMUDOC = lv_i_simudoc
         I_SIMUINV = lv_i_simuinv
         I_CHECK_DUPL = lv_i_check_dupl
    IMPORTING
         ET_BILLDOC = lv_et_billdoc
         ET_INVDOC_H = lv_et_invdoc_h
         ET_FORM_FIELD_DATA = lv_et_form_field_data
         E_TRC = lv_e_trc
         E_TAX_RETURN = lv_e_tax_return
         ET_FORMS = lv_et_forms
         ET_INVBILL_I = lv_et_invbill_i
    CHANGING
         CT_RETURN = lv_ct_return
         CT_CHECKMSG = lv_ct_checkmsg
. " FMCA_BILLING_FORM_BASED




ABAP code using 7.40 inline data declarations to call FM FMCA_BILLING_FORM_BASED

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.

 
 
 
DATA(ld_i_only_validation) = ' '.
 
DATA(ld_i_save_changes) = ' '.
 
DATA(ld_i_start_wf) = ' '.
 
DATA(ld_i_bill) = ' '.
 
DATA(ld_i_inv) = ' '.
 
DATA(ld_i_taxst) = ' '.
 
DATA(ld_i_prsim) = ' '.
 
DATA(ld_i_pdf) = ' '.
 
DATA(ld_i_applclass) = ' '.
 
 
 
 
 
DATA(ld_i_trc) = ' '.
 
 
 
 
 
 
 
 
 
DATA(ld_i_simulation) = ' '.
 
DATA(ld_i_simudoc) = ' '.
 
 
DATA(ld_i_simuinv) = ' '.
 
DATA(ld_i_check_dupl) = ' '.
 


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!