SAP Function Modules

FVD_PAY_OBJ_PAYMENT_DIST SAP Function module - Central Distribution of Incoming Payments Using Plan Customizing







FVD_PAY_OBJ_PAYMENT_DIST 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 FVD_PAY_OBJ_PAYMENT_DIST into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FVD_PAY_OBJ_PAYMENT_DIST - FVD PAY OBJ PAYMENT DIST





CALL FUNCTION 'FVD_PAY_OBJ_PAYMENT_DIST' "Central Distribution of Incoming Payments Using Plan Customizing
  EXPORTING
    i_str_vdarl =               " vdarl         Company Code
    i_tab_bsid =                " trty_bsid     Table Type for Table BSID
    i_tab_bepp =                " trty_vdbepp   Table Type for Table VDBEPP
*   i_tab_checkdetails =        " trty_rcheckdetails  US Incoming Payment: Extended Payment Information (Coupon)
    i_tab_fvvzev =              " trty_fvvzev   Incoming pmnts distribution/max. amount of valid sort fields
*   i_paym_appl =               " anwnd_ebko    Application using bank data storage
*   i_org_amount =              " bseg-wrbtr    Amount in Document Currency
*   i_org_amount_lc =           " bseg-dmbtr    Amount in Local Currency
*   i_flg_init_nvorgang = 'X'   " flag
*   i_tab_zevranl =             " trty_vdarl    Table Type for Table VDARL
*   i_ftr_tr_loan_eb =          " if_ex_ftr_tr_loan_eb  BAdI Interface IF_EX_FTR_TR_LOAN_EB
  IMPORTING
    e_tab_vdznv =               " trty_vdznv    Table Type for Structure VDZNV
    e_flg_single_ip =           " flag          General Flag
  CHANGING
    c_tab_pay_seg =             " trty_bssbseg  Table Type For Table BSSBSEG
    c_tab_postvdbepp =          " trty_vdbepp   Transaction Data - Plan Item
    c_tab_postaddbepp =         " trty_addbepp  Additional Information on VDBEPP
  EXCEPTIONS
    POSTED_PERIOD_ERROR = 1     "               Zahlungseingang hätte gebuchten Zins beeinflusst
    INCONSISTENCY_ERROR = 2     "               Inkonsistenter Datenzustand
    PAYOFF_ERROR = 3            "               Paid in Full without Posted BO Payoff
    UNOPENED_PERIOD_ERROR = 4   "               Zahlungseingang in Periode ohne gebuchte Leistungsrate
    CUSTOMIZING_ERROR = 5       "               Customizing Error
    .  "  FVD_PAY_OBJ_PAYMENT_DIST

ABAP code example for Function Module FVD_PAY_OBJ_PAYMENT_DIST





The ABAP code below is a full code listing to execute function module FVD_PAY_OBJ_PAYMENT_DIST 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_e_tab_vdznv  TYPE TRTY_VDZNV ,
ld_e_flg_single_ip  TYPE FLAG .

DATA(ld_c_tab_pay_seg) = 'Check type of data required'.
DATA(ld_c_tab_postvdbepp) = 'Check type of data required'.
DATA(ld_c_tab_postaddbepp) = 'Check type of data required'.
DATA(ld_i_str_vdarl) = 'Check type of data required'.
DATA(ld_i_tab_bsid) = 'Check type of data required'.
DATA(ld_i_tab_bepp) = 'Check type of data required'.
DATA(ld_i_tab_checkdetails) = 'Check type of data required'.
DATA(ld_i_tab_fvvzev) = 'Check type of data required'.
DATA(ld_i_paym_appl) = 'Check type of data required'.

SELECT single WRBTR
FROM BSEG
INTO @DATA(ld_i_org_amount).


SELECT single DMBTR
FROM BSEG
INTO @DATA(ld_i_org_amount_lc).

DATA(ld_i_flg_init_nvorgang) = 'Check type of data required'.
DATA(ld_i_tab_zevranl) = 'Check type of data required'.
DATA(ld_i_ftr_tr_loan_eb) = 'Check type of data required'. . CALL FUNCTION 'FVD_PAY_OBJ_PAYMENT_DIST' EXPORTING i_str_vdarl = ld_i_str_vdarl i_tab_bsid = ld_i_tab_bsid i_tab_bepp = ld_i_tab_bepp * i_tab_checkdetails = ld_i_tab_checkdetails i_tab_fvvzev = ld_i_tab_fvvzev * i_paym_appl = ld_i_paym_appl * i_org_amount = ld_i_org_amount * i_org_amount_lc = ld_i_org_amount_lc * i_flg_init_nvorgang = ld_i_flg_init_nvorgang * i_tab_zevranl = ld_i_tab_zevranl * i_ftr_tr_loan_eb = ld_i_ftr_tr_loan_eb IMPORTING e_tab_vdznv = ld_e_tab_vdznv e_flg_single_ip = ld_e_flg_single_ip CHANGING c_tab_pay_seg = ld_c_tab_pay_seg c_tab_postvdbepp = ld_c_tab_postvdbepp c_tab_postaddbepp = ld_c_tab_postaddbepp EXCEPTIONS POSTED_PERIOD_ERROR = 1 INCONSISTENCY_ERROR = 2 PAYOFF_ERROR = 3 UNOPENED_PERIOD_ERROR = 4 CUSTOMIZING_ERROR = 5 . " FVD_PAY_OBJ_PAYMENT_DIST
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "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_c_tab_pay_seg  TYPE TRTY_BSSBSEG ,
ld_e_tab_vdznv  TYPE TRTY_VDZNV ,
ld_i_str_vdarl  TYPE VDARL ,
ld_c_tab_postvdbepp  TYPE TRTY_VDBEPP ,
ld_e_flg_single_ip  TYPE FLAG ,
ld_i_tab_bsid  TYPE TRTY_BSID ,
ld_c_tab_postaddbepp  TYPE TRTY_ADDBEPP ,
ld_i_tab_bepp  TYPE TRTY_VDBEPP ,
ld_i_tab_checkdetails  TYPE TRTY_RCHECKDETAILS ,
ld_i_tab_fvvzev  TYPE TRTY_FVVZEV ,
ld_i_paym_appl  TYPE ANWND_EBKO ,
ld_i_org_amount  TYPE BSEG-WRBTR ,
ld_i_org_amount_lc  TYPE BSEG-DMBTR ,
ld_i_flg_init_nvorgang  TYPE FLAG ,
ld_i_tab_zevranl  TYPE TRTY_VDARL ,
ld_i_ftr_tr_loan_eb  TYPE IF_EX_FTR_TR_LOAN_EB .

ld_c_tab_pay_seg = 'Check type of data required'.
ld_i_str_vdarl = 'Check type of data required'.
ld_c_tab_postvdbepp = 'Check type of data required'.
ld_i_tab_bsid = 'Check type of data required'.
ld_c_tab_postaddbepp = 'Check type of data required'.
ld_i_tab_bepp = 'Check type of data required'.
ld_i_tab_checkdetails = 'Check type of data required'.
ld_i_tab_fvvzev = 'Check type of data required'.
ld_i_paym_appl = 'Check type of data required'.

SELECT single WRBTR
FROM BSEG
INTO ld_i_org_amount.


SELECT single DMBTR
FROM BSEG
INTO ld_i_org_amount_lc.

ld_i_flg_init_nvorgang = 'Check type of data required'.
ld_i_tab_zevranl = 'Check type of data required'.
ld_i_ftr_tr_loan_eb = '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 FVD_PAY_OBJ_PAYMENT_DIST or its description.