SAP Reports / Programs

RFVWABG0 SAP ABAP Report - Securities: Execute Accrual/Deferral







RFVWABG0 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 RFVWABG0 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

FWAB - Securities accruals/deferrals


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 RFVWABG0. "Basic submit
SUBMIT RFVWABG0 AND RETURN. "Return to original report after report execution complete
SUBMIT RFVWABG0 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_REWHR = Position currency
Selection Text: SO_REFKO = Account assignment reference
Selection Text: SO_RANL = ID number
Selection Text: SO_GSART = Product type
Selection Text: SO_DEPOT = Securities account
Selection Text: SO_BUKRS = Company code
Selection Text: SO_BEWAI = Flow type
Selection Text: PA_VLIST = Variable list output
Selection Text: PA_TEST = Test run
Selection Text: PA_STICH = Accrual/deferral key date
Selection Text: PA_RDEVK = Exchange rate calc. indicator
Selection Text: PA_PERIO = Posting period
Selection Text: PA_BUDAT = Posting date diff.frm key date
Selection Text: PA_ABG = Check for period-end closing
Title: Securities: Execute Accrual/Deferral
Text Symbol: M30 = Errors occurred during update. Check the documents.
Text Symbol: N01 = Report:
Text Symbol: N02 = Accr./Def.:
Text Symbol: C04 = Page:
Text Symbol: C03 = Securities: Accrual/deferral
Text Symbol: C02 = Time:
Text Symbol: C01 = Date:
Text Symbol: B01 = Accrual/deferral posting log
Text Symbol: 021 = Accrual/deferral by flow type
Text Symbol: 008 = ID number to:
Text Symbol: 007 = ID number from:
Text Symbol: 006 = Product type to:
Text Symbol: 005 = Product type from:
Text Symbol: 004 = Company code to:
Text Symbol: 003 = Company code from:
Text Symbol: 002 = Product type
Text Symbol: 001 = Company code
Text Symbol: C05 = Customizing check
Text Symbol: I20 = Selection parameters
Text Symbol: I10 = General selections
Text Symbol: H14 = LOCAL CURR.
Text Symbol: H13 = ACC/DEF AMNT LC
Text Symbol: H12 = ACC./DEF. AMOUNT





Text Symbol: H11 = KEY DATE
Text Symbol: M25 = Sec.acct pos.overview/posting journal
Text Symbol: N03 = Key date:
Text Symbol: SA1 = Currency total:
Text Symbol: S15 = In local currency
Text Symbol: S11 = Total acc./def. amounts for CoCd
Text Symbol: S10 = in LC
Text Symbol: S09 = ID number
Text Symbol: S08 = Currency
Text Symbol: S07 = Acct ass.ref.
Text Symbol: S06 = Loan type
Text Symbol: S05 = CoCd in LC
Text Symbol: S04 = CompanyCode
Text Symbol: S03 = Currency
Text Symbol: S02 = Prod.type
Text Symbol: S01 = Flow type
Text Symbol: N04 = Date :
Text Symbol: I30 = Posting control
Text Symbol: I40 = Output control
Text Symbol: INC = Inclusive
Text Symbol: M01 = Error occurred
Text Symbol: M02 = No accruals/deferrals amounts determined
Text Symbol: M20 = Branch to
Text Symbol: M21 = sec.acct pos.overview
Text Symbol: M22 = or posting journal?
Text Symbol: M23 = Sec.acct pos.overview
Text Symbol: M24 = Posting journal
Text Symbol: H07 = |Key date
Text Symbol: T21 = Acc./def. posting
Text Symbol: T20 = Posting log securities accrual/deferral
Text Symbol: T14 = Posting log output to spool
Text Symbol: T10 = Error log - Accrual/deferral
Text Symbol: T03 = Securities - Accrual/Deferral Reset Procedure
Text Symbol: T01 = Securities - Accrual/Deferral Difference Procedure
Text Symbol: STI = Acc./Def. Key Date
Text Symbol: SA4 = CoCd total (in LC) Key date: and flow type:
Text Symbol: SA3 = IDno. total Key date: and flow type:
Text Symbol: SA2 = CoCd total Key date: and flow type:
Text Symbol: T52 = Sec. interest accr./defer.





Text Symbol: U22 = Calc. capital in
Text Symbol: U21 = To be acc./def. in
Text Symbol: U20 = in
Text Symbol: U11 = C
Text Symbol: U10 = D
Text Symbol: U04 = Yearly
Text Symbol: U03 = Monthly
Text Symbol: U02 = Accruals/deferrals list Key date:
Text Symbol: U01 = |ID number....|Sec.acct...|Flow type..........................|Acc./def.amount......|Currency.|Key date....|
Text Symbol: TZO = Processing for zero bond under sep. menu point
Text Symbol: TRU = Accrual/deferral must be reset first
Text Symbol: TNO = Amortized cost/zero bond
Text Symbol: TDO = Acc./def. already carried out per key date
Text Symbol: TAM = Processing per amortized cost under separate menu point
Text Symbol: H06 = |Acc./def.amount in LC
Text Symbol: H05 = |Curr.
Text Symbol: H04 = |Acc./def.amount in curr.
Text Symbol: H03 = |Flow type
Text Symbol: H02 = |Sec.acct
Text Symbol: H01 = |ID number
Text Symbol: C06 = Selection entries accrual/deferral securities
Text Symbol: W30 = CoCd: & flow type: & flow cat.: & - Flow type def. in TZB06 as acc./def.flow type. TZB0A is one of A/D flow type
Text Symbol: W29 = CoCd: & flow type: & A/D proc.: & calc.cat.: & - A/D proc. of flow type+calc.cat. of offsetting flow type inconsistent
Text Symbol: W28 = CoCd: & flow type: & rel.cat: & - No reset flow defined in TZB06 for this flow type
Text Symbol: W27 = CoCd: & flow type: & rel.cat: & calc.cat.: & - Acc./def.flow type in TZB06 - Data inconsistent
Text Symbol: W26 = CoCd: & flow type: & - Flow type def. in TZB06 as acc./def.flow type. TZB0A-debit/credit field is blank
Text Symbol: W25 = CoCd: & flow type: & - Flow type def. in TZB06 as acc./def.flow type. TZB0A-A/D meth. is inconsistent
Text Symbol: W24 = CoCd: & flow type: & calc.cat.: & - Flow type def. in TZB06 as acc./def.flow type. TZBOA-calc.cat. is inconsistent
Text Symbol: W23 = CoCd: & flow type: & - Flow type def. in TZB06 as acc./def.flow type. TZB0A-A/D proc. is inconsistent
Text Symbol: W22 = CoCd: & flow type: & - Flow type def. in TZB06 as acc./def.flow type. TZB0A-A/D meth. is inconsistent
Text Symbol: ULT = MthEnd
Text Symbol: UH9 = | CoCd | ID number | Sec.acct |FlowType| Error |
Text Symbol: UH3 = | ID number | Sec.acct | Percent | Acc./def. amount |
Text Symbol: UH2 = | ID number | Sec.acct |To be acc./deferred| Accrued/deferred |curr. acc/deferred | Still open| Acc./def. amount |D/C|
Text Symbol: UH1 = | ID number | Sec.acct |Calculat. capital | Percent | Days | From | To | Acc./def. amount | D/C |
Text Symbol: T51 = Sec. interest accr./defer.
Text Symbol: T41 = Grand total
Text Symbol: T40 = Group total
Text Symbol: T22 = Long text error description



INCLUDES used within this REPORT RFVWABG0

INCLUDE WPAGWTOP.


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:

TPM_TRG_OBSOLETE_TRANSACTIONS call function 'TPM_TRG_OBSOLETE_TRANSACTIONS' EXPORTING IM_OLD_TRANSACTION = 'FWAB' IM_NEW_TRANSACTION = 'TPM44' IM_NEW_REPORT = 'RTPM_ACCRUAL_DEFERRAL'.

LOGFILE_INIT * CALL FUNCTION 'LOGFILE_INIT' "Protokoll initialisieren * EXPORTING * ILEVEL = NPROT. "Protokollebene

TB_DEAL_AUTHORITY_CHECK CALL FUNCTION 'TB_DEAL_AUTHORITY_CHECK' " Scho zu 4.0

TRANSACTIONS_SEC_LOAD_I_VIEW CALL FUNCTION 'TRANSACTIONS_SEC_LOAD_I_VIEW' EXPORTING bukrs = i_vwpdepo-bukrs ranl = i_vwpdepo-ranl rldepo = i_vwpdepo-rldepo type_of_selection = space TABLES tvwbevi = ivwbevi EXCEPTIONS table_tvwbevi_not_empty = 01.

TRANSACTIONS_SEC_LOAD_P CALL FUNCTION 'TRANSACTIONS_SEC_LOAD_P' EXPORTING bukrs = i_vwpdepo-bukrs ranl = i_vwpdepo-ranl rldepo = i_vwpdepo-rldepo type_of_selection = space TABLES tvwbepp = tvwbepp EXCEPTIONS table_tvwbepp_not_empty = 01 vwbepp_no_record_found = 02.

DARWIN_ABGRENZUNG_ERMITTELN CALL FUNCTION 'DARWIN_ABGRENZUNG_ERMITTELN' EXPORTING i_formroutine = 'CASH_FLOW_CONSTRUCT' i_programname = 'RFVWABG0' bukrs = i_vwpdepo-bukrs kz_sim = ' ' p_kursber = pa_rdevk "Bur 230298 Scho 0199 rantyp = '2' stichinc = con_stinc stichtag = tstich-stichtag stichult = con_sult verfahren = verfahren "Scho dis 201198 i_sabgrenz_disa = sabgr_disa i_sabgrenz_rest = sabgr_rest TABLES efehler = fvzzbepp eziti = ivzzbepp iziti = zitibepp.

FVW8_GET_INDEX_FROM_SECURITY CALL FUNCTION 'FVW8_GET_INDEX_FROM_SECURITY' EXPORTING im_security_id = i_vwpdepo-ranl IMPORTING pindex = ppriceindex EXCEPTIONS exc_invalid_security_id = 1 exc_no_index_defined_4_sec_id = 2 exc_creation_of_index_error = 3 OTHERS = 4.

FWFP_EX_FVVWUPD0 CALL FUNCTION 'FWFP_EX_FVVWUPD0' EXPORTING fm_bepp = buchbepp[] storno_bevi = mstorno_bevi[] fm_sim_kz = simula fm_verarbeitung = verarb fm_stgrd = stgrd fm_wpgrd = wpstogrd fm_dstich = bstichtag fm_budat = p_dbudat fm_bldat = p_dbldat fm_period = p_period update_flag = update pab_flag = perab fm_tcode = 'FWAB' fm_titel = text-t51 fm_kopfzeile = text-t52 * Begin PK 20000928 ************* im_protocol_handler = gpprotocolhandler im_calling_app = 'A' "Accurral/Deferral * End PK 20000928 *************** IMPORTING flg_failed_trans_exist = flg_failed_trans_exist flg_posted_trans_exist = flg_posted_trans_exist CHANGING retc_fi = bu_return.

TB_PROT_DISPLAY_POSTED_TRANS CALL FUNCTION 'TB_PROT_DISPLAY_POSTED_TRANS'.

TB_PROT_DISPLAY_FAILED_TRANS CALL FUNCTION 'TB_PROT_DISPLAY_FAILED_TRANS'.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = repname i_callback_pf_status_set = 'SET_PF_STATUS_STANDARD' " scho 280600 i_callback_user_command = 'L_USER_COMMAND' " scho 280600 * I_STRUCTURE_NAME = is_layout = layout_wa it_fieldcat = it_field_catalog * IT_EXCLUDING = * IT_SPECIAL_GROUPS = it_sort = it_sort * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'A' is_variant = d_variant it_events = it_event * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = i_abgr EXCEPTIONS program_error = 1 OTHERS = 2.

TB_PROT_DISPLAY_ALL_TR_WRITE CALL FUNCTION 'TB_PROT_DISPLAY_ALL_TR_WRITE'.

LOGFILE_PRINT CALL FUNCTION 'LOGFILE_PRINT' "Protokoll drucken EXPORTING ilevel = nprot "Protokollebene time = on. "Zeit nicht ausgeben

TB_PROT_DISPLAY_POSTED_TRANS * CALL FUNCTION 'TB_PROT_DISPLAY_POSTED_TRANS'. "EXAMPLE

TB_PROT_DISPLAY_FAILED_TRANS * CALL FUNCTION 'TB_PROT_DISPLAY_FAILED_TRANS'. "EXAMPLE

TB_PROT_DISPLAY_POSTED_TRANS CALL FUNCTION 'TB_PROT_DISPLAY_POSTED_TRANS'.

TB_PROT_DISPLAY_FAILED_TRANS CALL FUNCTION 'TB_PROT_DISPLAY_FAILED_TRANS'.



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 RFVWABG0 or its description.