SAP Function Modules

FVD_DEBTTR_API_CREATE_AND_POST SAP Function module - Save Borrower Change







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

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


Pattern for FM FVD_DEBTTR_API_CREATE_AND_POST - FVD DEBTTR API CREATE AND POST





CALL FUNCTION 'FVD_DEBTTR_API_CREATE_AND_POST' "Save Borrower Change
  EXPORTING
    i_bukrs =                   " bukrs         BC: Loan -Specific Business Operation Data
    i_ranl =                    " ranl          Contract Number
    i_rklammer =                " rklammer      Classification Number for Finance Projects
    i_s_post_info =             " rdebttr_save  Back-up information for the Borrower Change
    i_s_api_base_combined =     " rdebttr_api_base_combined  BC: Loan -Specific Business Operation Data
*   i_x_no_confirmation = ' '   " tb_x_no_confirmation  Skip Release Procedure
*   i_calln_appln = 'INT'       " tb_callng_appln  Calling Application
  IMPORTING
    e_tab_bo_list =             " trty_rdebttr_bo_list  Result of Data Selection by Loan and Business Operation
    e_tab_vdbeki =              " trty_vdbeki   Table Type for Table VDBEKI
    e_tab_vdbepi =              " trty_vdbepi   Table Type for Table VDBEPI
    e_tab_bkpf_oi =             " trty_bkpf     Table Type for Table BKPF
    e_tab_msg =                 " bal_t_msg     Application Log: Table with Messages
  EXCEPTIONS
    FAILED = 1                  "               Schuldnerwechsel nicht durchgeführt
    MANDATE_NOT_VALID = 2       "               Invalid SEPA Mandate for an EDD Payment Method
    SEPA_ERROR = 3              "               SEPA Information Cannot Be Processed
    .  "  FVD_DEBTTR_API_CREATE_AND_POST

ABAP code example for Function Module FVD_DEBTTR_API_CREATE_AND_POST





The ABAP code below is a full code listing to execute function module FVD_DEBTTR_API_CREATE_AND_POST 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_bo_list  TYPE TRTY_RDEBTTR_BO_LIST ,
ld_e_tab_vdbeki  TYPE TRTY_VDBEKI ,
ld_e_tab_vdbepi  TYPE TRTY_VDBEPI ,
ld_e_tab_bkpf_oi  TYPE TRTY_BKPF ,
ld_e_tab_msg  TYPE BAL_T_MSG .

DATA(ld_i_bukrs) = 'Check type of data required'.
DATA(ld_i_ranl) = 'Check type of data required'.
DATA(ld_i_rklammer) = 'Check type of data required'.
DATA(ld_i_s_post_info) = 'Check type of data required'.
DATA(ld_i_s_api_base_combined) = 'Check type of data required'.
DATA(ld_i_x_no_confirmation) = 'Check type of data required'.
DATA(ld_i_calln_appln) = 'Check type of data required'. . CALL FUNCTION 'FVD_DEBTTR_API_CREATE_AND_POST' EXPORTING i_bukrs = ld_i_bukrs i_ranl = ld_i_ranl i_rklammer = ld_i_rklammer i_s_post_info = ld_i_s_post_info i_s_api_base_combined = ld_i_s_api_base_combined * i_x_no_confirmation = ld_i_x_no_confirmation * i_calln_appln = ld_i_calln_appln IMPORTING e_tab_bo_list = ld_e_tab_bo_list e_tab_vdbeki = ld_e_tab_vdbeki e_tab_vdbepi = ld_e_tab_vdbepi e_tab_bkpf_oi = ld_e_tab_bkpf_oi e_tab_msg = ld_e_tab_msg EXCEPTIONS FAILED = 1 MANDATE_NOT_VALID = 2 SEPA_ERROR = 3 . " FVD_DEBTTR_API_CREATE_AND_POST
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 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_e_tab_bo_list  TYPE TRTY_RDEBTTR_BO_LIST ,
ld_i_bukrs  TYPE BUKRS ,
ld_e_tab_vdbeki  TYPE TRTY_VDBEKI ,
ld_i_ranl  TYPE RANL ,
ld_e_tab_vdbepi  TYPE TRTY_VDBEPI ,
ld_i_rklammer  TYPE RKLAMMER ,
ld_e_tab_bkpf_oi  TYPE TRTY_BKPF ,
ld_i_s_post_info  TYPE RDEBTTR_SAVE ,
ld_e_tab_msg  TYPE BAL_T_MSG ,
ld_i_s_api_base_combined  TYPE RDEBTTR_API_BASE_COMBINED ,
ld_i_x_no_confirmation  TYPE TB_X_NO_CONFIRMATION ,
ld_i_calln_appln  TYPE TB_CALLNG_APPLN .

ld_i_bukrs = 'Check type of data required'.
ld_i_ranl = 'Check type of data required'.
ld_i_rklammer = 'Check type of data required'.
ld_i_s_post_info = 'Check type of data required'.
ld_i_s_api_base_combined = 'Check type of data required'.
ld_i_x_no_confirmation = 'Check type of data required'.
ld_i_calln_appln = '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_DEBTTR_API_CREATE_AND_POST or its description.