SAP Reports / Programs

RFVDABG2 SAP ABAP Report - Loans: Reverse Accruals/Deferrals







RFVDABG2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RFVDABG2 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

FNRS - Reversal Accrual/Deferral


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RFVDABG2. "Basic submit
SUBMIT RFVDABG2 AND RETURN. "Return to original report after report execution complete
SUBMIT RFVDABG2 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: SO_SWHR = D .
Selection Text: SO_STIT = D .
Selection Text: SO_RKONT = D .
Selection Text: SO_RANL = D .
Selection Text: SO_GSART = D .
Selection Text: SO_BUKRS = D .
Selection Text: SO_BEWAI = D .
Selection Text: PA_ZABG = Interest Accruals/Deferrals
Selection Text: PA_TEST = D .
Selection Text: PA_STGRD = D .
Selection Text: PA_SIMU = D .
Selection Text: PA_RUEC = Reset
Selection Text: PA_PROT = D .
Selection Text: PA_PLSFS = Update Planned Rec. Price Gain
Selection Text: PA_NOERR = D .
Selection Text: PA_FEE = D .
Selection Text: PA_FAELL = Accrual/Deferral Key Date
Selection Text: PA_DISA = Discount/Premium
Selection Text: PA_BUPER = D .
Selection Text: PA_BUDAT = Posting Date of Reversal
Title: Loans: Reverse Accruals/Deferrals
Text Symbol: U05 = Simulation
Text Symbol: U04 = Contract &1/&2
Text Symbol: U03 = Posting Date of Reversal:
Text Symbol: U02 = Accrual/Deferral Key Date:
Text Symbol: U01 = |Contract Number |Flow Type | Reversal Amount| Amount in Local Currency |
Text Symbol: TDO = Accruals/deferrals exist after the key date
Text Symbol: T24 = Log Reversal Accrual/Deferral (Simulation)
Text Symbol: T23 = Log of Acc./Def. Reversal
Text Symbol: T22 = Acc./Def. Reversal
Text Symbol: T21 = Product type does not exist
Text Symbol: T07 = No messages exist
Text Symbol: T06 = Reversal Messages
Text Symbol: T05 = Error Log
Text Symbol: T03 = Loans - Reverse accruals/deferrals
Text Symbol: B01 = Posting Log: Reverse Accruals/Deferrals
Text Symbol: B02 = Posting Log. Rev.Acc/Def(Sim.)
Text Symbol: C01 = Selection Entries: Reverse Accruals/Deferrals for Loans





Text Symbol: E01 = Posting error has occurred
Text Symbol: E17 = The following resets exist for accruals/deferrals
Text Symbol: I10 = General Selections
Text Symbol: S03 = Pr.Type Total:
Text Symbol: S02 = CoCd Total:
Text Symbol: I20 = Control Parameters
Text Symbol: I30 = Posting Control
Text Symbol: N11 = Company Code
Text Symbol: N12 = Contract No.
Text Symbol: N13 = Prod. type
Text Symbol: N14 = No Valid Status Transfer
Text Symbol: N15 = Reversal can only be executed online


INCLUDES used within this REPORT RFVDABG2

INCLUDE APPL_LOG.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

INIT_EVENT_REGISTER_FORM CALL FUNCTION 'INIT_EVENT_REGISTER_FORM' EXPORTING formname = 'SET_UPDATE_TASK_LOCAL' progname = 'RFVDABG2'.

FVD_TRLE_DISTRIBUTOR_IF CALL FUNCTION 'FVD_TRLE_DISTRIBUTOR_IF' EXPORTING i_flg_log = '3' " collect posting protocol EXCEPTIONS OTHERS = 2.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING mode = 'CURRENT' new_list_id = 'X' no_dialog = 'X' IMPORTING out_archive_parameters = arc_params out_parameters = params valid = valid.

FVD_SEL_TDPZZ_READ CALL FUNCTION 'FVD_SEL_TDPZZ_READ' IMPORTING e_wrk_tdpzz = g_wrk_tdpzz EXCEPTIONS internal_error = 1 not_found = 2 OTHERS = 3.

LOAN_FLOWS_SUPPLY CALL FUNCTION 'LOAN_FLOWS_SUPPLY' EXPORTING i_bukrs = i_vdarl-bukrs i_ranl = i_vdarl-ranl read_scheduled_records = ' ' read_posted_records = 'X' no_storno = ' ' TABLES o_vzzbepp = zitibepp EXCEPTIONS ranl_not_found = 1 i_dvalut_until_too_early = 2 OTHERS = 3.

SET_PRINT_PARAMETERS CALL FUNCTION 'SET_PRINT_PARAMETERS' EXPORTING in_archive_parameters = arc_params in_parameters = params new_list_id = space.

ACCOUNT_REPORT CALL FUNCTION 'ACCOUNT_REPORT' EXPORTING batch_kz = 'X' * header_text = text-b01 "N922662 * name = text-b01 "N922662 header_text = l_buprot name = l_buprot only_in_spool = sy-batch rantyp = '1' sverrkz = space switch_waer = ' ' repid = l_repid.

ERROR_RULE_ACCOUNT CALL FUNCTION 'ERROR_RULE_ACCOUNT' EXPORTING batch_kz = 'X' "hier immer 'X' channel = '0' "O-Bildschirm name = text-t05.

ACCOUNT_REPORT_DIALOG CALL FUNCTION 'ACCOUNT_REPORT_DIALOG' EXPORTING flg_error_account = ' ' * name = text-b01 " Buchungsprot. Rücknahme

FVD_TRLE_DISTRIBUTOR_IF CALL FUNCTION 'FVD_TRLE_DISTRIBUTOR_IF' EXPORTING i_flg_log = '5' " posting protocol to spool EXCEPTIONS OTHERS = 2.

NUMBER_RANGE_INTERVAL_LIST CALL FUNCTION 'NUMBER_RANGE_INTERVAL_LIST' EXPORTING object = 'FVVD_PNNR' subobject = p_post_beki_bukrs TABLES interval = intervalle EXCEPTIONS nr_range_nr1_not_found = 1 nr_range_nr1_not_intern = 2 nr_range_nr2_must_be_space = 3 nr_range_nr2_not_extern = 4 nr_range_nr2_not_found = 5 object_not_found = 6 subobject_must_be_space = 7 subobject_not_found = 8 OTHERS = 9.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = intervalle-nrrangenr object = 'FVVD_PNNR' quantity = '1' subobject = p_post_beki_bukrs * toyear = '0000' * ignore_buffer = ' ' IMPORTING number = p_primanota quantity = menge returncode = retcode EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 quantity_is_0 = 4 quantity_is_not_1 = 5 interval_overflow = 6 OTHERS = 7.






NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = '01' object = con_nr_object * QUANTITY = E03 subobject = p_post_beki_bukrs * TOYEAR = E05 IMPORTING number = p_superprimanota * QUANTITY = I02 * RETURNCODE = I03 EXCEPTIONS interval_not_found = 01 number_range_not_intern = 02 object_not_found = 03 quantity_is_0 = 04.

FVD_TABLE_SET CALL FUNCTION 'FVD_TABLE_SET' EXPORTING i_tablename = 'VDARL' i_wrk_old = l_wrk_vdarl_old i_wrk_new = l_wrk_vdarl_new EXCEPTIONS error = 1 OTHERS = 2.

STATUS_DETERMINE CALL FUNCTION 'STATUS_DETERMINE' EXPORTING business_type = u_wrk_vdarl-gsart company_code = u_wrk_vdarl-bukrs old_status = u_wrk_vdarl-sstati pickup_possible = 'X' popup_title = l_title transaction_code = 'FNV ' IMPORTING tzc37 = l_wrk_tzc37 EXCEPTIONS pickup_cancelled = 1 status_impossible = 2 status_not_unique = 3 tzc37_not_valid = 4 tzm37_not_valid = 5 tzv37_not_valid = 6 OTHERS = 7.

FVD_LS_API_REVERSAL_SET CALL FUNCTION 'FVD_LS_API_REVERSAL_SET' CHANGING c_str_vdarl = l_wrk_vdarl EXCEPTIONS error = 1 OTHERS = 2.

DEQUEUE_EFVDARL CALL FUNCTION 'DEQUEUE_EFVDARL' EXPORTING bukrs = s_bukrs sarchiv = space ranl = s_ranl.

FVD_ENQUEUE_EFVDARL CALL FUNCTION 'FVD_ENQUEUE_EFVDARL' EXPORTING mode_vdarl = 'E' mandt = sy-mandt bukrs = u_bukrs sarchiv = space ranl = u_ranl EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

FVD_TABLE_INIT CALL FUNCTION 'FVD_TABLE_INIT' EXCEPTIONS error = 1 OTHERS = 2.

LOAN_MESSAGES_INITIALIZE CALL FUNCTION 'LOAN_MESSAGES_INITIALIZE' EXPORTING i_collect_and_send = ' ' i_reset = 'X'.

LOAN_REVERSE CALL FUNCTION 'LOAN_REVERSE' EXPORTING i_bktxt = text-t22 i_protocol = 1 i_simulation = pa_test "N922662 i_primanota = l_wrk_vdbeki-rpnnr i_superprimanota = u_rpnsup i_protocol_text = l_prot "N922662 i_omit_checks = ' ' i_insert_actual = 'X' * I_ONLY_PLAN_ITEMS = ' ' i_clear_op_buffers = 'X' TABLES xt_beki_rev = u_tab_vdbeki_rev et_vdbeki = l_tab_vdbeki_dum et_vdbepi = l_tab_vdbepi_dum et_vdbepp = l_tab_vdbepp_dum EXCEPTIONS posting_impossible = 1 cancel_button_on_account_sel = 2 OTHERS = 3.

LOAN_MESSAGES_STOP CALL FUNCTION 'LOAN_MESSAGES_STOP' EXCEPTIONS a_message = 1 e_message = 2 i_message = 3 s_message = 4 w_message = 5 OTHERS = 6.

LOAN_MESSAGES_GIVE CALL FUNCTION 'LOAN_MESSAGES_GIVE' TABLES et_mesg = l_tab_mesg.

FVD_TRLE_DISTRIBUTOR_IF CALL FUNCTION 'FVD_TRLE_DISTRIBUTOR_IF' EXPORTING i_flg_simul = pa_test "N922662 i_flg_log = '1' " display log in popup i_flg_distribute = 'X' " call TR-Distributor i_flg_no_calc_org_amt = 'X' "N1682919 EXCEPTIONS warning_delete_bt = 0 OTHERS = 2.

FVD_TABLE_UPDATE CALL FUNCTION 'FVD_TABLE_UPDATE' EXPORTING i_flg_simulation = pa_test "N922662 i_flg_update_task = space i_flg_change_document = 'X' EXCEPTIONS error = 1 OTHERS = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_repid it_fieldcat = l_tab_fieldcat it_sort = l_tab_sort it_events = l_tab_event i_save = 'A' " note 817533 2005 CS TABLES t_outtab = u_abgr.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = s_tab_header.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING mode = 'CURRENT' new_list_id = space no_dialog = 'X' IMPORTING out_archive_parameters = l_arc_params out_parameters = l_params.

SET_PRINT_PARAMETERS CALL FUNCTION 'SET_PRINT_PARAMETERS' EXPORTING in_archive_parameters = l_arc_params in_parameters = l_params new_list_id = space.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RFVDABG2 or its description.