SAP Reports / Programs

RTPM_GET_NPVS_FOR_VTVBAR SAP ABAP Report - Save NPVs from the Market Risk Analyzer







RTPM_GET_NPVS_FOR_VTVBAR is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report program calculates net present values for transactions/loans with positions in parallel valuation areas...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RTPM_GET_NPVS_FOR_VTVBAR 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

TPM60 - Save NPVs


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 RTPM_GET_NPVS_FOR_VTVBAR. "Basic submit
SUBMIT RTPM_GET_NPVS_FOR_VTVBAR AND RETURN. "Return to original report after report execution complete
SUBMIT RTPM_GET_NPVS_FOR_VTVBAR 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: PM_CLEAN = D .
Selection Text: PM_CURR = D .
Selection Text: PM_DATE = D .
Selection Text: PM_DLOG = Detail Log
Selection Text: PM_DLOGS = D .
Selection Text: PM_EVAL = D .
Selection Text: PM_INOUT = D .
Selection Text: PM_INVAL = D .
Selection Text: PM_PPOFF = Deactivate Parallel Processing
Selection Text: PM_RFNPV = D .
Selection Text: PM_SCENA = D .
Selection Text: PM_SHIFT = D .
Selection Text: PM_SUMIO = Total NPV = Total of In/Out
Selection Text: PM_TEST = Test run
Selection Text: PM_VAR = D .
Selection Text: PM_WARN = Save Values with Warnings
Selection Text: P_DEA =
Selection Text: P_LOA =
Selection Text: P_STATE = D .
Selection Text: P_SVPHKN = D .
Selection Text: SO_ASS = D .
Selection Text: SO_BART = D .
Selection Text: SO_BUKRS = D .
Selection Text: SO_CHAR = D .
Selection Text: SO_FAC = D .
Selection Text: SO_FINPR = D .
Selection Text: SO_INREF = D .
Selection Text: SO_LOANR = D .
Selection Text: SO_MAAGR = D .
Selection Text: SO_OTCNR = D .
Selection Text: SO_PCURR = Position Currency
Selection Text: SO_PORTF = D .
Selection Text: SO_PT = D .
Selection Text: SO_TCURR = Contract/Transaction Currency
Selection Text: SO_TTYPE = D .
Title: Save NPVs from the Market Risk Analyzer
Text Symbol: WAR = Warning Occurred
Text Symbol: SUC = No Errors or Warnings





Text Symbol: STS = Error Status
Text Symbol: SAV = Save
Text Symbol: 001 = List of Saved NPVs for Key Date
Text Symbol: 002 = Test Run: List of NPVs for Key Date
Text Symbol: 003 = Fin. Object(s)
Text Symbol: 004 = Error
Text Symbol: 005 = Warning(s)
Text Symbol: 006 = NPV(s) Saved
Text Symbol: 007 = NPV(s) to Be Saved
Text Symbol: 008 = ***** See Error Log *****
Text Symbol: 100 = Loans; new subscreen has been added to the same screen
Text Symbol: 101 = OTC transaction; new subscreen has been added to the same screen
Text Symbol: 102 = Clean Price Calculation
Text Symbol: 103 = IntrinsicValue Calculation
Text Symbol: 104 = Seperate NPV(In/Out)
Text Symbol: 105 = Total NPV = Total of In/Out
Text Symbol: 106 = Test Run
Text Symbol: 107 = Save Values with Warning
Text Symbol: 108 = Detail Log
Text Symbol: BL3 = Saved Dataset
Text Symbol: CMN = General Selections
Text Symbol: DEA = OTC Transactions: MM, Forex, OTC Derivatives
Text Symbol: DEV = Forex
Text Symbol: DRV = OTC Derivat.
Text Symbol: ERR = An error has occurred
Text Symbol: EVL = Evaluation Parameters
Text Symbol: FU1 = Selection with Current Data
Text Symbol: FU2 = Selection with Saved Portfolio Hierarchy Node
Text Symbol: GDD = MM, Forex, OTC Derivatives
Text Symbol: GLD = Money Market
Text Symbol: LIS = List Display
Text Symbol: LOA = Loans
Text Symbol: NIL = Nominal Currency: Incoming Side
Text Symbol: NIM = Nom. Crcy: Incoming
Text Symbol: NIS = Nom.Crcy: In
Text Symbol: NOL = Nominal Currency: Outgoing Side
Text Symbol: NOM = Nom. Crcy: Outgoing
Text Symbol: NOS = Nom.Crcy: Out
Text Symbol: P01 = Financial Objects Crcy





Text Symbol: PAR = Selections for Parallel Position Mgmt
Text Symbol: PRD = Product Groups


INCLUDES used within this REPORT RTPM_GET_NPVS_FOR_VTVBAR

INCLUDE RTPM_GET_NPVS_FOR_VTVBARTOP.
INCLUDE RTPM_GET_NPVS_FOR_VTVBARSEL.
INCLUDE RTPM_GET_NPVS_FOR_VTVBAR001.


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:

RM_EVAL_MTASK_INIT CALL FUNCTION 'RM_EVAL_MTASK_INIT' EXPORTING i_auswtyp = '11' IMPORTING e_mtask = g_flg_mtask.

RM_RB_SVSTATES_GET_FOB_TO_NODE CALL FUNCTION 'RM_RB_SVSTATES_GET_FOB_TO_NODE' EXPORTING i_state_id = g_str_svstate-sv_state_id i_phnode = g_str_svstate-pknoten IMPORTING e_tab_fob = g_tab_fob_saved_data CHANGING c_tab_svphtree = l_tab_phtree c_tab_svphtext = l_tab_phtext c_tab_svphbpa = l_tab_phbpa EXCEPTIONS saveid_not_exist = 1 dataset_archived = 2 fobs_no_authority = 3 OTHERS = 4.

RM_RB_SVSTATES_SEL_CHECK CALL FUNCTION 'RM_RB_SVSTATES_SEL_CHECK' EXPORTING i_state_id = p_state IMPORTING e_str_svstate = g_str_svstate EXCEPTIONS saveid_not_exist = 1 dataset_archived = 2 OTHERS = 4.

RM_RB_SVSTATES_SEL_CHECK CALL FUNCTION 'RM_RB_SVSTATES_SEL_CHECK' EXPORTING i_state_id = p_state i_phnode = p_svphkn EXCEPTIONS node_not_found = 1 OTHERS = 4.

TPM_TRL_SAVE_OPTIONS CALL FUNCTION 'TPM_TRL_SAVE_OPTIONS' EXPORTING i_str_tropt = .

RM_SZENARIO_GETDETAIL CALL FUNCTION 'RM_SZENARIO_GETDETAIL' EXPORTING szenario = pm_scena EXCEPTIONS OTHERS = 1.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = l_wrk_variant i_save = 'A' IMPORTING e_exit = l_exit es_variant = l_wrk_variant EXCEPTIONS not_found = 1.

RM_RB_SVSTATES_F4_PHNODE CALL FUNCTION 'RM_RB_SVSTATES_F4_PHNODE' EXPORTING i_prognam = sy-cprog i_dynpro_number = '1000' i_fieldname_state = 'P_STATE' CHANGING c_phnode = p_svphkn EXCEPTIONS saveid_not_exist = 1 dataset_archived = 2 error_read = 3 no_stateid = 4 OTHERS = 5.

RS_VARIANT_CONTENTS CALL FUNCTION 'RS_VARIANT_CONTENTS' EXPORTING report = sy-repid variant = sy-slset move_or_write = 'M' TABLES valutab = l_tab_var_values EXCEPTIONS OTHERS = 0.



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