SAP Function Modules

FMCA_BILLING_OBJECT_BASED SAP Function module - Objektbasierte Abrechnung







FMCA_BILLING_OBJECT_BASED is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FMCA_BILLING_OBJECT_BASED into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FMCA_BILLING
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FMCA_BILLING_OBJECT_BASED - FMCA BILLING OBJECT BASED





CALL FUNCTION 'FMCA_BILLING_OBJECT_BASED' "Objektbasierte Abrechnung
  EXPORTING
    i_dpsob_bp_acc =            " dpsob_bp_acc  Daten zum Vertragsgegenstand je Partner & Vertragskontotyp
    i_fkkvkp =                  " fkkvkp        Vertragskonto partnerspezifisch
    it_fkkvk =                  " fkkvk_t       Tabellentyp Vertragskonto Kopf
    it_dpsob =                  " dpsob_t       Vertragsgegenstands-Tabelle in IS-PS-CA
    irt_revtype =               " fmca_rt_abtyp  Range Tabelle für Abgabeart
    irt_persl =                 " fkk_rt_persl  Range Table für Periodenschlüssel
    is_standard =               " fmca_pobb_standard  Abrechnungsbelege für obj.-basierte Steuern (Standardfelder)
*   i_simulation = SPACE        " fkk_xsimu_kk  Massenaktivität: Simulationslauf
*   i_bill = SPACE              " xfeld         Abrechnungsbeleg erstellen
  IMPORTING
    et_billdoc =                " bapi_fkkinv_billdocnumber_tab  Standardtabelle zur Struktur BAPI_FKKINV_BILLDOCNUMBER
    et_invdoc_h =               " fkkinvdoc_h_tab  Standardtabelle zum Typ FKKINVDOC_H
    e_trc =                     " xfeld         Feld zum Ankreuzen
  CHANGING
    ct_return =                 " bapiret2_tab_kk  FI-CA: Standardtabelle zur Struktur BAPIRET2
  EXCEPTIONS
    INVALID_PERIOD = 1          "               Ungültige Periode
    .  "  FMCA_BILLING_OBJECT_BASED

ABAP code example for Function Module FMCA_BILLING_OBJECT_BASED





The ABAP code below is a full code listing to execute function module FMCA_BILLING_OBJECT_BASED including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_et_billdoc  TYPE BAPI_FKKINV_BILLDOCNUMBER_TAB ,
ld_et_invdoc_h  TYPE FKKINVDOC_H_TAB ,
ld_e_trc  TYPE XFELD .

DATA(ld_ct_return) = 'Check type of data required'.
DATA(ld_i_dpsob_bp_acc) = 'Check type of data required'.
DATA(ld_i_fkkvkp) = 'Check type of data required'.
DATA(ld_it_fkkvk) = 'Check type of data required'.
DATA(ld_it_dpsob) = 'Check type of data required'.
DATA(ld_irt_revtype) = 'Check type of data required'.
DATA(ld_irt_persl) = 'Check type of data required'.
DATA(ld_is_standard) = 'Check type of data required'.
DATA(ld_i_simulation) = 'Check type of data required'.
DATA(ld_i_bill) = 'Check type of data required'. . CALL FUNCTION 'FMCA_BILLING_OBJECT_BASED' EXPORTING i_dpsob_bp_acc = ld_i_dpsob_bp_acc i_fkkvkp = ld_i_fkkvkp it_fkkvk = ld_it_fkkvk it_dpsob = ld_it_dpsob irt_revtype = ld_irt_revtype irt_persl = ld_irt_persl is_standard = ld_is_standard * i_simulation = ld_i_simulation * i_bill = ld_i_bill IMPORTING et_billdoc = ld_et_billdoc et_invdoc_h = ld_et_invdoc_h e_trc = ld_e_trc CHANGING ct_return = ld_ct_return EXCEPTIONS INVALID_PERIOD = 1 . " FMCA_BILLING_OBJECT_BASED
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ct_return  TYPE BAPIRET2_TAB_KK ,
ld_et_billdoc  TYPE BAPI_FKKINV_BILLDOCNUMBER_TAB ,
ld_i_dpsob_bp_acc  TYPE DPSOB_BP_ACC ,
ld_et_invdoc_h  TYPE FKKINVDOC_H_TAB ,
ld_i_fkkvkp  TYPE FKKVKP ,
ld_e_trc  TYPE XFELD ,
ld_it_fkkvk  TYPE FKKVK_T ,
ld_it_dpsob  TYPE DPSOB_T ,
ld_irt_revtype  TYPE FMCA_RT_ABTYP ,
ld_irt_persl  TYPE FKK_RT_PERSL ,
ld_is_standard  TYPE FMCA_POBB_STANDARD ,
ld_i_simulation  TYPE FKK_XSIMU_KK ,
ld_i_bill  TYPE XFELD .

ld_ct_return = 'Check type of data required'.
ld_i_dpsob_bp_acc = 'Check type of data required'.
ld_i_fkkvkp = 'Check type of data required'.
ld_it_fkkvk = 'Check type of data required'.
ld_it_dpsob = 'Check type of data required'.
ld_irt_revtype = 'Check type of data required'.
ld_irt_persl = 'Check type of data required'.
ld_is_standard = 'Check type of data required'.
ld_i_simulation = 'Check type of data required'.
ld_i_bill = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FMCA_BILLING_OBJECT_BASED or its description.