SAP Reports / Programs | Financials | Financial Supply Chain Management | Back Office(FIN-FSCM-TRM-TM-BO) SAP FIN

RFPMVM00 SAP ABAP Report - Margin Variation Calculation (Daily Profit and Loss Clearing)







RFPMVM00 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 RFPMVM00 into the relevant SAP transactions such as SE38 or SE80


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 RFPMVM00. "Basic submit
SUBMIT RFPMVM00 AND RETURN. "Return to original report after report execution complete
SUBMIT RFPMVM00 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: S_RANL = ID number
Selection Text: S_GSART = Product type
Selection Text: S_DEPOT = Securities account
Selection Text: S_BUKRS = Company code
Selection Text: P_TEST = Test run
Selection Text: P_STICHT = Key date
Selection Text: P_KURSAR = Price type
Selection Text: P_HANDPL = Exchange
Title: Margin Variation Calculation (Daily Profit and Loss Clearing)
Text Symbol: G10 = Margin
Text Symbol: G11 = ErrorType
Text Symbol: G12 = Number
Text Symbol: G13 = Message
Text Symbol: G14 = Total margin per company code:
Text Symbol: G15 = Total margin per SecA:
Text Symbol: G16 = Total margin per ID no.:
Text Symbol: G17 = Long
Text Symbol: G09 = Price
Text Symbol: G08 = Old bk val.
Text Symbol: G07 = Acq.Value
Text Symbol: G06 = Curr.
Text Symbol: G05 = Rmng units
Text Symbol: G04 = Total units
Text Symbol: G03 = Value date
Text Symbol: G02 = LS
Text Symbol: G01 = Trans.
Text Symbol: G18 = Short
Text Symbol: S01 = General selections
Text Symbol: P03 = Posting control
Text Symbol: P02 = Valuation parameters
Text Symbol: HF1 = Error log
Text Symbol: HB1 = Posting log for variation margin
Text Symbol: G21 = Company code
Text Symbol: G20 = SecAc
Text Symbol: G19 = ID number


INCLUDES used within this REPORT RFPMVM00

INCLUDE RFPMCONS.


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:

TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING id = 'SELECTION' EXCEPTIONS OTHERS = 0.

FPM_LOTS_DE_READ_RANGES CALL FUNCTION 'FPM_LOTS_DE_READ_RANGES' EXPORTING i_range_bukrs = r_bukrs i_range_rldepo = r_depot i_range_ranl = r_ranl * I_RANGE_RLOT = i_dbestand = p_sticht IMPORTING e_tab_lot_headers = l_tab_lot_header EXCEPTIONS dbestand_not_qualified = 1 not_found = 2 OTHERS = 3.

FPM_DP_VM_LOAD_SEC CALL FUNCTION 'FPM_DP_VM_LOAD_SEC' EXPORTING i_r_ranl = r_ranl i_r_sanlf = r_sanlf i_r_softyp = r_softyp i_r_sgsart = r_sgsart IMPORTING e_it_ranl = it_ranl.

FPM_DP_VM_LOAD_RATES CALL FUNCTION 'FPM_DP_VM_LOAD_RATES' EXPORTING i_it_ranl = it_ranl i_stichtag = p_sticht i_kursart = p_kursar i_handelsplatz = p_handpl IMPORTING e_it_of_rate = it_of_rate CHANGING e_tab_messages = l_tab_messages EXCEPTIONS OTHERS = 1.

TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING id = 'WORK' EXCEPTIONS OTHERS = 0.

TB_PROT_INIT CALL FUNCTION 'TB_PROT_INIT' EXPORTING i_flg_simulation = p_test i_application_name = sy-title.

FPM_DP_VM_ST CALL FUNCTION 'FPM_DP_VM_ST' EXPORTING i_bukrs = wa_sel_bukrs i_r_depot = r_depot i_r_ranl = r_ranl i_stichtag = p_sticht i_kursar = p_kursar i_handpl = p_handpl i_tcode = wrk_tcode i_simulation = l_simulation i_it_ranl = it_ranl i_it_of_rate = it_of_rate IMPORTING e_tab_vm = l_tab_vama e_tab_vm_flows = l_tab_vm_flows e_commit = l_commit e_tab_messages = l_tab_messages EXCEPTIONS OTHERS = 1.

TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING id = 'OUTPUT' EXCEPTIONS OTHERS = 0.

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' EXCEPTIONS bus_trans_with_error_exists = 1 error_posting_protocol = 2 OTHERS = 3.

FPM_DP_VM_UPDATE CALL FUNCTION 'FPM_DP_VM_UPDATE' IN UPDATE TASK EXPORTING i_tab_vmfl_insert = l_tab_vm_flows_collect.

TR_SE_ACC_PROT_SET_COMMIT CALL FUNCTION 'TR_SE_ACC_PROT_SET_COMMIT' EXCEPTIONS bus_trans_with_error_exists = 1 error_posting_protocol = 2 OTHERS = 3.

FPM_DP_VM_WRITE_MESSAGES CALL FUNCTION 'FPM_DP_VM_WRITE_MESSAGES' EXPORTING i_tab_messages = l_tab_messages_collect i_header = flg_seitenkopf.

TB_DEAL_MAINTAIN_OBJNR CALL FUNCTION 'TB_DEAL_MAINTAIN_OBJNR' EXPORTING i_objnr = h_objnr * I_TRANSACTIONTYPE = '1' EXCEPTIONS objnr = 1 deal = 2 call_not_possible = 3 OTHERS = 4 .

TB_PROT_DISPLAY_BATCH CALL FUNCTION 'TB_PROT_DISPLAY_BATCH'.

TB_PROT_DISPLAY_ALL_TRANS CALL FUNCTION 'TB_PROT_DISPLAY_ALL_TRANS' EXCEPTIONS protocol_not_initialized = 1 OTHERS = 2.

TB_DEAL_KEY_GET_FROM_OBJNR CALL FUNCTION 'TB_DEAL_KEY_GET_FROM_OBJNR' EXPORTING i_objnr = p_wa_tab_vm_lot_objnr IMPORTING * E_BUKRS = e_rfha = l_deal * E_RANL = * E_NORDER = EXCEPTIONS objnr = 1 OTHERS = 2 .



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