RFVWPAB2 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 RFVWPAB2 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
FWPA - Period-end closing
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.
Selection Text: P_DEPGRP = Add sec. accounts to groups
Selection Text: P_ERTRAG = Note plan. int./div./repmnt
Selection Text: P_PERIOD = D Posting period
Selection Text: P_SIMKZ = D Test run
Selection Text: S_BUKRS = D Company code
Selection Text: S_GSART = D Product type
Selection Text: S_RANL = D ID number
Selection Text: S_RLDEPO = D Securities account
Selection Text: S_RPORTB = D Portfolio
Selection Text: P_DATUM = D Key date
Selection Text: P_DBLDAT = D Document date
Selection Text: P_DBUDAT = D Posting date
Title: Securities: Execute Period-End Closing
Text Symbol: T10 = ID number: & Company code: &
Text Symbol: T09 = Following positions could not be processed since they were blocked
Text Symbol: T08 = Period-end closing could not be executed
Text Symbol: T07 = Error log:
Text Symbol: T06 = Test run
Text Symbol: T11 = Errors have occurred. See error log!
Text Symbol: T20 = No flows to be closed were found
Text Symbol: T21 = --- End ---
Text Symbol: T27 = Planned records which have to be posted first
Text Symbol: 001 = Period-end closing
Text Symbol: B01 = Error occurred in posting interface
Text Symbol: B02 = See error log in spool
Text Symbol: R01 = General selections
Text Symbol: R02 = Closing paramet.
Text Symbol: R03 = Posting control
Text Symbol: T01 = Company code
Text Symbol: T02 = per
Text Symbol: T05 = Period-end closing executed
Text Symbol: T28 = Valuation groups
Text Symbol: T29 = Company code ID number PEC-Un
Text Symbol: T30 = Class Group Sec.acct Portfolio Plan Selection Amount Position inconsistent
Text Symbol: T31 = ID number PEC-Un Class Group
Text Symbol: T32 = Flows with inconsistent amounts
Text Symbol: U01 = Sec.acct Pos.val. P FTyp Text Position amount Units/nominal Portfolio
INCLUDE WPAB2TOP.
No SAP DATABASE tables are accessed within this REPORT code!
TPM_TRG_OBSOLETE_TRANSACTIONS CALL FUNCTION 'TPM_TRG_OBSOLETE_TRANSACTIONS' EXPORTING im_old_transaction = 'FWPA' im_new_transaction = 'TPM18'.
TB_PROT_INIT CALL FUNCTION 'TB_PROT_INIT' EXPORTING i_flg_simulation = p_simkz i_application_name = sy-title.
TR_SE_ACC_PROT_SET_ROLLBACK CALL FUNCTION 'TR_SE_ACC_PROT_SET_ROLLBACK' EXCEPTIONS error_posting_protocol = 1 OTHERS = 2.
TR_SE_ACC_PROT_SET_COMMIT CALL FUNCTION 'TR_SE_ACC_PROT_SET_COMMIT'.
TB_PROT_DISPLAY_BATCH CALL FUNCTION 'TB_PROT_DISPLAY_BATCH'.
TB_PROT_DISPLAY_ALL_TRANS CALL FUNCTION 'TB_PROT_DISPLAY_ALL_TRANS'.
TRANSACTIONS_SEC_LOAD_I_VIEW CALL FUNCTION 'TRANSACTIONS_SEC_LOAD_I_VIEW' EXPORTING bukrs = it_vwpdepo-bukrs ranl = it_vwpdepo-ranl rldepo = it_vwpdepo-rldepo type_of_selection = ' ' TABLES tvwbevi = h_bevi.
TRANSACTIONS_SEC_VIEW_SPLIT CALL FUNCTION 'TRANSACTIONS_SEC_VIEW_SPLIT' EXPORTING x_beki_or_bepi = 'K' TABLES tbeki = ybeki tbepi = ybepi tbevi = gesamt_bevi.
TRANSACTIONS_TEXT CALL FUNCTION 'TRANSACTIONS_TEXT' EXPORTING language = sy-langu rantyp = rantyp_wp sbewart = bepp-sbewart sbewziti = bepp-sbewziti IMPORTING text = bewtext EXCEPTIONS no_sbewart = 01 no_text_found = 02.
ENQUEUE_EFWBEST CALL FUNCTION 'ENQUEUE_EFWBEST' EXPORTING bukrs = it_vwpdepo-bukrs ranl = it_vwpdepo-ranl * X_BUKRS = E03 * X_RANL = E04 * _WAIT = E05 * _SCOPE = E06 EXCEPTIONS foreign_lock = 01 system_failure = 02.
ENQUEUE_EVWPDEPO * CALL FUNCTION 'ENQUEUE_EVWPDEPO' * EXPORTING * BUKRS = IT_VWPDEPO-BUKRS * RANL = IT_VWPDEPO-RANL * RLDEPO = ' ' * EXCEPTIONS * FOREIGN_LOCK = 01 * SYSTEM_FAILURE = 02.
DEQUEUE_EFWBEST CALL FUNCTION 'DEQUEUE_EFWBEST' EXPORTING bukrs = it_vwpdepo-bukrs ranl = it_vwpdepo-ranl.
DEQUEUE_EVWPDEPO * CALL FUNCTION 'DEQUEUE_EVWPDEPO' * EXPORTING * BUKRS = IT_VWPDEPO-BUKRS * RANL = IT_VWPDEPO-RANL * RLDEPO = ' '.
TRANSACTIONS_SEC_LOAD_P CALL FUNCTION 'TRANSACTIONS_SEC_LOAD_P' EXPORTING bukrs = it_vwpdepo-bukrs ranl = it_vwpdepo-ranl rldepo = it_vwpdepo-rldepo type_of_selection = ' ' TABLES tvwbepp = bepp.
EVALUATION_PARA_DETERMINE CALL FUNCTION 'EVALUATION_PARA_DETERMINE' EXPORTING bukrs = fm_vwpdepo-bukrs ranl = fm_vwpdepo-ranl revaluation_range = '01' rldepo = fm_vwpdepo-rldepo * X_EBENE = E05 IMPORTING ** Korr. 29.11.1996 Gutfleisch
TB_DEAL_AUTHORITY_CHECK CALL FUNCTION 'TB_DEAL_AUTHORITY_CHECK' EXPORTING bukrs = bukrs sgsart = gsart * SFHAART = * RPORTB = rldepo = rldepo * TBEGRU = trfct = con_function actvt = actvt EXCEPTIONS authority = 1 OTHERS = 2.
COMPANY_CODE_READ_SEC CALL FUNCTION 'COMPANY_CODE_READ_SEC' EXPORTING i_bukrs = it_vwpdepo-bukrs IMPORTING e_t001 = p_t001 e_tzbz = h_tzbz.
FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = h_tzbz-umsdatum i_bukrs = h_tzbz-bukrs * I_PERIV = ' ' * I_GJAHR = 0000 * I_MONAT = 00 * X_XMO16 = ' ' IMPORTING e_gjahr = gjahr_umsetz.
CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = p_datum i_bukrs = h_tzbz-bukrs * I_PERIV = ' ' * I_GJAHR = 0000 * I_MONAT = 00 * X_XMO16 = ' ' IMPORTING e_gjahr = gjahr_aktuell.
RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = hlp_repid TABLES selection_table = t_selopt EXCEPTIONS OTHERS = 1.
RS_LIST_SELECTION_TABLE CALL FUNCTION 'RS_LIST_SELECTION_TABLE' EXPORTING report = hlp_repid seltext = xtrue * DYN_RANGE = newpage = xfalse TABLES sel_tab = t_selopt.
FWPO_TRANSACTIONS_GET CALL FUNCTION 'FWPO_TRANSACTIONS_GET' EXPORTING i_bukrs = wa_bevi-bukrs i_post_transactions = fm_post_transactions i_changed_actual_transactions = fm_bevi_old * I_NEW_PLAN_TRANSACTIONS = * SAC i_delete_plan_transactions = it_bepp_to_delete i_old_plan_transactions = h_old_plan i_old_actual_transactions = l_tab_old_actual_transactions.
FWPO_TRANSACTIONS_POST CALL FUNCTION 'FWPO_TRANSACTIONS_POST' EXPORTING i_budat = fm_dbudat i_bldat = fm_dbldat i_period = p_period "glasauer 03.02.99
FWPO_TRANSACTIONS_POST * call function 'FWPO_TRANSACTIONS_POST' * exporting * i_budat = fm_dbudat * i_bldat = fm_dbldat * i_sevalpost_ranl_list = fm_ranl_list * i_external_primanota = 'X' * i_external_budat_for_pab = flag_dbudat ** i_old_beki = fm_beki_old.
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 RFVWPAB2 or its description.