SAP Reports / Programs | Financial Accounting(FI) SAP FI

F107_RUN SAP ABAP Report - FI Valuation - Selection Section







F107_RUN 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 F107_RUN 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 F107_RUN. "Basic submit
SUBMIT F107_RUN AND RETURN. "Return to original report after report execution complete
SUBMIT F107_RUN 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: X_SHB = With Special G/L Transactions
Selection Text: UPDATE = Transfer
Selection Text: S_VBUND = D Trading Partner
Selection Text: S_UMSKZ = D Special G/L Indicator
Selection Text: S_BUKRS = D Company Code
Selection Text: SWAERS = D Currency
Selection Text: SKKONTO = D Vendor
Selection Text: SDKONTO = D Customer
Selection Text: SBELNR = D Document Number
Selection Text: OFI = X Open FI
Selection Text: LAUFI = Run ID
Selection Text: LAUFD = Run Date
Title: FI Valuation - Selection Section
Text Symbol: BL1 = Document Selection
Text Symbol: 400 = Additional Selections
Text Symbol: 200 = No postings requested
Text Symbol: 120 = Update error
Text Symbol: 105 = 105 Your own accounts are locked by other valuation runs
Text Symbol: 104 = No authorization for CoCode:
Text Symbol: 103 = Error rectifd
Text Symbol: 101 = Error during BSBW update run
Text Symbol: 100 = Update Executed
Text Symbol: 050 = 050 Open FI active; Event:
Text Symbol: 001 = Method not programmed


INCLUDES used within this REPORT F107_RUN

INCLUDE F107DATA.


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:

FI_MESSAGE_INIT CALL FUNCTION 'FI_MESSAGE_INIT'.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = lxx-bukrs IMPORTING e_x001 = ix001 EXCEPTIONS currency_2_not_defined = 1 currency_3_not_defined = 2 OTHERS = 3.

VALUATION_GET_VALUE CALL FUNCTION 'VALUATION_GET_VALUE' EXPORTING i_bwber = gs_f107v-bwber i_umbwm = gs_f107v-umbwm i_curtp = gs_f107v-curtp i_belnr = lxx-belnr i_bukrs = lxx-bukrs i_gjahr = lxx-gjahr i_buzei = lxx-buzei i_kunnr = lxx-kunnr x_curr = 'X' x_curr_value = l_curr_val i_rem = ld_rem "n1723839 IMPORTING old_difference = lxx-bwshb_old base_difference = l_bvalu EXCEPTIONS nothing_found = 1 OTHERS = 2.

VALUATION_GET_VALUE CALL FUNCTION 'VALUATION_GET_VALUE' "n1528002 EXPORTING "n1528002 i_bwber = gs_f107v-bwber "n1528002 i_umbwm = gs_f107v-umbwm "n1528002 i_curtp = ld_rem_ct2 "n1528002 i_belnr = lxx-belnr "n1528002 i_bukrs = lxx-bukrs "n1528002 i_gjahr = lxx-gjahr "n1528002 i_buzei = lxx-buzei "n1528002 i_kunnr = lxx-kunnr "n1528002 x_curr = 'X' "n1528002 x_curr_value = l_curr_val "n1528002 i_rem = ld_rem "n1723839 IMPORTING "n1528002 old_difference = ld_ovalue_rem2 "n1528002 base_difference = ld_bvalu_dummy "n1528002 EXCEPTIONS "n1528002 nothing_found = 1 "n1528002 OTHERS = 2. "n1528002

VALUATION_GET_VALUE CALL FUNCTION 'VALUATION_GET_VALUE' "n1528002 EXPORTING "n1528002 i_bwber = gs_f107v-bwber "n1528002 i_umbwm = gs_f107v-umbwm "n1528002 i_curtp = ld_rem_ct3 "n1528002 i_belnr = lxx-belnr "n1528002 i_bukrs = lxx-bukrs "n1528002 i_gjahr = lxx-gjahr "n1528002 i_buzei = lxx-buzei "n1528002 i_kunnr = lxx-kunnr "n1528002 x_curr = 'X' "n1528002 x_curr_value = l_curr_val "n1528002 i_rem = ld_rem "n1723839 IMPORTING "n1528002 old_difference = ld_ovalue_rem3 "n1528002 base_difference = ld_bvalu_dummy "n1528002 EXCEPTIONS "n1528002 nothing_found = 1 "n1528002 OTHERS = 2. "n1528002

DETERMINE_DUE_DATE CALL FUNCTION 'DETERMINE_DUE_DATE' EXPORTING i_faede = x_faede IMPORTING e_faede = x_faede EXCEPTIONS OTHERS = 1.

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' EXPORTING i_fimsg = h_fimsg i_xappn = 'X' EXCEPTIONS msgid_missing = 1 msgno_missing = 2 msgty_missing = 3 OTHERS = 4.

FI_MESSAGE_GET CALL FUNCTION 'FI_MESSAGE_GET' TABLES t_fimsg = t_fimsg EXCEPTIONS no_message = 1 OTHERS = 2.

FI_MESSAGE_PROTOCOL CALL FUNCTION 'FI_MESSAGE_PROTOCOL' EXCEPTIONS no_message = 1 not_batch = 2 OTHERS = 3.

FI_MESSAGE_PRINT CALL FUNCTION 'FI_MESSAGE_PRINT' EXPORTING i_xausn = 'X' i_comsg = 0 EXCEPTIONS OTHERS = 0.

KPEP_MONI_INIT_RECORD CALL FUNCTION 'KPEP_MONI_INIT_RECORD' EXPORTING ls_detail = ls_detail * LS_WITEM = * LS_APPL = * LD_WORKLIST_FLAG = ' ' IMPORTING ls_key = ls_key_static TABLES lt_selkrit = lt_selkrit lt_param = lt_param.

KPEP_MONI_CLOSE_RECORD CALL FUNCTION 'KPEP_MONI_CLOSE_RECORD' EXPORTING ls_key = ls_key_static * LS_MESSAGE = * LD_OBJECTS = * LS_EXT = * LS_RL = * TABLES * LT_SPOOL = GT_SPONO CHANGING ld_aplstat = ld_aplstat EXCEPTIONS * NO_ID_GIVEN = 1 OTHERS = 0.

OPEN_FI_PERFORM_00002730_P CALL FUNCTION 'OPEN_FI_PERFORM_00002730_P' EXPORTING i_f107v = gs_f107v ikunnr = i_acctab-kunnr ibukrs = i_acctab-bukrs itrace = i_acctab-trace TABLES i_bwpos = i_bwpos t_fimsg = t_fimsg EXCEPTIONS no_data = 1 authority_check = 2 OTHERS = 3.

OPEN_FI_PERFORM_00002710_E CALL FUNCTION 'OPEN_FI_PERFORM_00002710_E' EXPORTING i_f107v = gs_f107v ikunnr = i_acctab-kunnr ibukrs = i_acctab-bukrs itrace = i_acctab-trace TABLES i_bwpos = i_bwpos t_fimsg = t_fimsg.

OPEN_FI_PERFORM_00002730_P CALL FUNCTION 'OPEN_FI_PERFORM_00002730_P' EXPORTING i_f107v = gs_f107v ikunnr = i_acctab-lifnr ibukrs = i_acctab-bukrs itrace = i_acctab-trace TABLES i_bwpos = i_bwpos t_fimsg = t_fimsg EXCEPTIONS no_data = 1 authority_check = 2 OTHERS = 3.

OPEN_FI_PERFORM_00002720_P CALL FUNCTION 'OPEN_FI_PERFORM_00002720_P' EXPORTING i_f107v = gs_f107v itrace = acctab-trace TABLES i_bwpos = t_bwpos t_fimsg = t_fimsg.

OPEN_FI_PERFORM_00002720_P CALL FUNCTION 'OPEN_FI_PERFORM_00002720_P' EXPORTING i_f107v = gs_f107v itrace = acctab-trace TABLES i_bwpos = t_bwpos t_fimsg = t_fimsg.

VALUATION_ADJUSTMENT_CALC_2 CALL FUNCTION 'VALUATION_ADJUSTMENT_CALC_2' EXPORTING if107v = gs_f107v itrace = acctab-trace TABLES i_bwpos = t_bwpos t_fimsg = t_fimsg.

VALUATION_ADJUSTMENT_CALC_3





CALL FUNCTION 'VALUATION_ADJUSTMENT_CALC_3' EXPORTING if107v = gs_f107v itrace = acctab-trace TABLES i_bwpos = t_bwpos t_fimsg = t_fimsg.

F107_VALUATION_10 CALL FUNCTION 'F107_VALUATION_10' EXPORTING if107v = gs_f107v itrace = acctab-trace TABLES i_bwpos = t_bwpos et_bwposi = t_bwposi t_fimsg = t_fimsg.

OPEN_FI_PERFORM_00002740_E CALL FUNCTION 'OPEN_FI_PERFORM_00002740_E' EXPORTING if107v = gs_f107v itrace = acctab-trace TABLES i_bwpos = t_bwpos t_fimsg = t_fimsg.

VALUATION_CREATE_POSTINGS CALL FUNCTION 'VALUATION_CREATE_POSTINGS' EXPORTING if107v = gs_f107v i_test = p_test "n1493241 TABLES t_fimsg = t_fimsg.

OPEN_FI_PERFORM_00002750_E CALL FUNCTION 'OPEN_FI_PERFORM_00002750_E' EXPORTING if107v = gs_f107v i_test = p_test "n1493241 TABLES t_fimsg = t_fimsg.

VALUATION_CREATE_POSTINGS_10 CALL FUNCTION 'VALUATION_CREATE_POSTINGS_10' EXPORTING if107v = gs_f107v i_test = p_test TABLES t_fimsg = t_fimsg.

PC_FUNCTION_FIND CALL FUNCTION 'PC_FUNCTION_FIND' EXPORTING i_procs = iy TABLES t_fmrfc = fmtab EXCEPTIONS nothing_found = 1 OTHERS = 2.

BF_FUNCTIONS_FIND CALL FUNCTION 'BF_FUNCTIONS_FIND' EXPORTING i_event = xevent TABLES t_fmrfc = fmtab EXCEPTIONS nothing_found = 4 OTHERS = 8.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING FUNCNAME = 'J_1BSA_COMPONENT_ACTIVE' * IMPORTING * GROUP = * INCLUDE = * NAMESPACE = * STR_AREA = EXCEPTIONS FUNCTION_NOT_EXIST = 1 OTHERS = 2.

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING BUKRS = bwpos-bukrs COMPONENT = '**' * COUNTRY = IMPORTING ACTIVE_COMPONENT = ld_country * OUT_COUNTRY = EXCEPTIONS COMPONENT_NOT_ACTIVE = 1 OTHERS = 2.

MONTH_PLUS_DETERMINE CALL FUNCTION 'MONTH_PLUS_DETERMINE' EXPORTING months = i_f107v-mon_min olddate = old_date IMPORTING newdate = new_date.

F107_READ_MASTER_DATA_PROV_RP CALL FUNCTION 'F107_READ_MASTER_DATA_PROV_RP' EXPORTING i_ktopl = lt001-ktopl i_hkont = c_bwpos-hkont i_prov_id = space i_curtp = i_f107v-curtp i_bwber = i_f107v-bwber IMPORTING e_method = l_methd EXCEPTIONS not_found = 1 OTHERS = 2.

FAGL_GET_LDGRP_FROM_VALU_AREA CALL FUNCTION 'FAGL_GET_LDGRP_FROM_VALU_AREA' EXPORTING val_area = ibwber IMPORTING ledger_group = sd_ldgrp "n1528002 acc_principle = sd_acc_principle "n1528002 EXCEPTIONS no_ledger_assignment = 1 no_acc_principle_assignment = 2 OTHERS = 3.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = id_bukrs i_ldgrp = sd_ldgrp IMPORTING e_x001 = sd_s_x001 EXCEPTIONS currency_2_not_defined = 1 currency_3_not_defined = 2 OTHERS = 3.



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