SAP Reports / Programs | Financial Accounting | General Ledger Accounting(FI-GL) SAP FI

FAGL_FC_VALUATION SAP ABAP Report - Foreign Currency Valuation







FAGL_FC_VALUATION is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for For foreign currency valuation, specify a company code, a valuation key date, and a valuation area...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 FAGL_FC_VALUATION 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

FAGL_FC_VAL - Foreign Currency Valuation


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 FAGL_FC_VALUATION. "Basic submit
SUBMIT FAGL_FC_VALUATION AND RETURN. "Return to original report after report execution complete
SUBMIT FAGL_FC_VALUATION 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: BELNR = D .
Selection Text: X_SALBEW = Valuate G/L Account Balances
Selection Text: X_GL = Valuate G/L Account Open Items
Selection Text: X_AR = Valuate Customer Open Items
Selection Text: X_AP = Valuate Vendor Open Items
Selection Text: P_YEAR_N = Year-End Closing Valuation
Selection Text: P_XMGLBV = Allow Multiple Value Assignmnt
Selection Text: P_XDOREM = Force Translation
Selection Text: P_TLDGRP = Target Group for Valuation
Selection Text: P_RESET = Reset Valuation
Selection Text: P_REASON = Reason for Reset (Balances)
Selection Text: P_PROTS = Save Log
Selection Text: P_PROTD = Issue Log
Selection Text: P_MNTHLY = Mid-Fiscal Year Valuation
Selection Text: P_LVAR = List Variant
Selection Text: P_DOREM3 = Translation in Currency Type 2
Selection Text: P_DOREM2 = Translation in Currency Type 1
Selection Text: P_0119 = Currency Translation
Selection Text: PA_WEREN = No GR/IR Accounts
Selection Text: PA_WEREF = GR/IR with FI Data
Selection Text: PAR_BIC = Create Batch Input Session
Selection Text: PAR_BI = Create Postings
Selection Text: AKONTO = Reconciliation Account
Selection Text: XALTKT = D .
Selection Text: WAEHRUNG = D .
Selection Text: TITLE = D .
Selection Text: S_KDFSL = D .
Selection Text: S_GRACC = D .
Selection Text: ST_BUDAT = D .
Selection Text: STICHTAG = D .
Selection Text: SKONTO = D .
Selection Text: P_ZBUKRS = D .
Selection Text: P_STORNO = D .
Selection Text: P_SBUPEM = D .
Selection Text: P_PLCACC = D .
Selection Text: P_PERIOD = D .
Selection Text: P_BWBER = D .
Selection Text: P_BLDAT = D .





Selection Text: P_BBUPEM = D .
Selection Text: P_BBUDAT = D .
Selection Text: PA_WERE = D .
Selection Text: PAR_BNAM = D .
Selection Text: KKONTO = D .
Selection Text: FILENAME = D .
Selection Text: DKONTO = D .
Selection Text: BUKRS = D .
Title: Foreign Currency Valuation
Text Symbol: 510 = Posting Account
Text Symbol: 501 = Delta Logic Controls for Open Item Valuation
Text Symbol: 410 = Valuation in
Text Symbol: 403 = Ledger Group
Text Symbol: 402 = Error
Text Symbol: 400 = SAPF100 MODE A
Text Symbol: 301 = File name:
Text Symbol: 300 = Valuation information for the documents was also written to a sequential file.
Text Symbol: 274 = Amount
Text Symbol: 273 = Reverse
Text Symbol: 272 = General Data Selection
Text Symbol: 271 = Active
Text Symbol: 270 = Free selections
Text Symbol: 246 = No documents were changed.
Text Symbol: 245 = The valuation was updated in the documents. Number of documents:
Text Symbol: 511 = List of Cleared Items
Text Symbol: 520 = Translate Valuation Difference
Text Symbol: 7A0 = No direct valuation in company code
Text Symbol: 7JV = (Joint Venture Accounting is activated)
Text Symbol: A01 = You do not have authorization to display the data
Text Symbol: AUT = in company code
Text Symbol: M01 = Log ID:
Text Symbol: MV1 = G/L Account
Text Symbol: MV2 = Adjustment account
Text Symbol: MV3 = is not selected.
Text Symbol: MV4 = Check selection variant.
Text Symbol: S01 = Only Create Batch Input Session Due to Errors
Text Symbol: S10 = Error reading company code data
Text Symbol: S11 = Period cannot be determined from CompCode
Text Symbol: S12 = Error in batch input field





Text Symbol: S13 = Error reading data
Text Symbol: 073 = Valuation in Alternative Valuation Area
Text Symbol: 071 = Update in Crcy Type:
Text Symbol: 070 = Valuation Area
Text Symbol: 069 = Valuation in Currency Type
Text Symbol: 064 = Values from Translation Preparation
Text Symbol: 063 = Translation of Currency Type
Text Symbol: 062 = Valuation Area
Text Symbol: 061 = Currency Type
Text Symbol: 060 = Second step: Use translated valuation difference
Text Symbol: 055 = First step: Translate valuation difference
Text Symbol: 045 = No messages exist
Text Symbol: 044 = Messages
Text Symbol: 031 = Save Log
Text Symbol: 030 = Logs
Text Symbol: 029 = List Variant
Text Symbol: 028 = Configure
Text Symbol: 023 = & active
Text Symbol: 022 = For G/L Account Balance Valuation
Text Symbol: 021 = Reset Valuation
Text Symbol: 020 = Reverse posting
Text Symbol: 019 = FC valuation
Text Symbol: 018 = Read Alternative Balances from Spec Purpose Ledger
Text Symbol: 016 = Historical Exchange Rate Used
Text Symbol: 015 = G/L Balances
Text Symbol: 014 = Open Items
Text Symbol: 013 = Dynamic Selections
Text Symbol: 012 = FASB 52
Text Symbol: 011 = Reset doc. for clearing is missing
Text Symbol: 010 = Valuation &BELNR &BUZEI &GJAHR
Text Symbol: 009 = Transfr Posting &BELNR &BUZEI
Text Symbol: 008 = &HKONT - Valuation on &STCHG
Text Symbol: 007 = Clearing document not found
Text Symbol: 006 = List stored under name &
Text Symbol: 005 = Error during Import/Export
Text Symbol: 004 = Valuation
Text Symbol: 003 = Postings
Text Symbol: 002 = From Ledger
Text Symbol: 001 = Miscellaneous



Text Symbol: 000 = General Selections
Text Symbol: 244 = Posting in Ledger
Text Symbol: 243 = Postings in Batch Input Session
Text Symbol: 242 = Posting Proposal
Text Symbol: 241 = Postings were generated
Text Symbol: 222 = Local Crcy = FrgnCrcy in Doc &1
Text Symbol: 212 = Adjustment Posting
Text Symbol: 211 = &AUGBL - Cleared Items: Adjustment to Real. Exch.Rate Diff.
Text Symbol: 210 = &AUGBL - Cleared Items: New Realized Exchange Rate Diff.
Text Symbol: 209 = &AUGBL - Cleared Items: Reversal of Realized Exch Rate Diff
Text Symbol: 208 = &AUGBL - Cleared Items: Valuation of Exchange Rate Diff.
Text Symbol: 142 = Not in Ledger
Text Symbol: 141 = Required Currency Type
Text Symbol: 140 = Expense
Text Symbol: 135 =
Text Symbol: 134 =
Text Symbol: 133 =
Text Symbol: 132 = Rem.Diff. in LC
Text Symbol: 131 = Remeasurement Diff.
Text Symbol: 130 =
Text Symbol: 122 = Document archived. No valuation
Text Symbol: 121 = FI-SL Extra
Text Symbol: 119 = Amount Posted
Text Symbol: 118 = Local Currency
Text Symbol: 117 = Reference Number
Text Symbol: 116 = Account Number
Text Symbol: 115 = Amount in FC
Text Symbol: 114 = Amount in LC
Text Symbol: 113 = New Difference
Text Symbol: 112 = Exch. Rate
Text Symbol: 111 = Amount Valuated
Text Symbol: 110 = Old Difference
Text Symbol: 108 = Diff. Currencies in Gen.Ldgr + Spec. Purpose Ldgr:
Text Symbol: 102 = Key Date
Text Symbol: 092 = &HKONT - Reset per &STCHG
Text Symbol: 091 = Reset &BELNR &BUZEI &GJAHR
Text Symbol: 090 = Currency Type
Text Symbol: 081 = Messages Spool
Text Symbol: 080 = Valuation List Spool
Text Symbol: 074 = Method


INCLUDES used within this REPORT FAGL_FC_VALUATION

INCLUDE FAGL_TOP_INCLUDE_SAPF100.
INCLUDE FAGL_FCV_REVERSE_VALUATIONS. "BEGIN N1270571
INCLUDE FAGL_FC_DYNAMIC_TABLES. "END N1270571


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:

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING foreign_amount = gs_sum-wrbtr foreign_currency = belege-waers local_currency = haus-waers type_of_rate = tcurr-kurst date = stichtag IMPORTING local_amount = fc_balance_val EXCEPTIONS error_message = 1 OTHERS = 1.

GLE_AL_FXR_CONVERT_CURRENCY CALL FUNCTION 'GLE_AL_FXR_CONVERT_CURRENCY' "GLE_FXR EXPORTING "GLE_FXR date = stichtag "GLE_FXR from_amount = gs_sum-wrbtr "GLE_FXR from_currency = belege-waers "GLE_FXR to_currency = haus-waers "GLE_FXR type_of_rate = tcurr-kurst "GLE_FXR IMPORTING "GLE_FXR to_amount = fc_balance_val "GLE_FXR EXCEPTIONS "GLE_FXR error_message = 1 "GLE_FXR OTHERS = 1. "GLE_FXR

FI_MESSAGE_GET * CALL FUNCTION 'FI_MESSAGE_GET' * TABLES * T_FIMSG = T_FIMSG * EXCEPTIONS * OTHERS = 0.

CALCULATE_EXCHANGE_RATE CALL FUNCTION 'CALCULATE_EXCHANGE_RATE' "n1325917 EXPORTING "n1325917 date = belege-budat "n1325917 foreign_amount = belege-wrbtr "n1325917 foreign_currency = belege-waers "n1325917 local_amount = ld_amount "n1325917 local_currency = t001-waers "n1325917 IMPORTING "n1325917 exchange_rate = belege-hrate. "n1325917

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = bukrs IMPORTING e_x001 = x001 EXCEPTIONS OTHERS = 0.

ENQUEUE_EFKNB1AS CALL FUNCTION 'ENQUEUE_EFKNB1AS' EXPORTING kunnr = asp_konto bukrs = asp_bukrs EXCEPTIONS foreign_lock = 1 system_failure = 2.

ENQUEUE_EFLFB1AS CALL FUNCTION 'ENQUEUE_EFLFB1AS' EXPORTING lifnr = asp_konto bukrs = asp_bukrs EXCEPTIONS foreign_lock = 1 system_failure = 2.

ENQUEUE_EFSKB1AS CALL FUNCTION 'ENQUEUE_EFSKB1AS' EXPORTING saknr = asp_konto bukrs = asp_bukrs EXCEPTIONS foreign_lock = 1 system_failure = 2.

DEQUEUE_EFKNB1AS CALL FUNCTION 'DEQUEUE_EFKNB1AS' EXPORTING kunnr = asp_konto bukrs = asp_bukrs.

DEQUEUE_EFLFB1AS CALL FUNCTION 'DEQUEUE_EFLFB1AS' EXPORTING lifnr = asp_konto bukrs = asp_bukrs.

DEQUEUE_EFSKB1AS CALL FUNCTION 'DEQUEUE_EFSKB1AS' EXPORTING saknr = asp_konto bukrs = asp_bukrs.

ENQUEUE_EFT001EX CALL FUNCTION 'ENQUEUE_EFT001EX' EXPORTING mandt = sy-mandt bukrs = t001-bukrs _scope = '1' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 2.

DEQUEUE_EFT001EX CALL FUNCTION 'DEQUEUE_EFT001EX' EXPORTING mandt = sy-mandt bukrs = t001-bukrs.

DDUT_DOMVALUES_GET CALL FUNCTION 'DDUT_DOMVALUES_GET' EXPORTING name = dcobjdef-name langu = sy-langu * TEXTS_ONLY = ' ' TABLES dd07v_tab = tdd07v EXCEPTIONS OTHERS = 0.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename parameter_1 = sy-cprog parameter_2 = stichtag parameter_3 = p_bwber CHANGING physical_filename = filename EXCEPTIONS OTHERS = 1.

FAGL_GET_REP_LEDGER_WO_CHECK CALL FUNCTION 'FAGL_GET_REP_LEDGER_WO_CHECK' EXPORTING i_ldgrp = gd_ldgrp * I_RLDNR = ' ' IMPORTING e_rep_ledger = gs_rep_ledger.

FAGL_CHECK_LEDGER_IS_REPRESENT CALL FUNCTION 'FAGL_CHECK_LEDGER_IS_REPRESENT' EXPORTING id_ldgrp = p_tldgrp id_rldnr = gs_rep_ledger EXCEPTIONS ledgergroup_does_not_exist = 1 no_ledger_in_group = 2 no_glflex_ledger = 3 ledger_not_represent_in_group = 4 ledger_not_in_group = 5 OTHERS = 6.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = i_bukrs i_ldgrp = gd_ldgrp IMPORTING e_x001 = x001 EXCEPTIONS OTHERS = 0.

CALL_FB08 * CALL FUNCTION 'CALL_FB08' "n1578105 * EXPORTING "n1578105 * i_bukrs = gs_rev_docs-bukrs "n1578105 * i_belnr = gs_rev_docs-belnr "n1578105 * i_gjahr = gs_rev_docs-gjahr "n1578105 ** I_BVORG = ' ' "n1578105 * i_stgrd = p_reason "n1578105 ** I_VOIDR = "n1578105 * i_budat = ls_bkpf-budat "n1578105 * i_monat = ls_bkpf-monat "n1578105 ** I_XSIMU = ' ' "n1578105 ** I_UPDATE = 'A' "n1578105 ** I_MODE = 'N' "n1578105 ** I_NO_AUTH = ' ' "n1578105 ** IMPORTING "n1578105 ** E_BUDAT = "n1578105 ** E_MONAT = "n1578105 ** E_XSOFO = "n1578105 * EXCEPTIONS "n1578105 * not_possible = 1 "n1578105 * OTHERS = 2. "n1578105

POSTING_INTERFACE_REVERSE_DOC CALL FUNCTION 'POSTING_INTERFACE_REVERSE_DOC' "n1578105 EXPORTING "n1578105 i_belns = gs_rev_docs-belnr "n1578105 i_budat = ld_budat "n1578105 i_bukrs = gs_rev_docs-bukrs "n1578105 i_gjahs = gs_rev_docs-gjahr "n1578105 i_monat = ls_bkpf-monat "n1578105 i_tcode = 'FB08' "n1578105 * I_VOIDR = ' ' "n1578105 i_stgrd = p_reason "n1578105 * I_NO_AUTH = ' ' "n1578105 IMPORTING "n1578105 e_msgid = syst-msgid "n1578105 e_msgno = syst-msgno "n1578105 e_msgty = syst-msgty "n1578105 e_msgv1 = syst-msgv1 "n1578105 e_msgv2 = syst-msgv2 "n1578105 e_msgv3 = syst-msgv3 "n1578105 e_msgv4 = syst-msgv4 "n1578105 e_subrc = ld_subrc "n1578105 TABLES "n1578105 t_blntab = xblntab "n1578105 EXCEPTIONS "n1578105 transaction_code_invalid = 1 "n1578105 no_authorization = 2 "n1578105 OTHERS = 3. "n1578105

FI_ACCT_DET_UXD CALL FUNCTION 'FI_ACCT_DET_UXD' EXPORTING i_ccode = iccode i_account = iaccount i_currency = icurrency i_reval_area = ibwber i_curtp = icurtp i_use_t030h = l_use_t030h IMPORTING e_corr_account = t030h-lkorr e_profit_account = t030h-lhbew e_loss_account = t030h-lsbew EXCEPTIONS no_account_found = 1 OTHERS = 2.

FI_ACCT_DET_UXD CALL FUNCTION 'FI_ACCT_DET_UXD' EXPORTING i_ccode = iccode i_account = iaccount i_currency = icurrency * i_reval_area = ibwber "<<

FI_ACCT_DET_UXD CALL FUNCTION 'FI_ACCT_DET_UXD' EXPORTING i_ccode = iccode i_account = iaccount i_currency = icurrency i_reval_area = ibwber i_curtp = icurtp i_use_t030h = 'X' IMPORTING e_corr_account = t030h-lkorr e_profit_account = t030h-lhbew e_loss_account = t030h-lsbew e_rxd_profit_acc = t030h-lhrea e_rxd_loss_acc = t030h-lsrea EXCEPTIONS no_account_found = 1 OTHERS = 2.

FI_ACCT_DET_UXD CALL FUNCTION 'FI_ACCT_DET_UXD' EXPORTING i_ccode = iccode i_account = iaccount i_currency = icurrency * i_reval_area = ibwber i_curtp = icurtp i_use_t030h = 'X' IMPORTING e_corr_account = t030h-lkorr e_profit_account = t030h-lhbew e_loss_account = t030h-lsbew e_rxd_profit_acc = t030h-lhrea e_rxd_loss_acc = t030h-lsrea EXCEPTIONS no_account_found = 1 OTHERS = 2.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING foreign_amount = l_gebtr foreign_currency = s_waers local_currency = t_waers type_of_rate = id_ctype date = stichtag rate = bseg-kursr "gesicherter k.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING foreign_amount = uwrshb foreign_currency = s_waers local_currency = t_waers type_of_rate = id_ctype date = stichtag IMPORTING local_amount = l_reval2 exchange_rate = s_kursr "verw.Kurs

GLE_AL_FXR_CONVERT_CURRENCY CALL FUNCTION 'GLE_AL_FXR_CONVERT_CURRENCY' "GLE_FXR EXPORTING "GLE_FXR date = stichtag "GLE_FXR from_amount = uwrshb "GLE_FXR from_currency = s_waers "GLE_FXR to_currency = t_waers "GLE_FXR type_of_rate = id_ctype "GLE_FXR IMPORTING "GLE_FXR to_amount = l_reval2 "GLE_FXR exchange_ratex = l_sav_kursr "GLE_FXR EXCEPTIONS "GLE_FXR error_message = 1 "GLE_FXR OTHERS = 1. "GLE_FXR

SLS_MISC_GET_LAST_DAY_OF_MONTH CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH' EXPORTING day_in = belege-augdt IMPORTING last_day_of_month = bu_waertab_clear-augdt EXCEPTIONS OTHERS = 4.

FAGL_GET_INFO_FROM_LEDGER CALL FUNCTION 'FAGL_GET_INFO_FROM_LEDGER' EXPORTING i_budat = stichtag i_rldnr = s_rldnr i_bukrs = bu_waertab-bukrs IMPORTING e_poper = s_poper e_gjahr = s_fiscyr.

CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = stichtag * foreign_amount = bu_waertab-dmshb * foreign_currency = bu_waertab-hwaer * local_currency = bu_waertab-hwaer_rem * type_of_rate = tcurr-kurst * IMPORTING * local_amount = ls_total_amount-dmbe2 * EXCEPTIONS * no_rate_found = 1 * OTHERS = 6.

CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = stichtag * foreign_amount = bu_waertab-dmshb * foreign_currency = bu_waertab-hwaer * local_currency = bk_methode-hwae3 * type_of_rate = tcurr-kurst * IMPORTING * local_amount = ls_total_amount-dmbe3 * EXCEPTIONS * no_rate_found = 1 * OTHERS = 6.

FI_SPLIT_FROM_BALANCE * CALL FUNCTION 'FI_SPLIT_FROM_BALANCE' * EXPORTING * id_ledger = s_rldnr * is_total_amount = ls_total_amount * IMPORTING * et_splitted_amounts = lt_balance * EXCEPTIONS ** INTERNAL_ERROR = 1 * OTHERS = 2.

CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = stichtag * foreign_amount = ld_dmshb * foreign_currency = bu_waertab-hwaer * local_currency = bu_waertab-hwaer_rem * type_of_rate = tcurr-kurst * IMPORTING * local_amount = ikdf-dmbe2 * EXCEPTIONS * no_rate_found = 1 * OTHERS = 6.

CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = stichtag * foreign_amount = ld_dmshb * foreign_currency = bu_waertab-hwaer * local_currency = bk_methode-hwae3 * type_of_rate = tcurr-kurst * IMPORTING * local_amount = ikdf-dmbe3 * EXCEPTIONS * no_rate_found = 1 * OTHERS = 6.

FI_SPLIT_EXCHANGE_RATE_DIFF CALL FUNCTION 'FI_SPLIT_EXCHANGE_RATE_DIFF' EXPORTING cleared_item = l_item currency_type = bu_waertab-curtp forex_total = ikdf ib_valuation = 'X' IMPORTING forex_data = t_forex EXCEPTIONS internal_error = 1.

FI_SPLIT_EXCHANGE_RATE_DIFF CALL FUNCTION 'FI_SPLIT_EXCHANGE_RATE_DIFF' EXPORTING cleared_item = l_item currency_type = bu_waertab_clear-curtp forex_total = ikdf IMPORTING forex_data = t_forex_rdif EXCEPTIONS internal_error = 1.

BREAKDOWN_RELATION_FI_DOC_SUB CALL FUNCTION 'BREAKDOWN_RELATION_FI_DOC_SUB' EXPORTING i_bukrs = belege_upd-bukrs i_belnr = belege_upd-belnr i_gjahr = belege_upd-gjahr i_koart = bseg-koart.

OPEN_FI_PERFORM_00005011_P CALL FUNCTION 'OPEN_FI_PERFORM_00005011_P' EXPORTING i_chgtype = 'U' i_origin = 'SAPF100 UPDATE' i_tabname = 'BSEG' i_structure = bseg EXCEPTIONS error = 1 OTHERS = 2.

OPEN_FI_PERFORM_00005010_P CALL FUNCTION 'OPEN_FI_PERFORM_00005010_P' EXPORTING i_chgtype = 'U' i_origin = 'SAPF100 UPDATE' i_tabname = 'BSID' i_where_bukrs = bseg-bukrs i_where_kunnr = bseg-kunnr i_where_umsks = bseg-umsks i_where_umskz = bseg-umskz i_where_augdt = bseg-augdt i_where_augbl = bseg-augbl i_where_zuonr = bseg-zuonr i_where_gjahr = bseg-gjahr i_where_belnr = bseg-belnr i_where_buzei = bseg-buzei EXCEPTIONS OTHERS = 0.

OPEN_FI_PERFORM_00005010_P CALL FUNCTION 'OPEN_FI_PERFORM_00005010_P' EXPORTING i_chgtype = 'U' i_origin = 'SAPF100 UPDATE' i_tabname = 'BSAD' i_where_bukrs = bseg-bukrs i_where_kunnr = bseg-kunnr i_where_umsks = bseg-umsks i_where_umskz = bseg-umskz i_where_augdt = bseg-augdt i_where_augbl = bseg-augbl i_where_zuonr = bseg-zuonr i_where_gjahr = bseg-gjahr i_where_belnr = bseg-belnr i_where_buzei = bseg-buzei EXCEPTIONS OTHERS = 0.

OPEN_FI_PERFORM_00005010_P CALL FUNCTION 'OPEN_FI_PERFORM_00005010_P' EXPORTING i_chgtype = 'U' i_origin = 'SAPF100 UPDATE' i_tabname = 'BSIK' i_where_bukrs = bseg-bukrs i_where_lifnr = bseg-lifnr i_where_umsks = bseg-umsks i_where_umskz = bseg-umskz i_where_augdt = bseg-augdt i_where_augbl = bseg-augbl i_where_zuonr = bseg-zuonr i_where_gjahr = bseg-gjahr i_where_belnr = bseg-belnr i_where_buzei = bseg-buzei EXCEPTIONS OTHERS = 0.

OPEN_FI_PERFORM_00005010_P CALL FUNCTION 'OPEN_FI_PERFORM_00005010_P' EXPORTING i_chgtype = 'U' i_origin = 'SAPF100 UPDATE' i_tabname = 'BSAK' i_where_bukrs = bseg-bukrs i_where_lifnr = bseg-lifnr i_where_umsks = bseg-umsks i_where_umskz = bseg-umskz i_where_augdt = bseg-augdt i_where_augbl = bseg-augbl i_where_zuonr = bseg-zuonr i_where_gjahr = bseg-gjahr i_where_belnr = bseg-belnr i_where_buzei = bseg-buzei EXCEPTIONS OTHERS = 0.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = belege-bukrs IMPORTING e_x001 = x001 EXCEPTIONS OTHERS = 0.

ME_READ_HISTORY CALL FUNCTION 'ME_READ_HISTORY' EXPORTING ebeln = bseg-ebeln ebelp = bseg-ebelp webre = 'E' TABLES xekbe = x_ekbe xekbes = x_ekbes xekbez = x_ekbez xekbnk = x_ekbnk xekbz = x_ekbz EXCEPTIONS OTHERS = 4.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING local_amount = bseg-dmbtr foreign_currency = ekko-waers local_currency = t001-waers type_of_rate = t003-kurst rate = ekko-wkurs date = belege-budat IMPORTING foreign_amount = bseg-wrbtr EXCEPTIONS error_message = 1 OTHERS = 1.

OPEN_FI_PERFORM_00000119_P CALL FUNCTION 'OPEN_FI_PERFORM_00000119_P' EXPORTING iv_process = 'SAPF100' iv_date = stichtag iv_tabname = 'BSID' iv_fldname = 'WRBTR' is_line = bsid is_t001 = t001 CHANGING cv_amount = bsid-wrbtr cv_currency = bsid-waers EXCEPTIONS OTHERS = 0.

OPEN_FI_PERFORM_00000119_P CALL FUNCTION 'OPEN_FI_PERFORM_00000119_P' EXPORTING iv_process = 'SAPF100' iv_date = stichtag iv_tabname = 'BSIK' iv_fldname = 'WRBTR' is_line = bsik is_t001 = t001 CHANGING cv_amount = bsik-wrbtr cv_currency = bsik-waers EXCEPTIONS OTHERS = 0.

OPEN_FI_PERFORM_00000119_P CALL FUNCTION 'OPEN_FI_PERFORM_00000119_P' EXPORTING iv_process = 'SAPF100' iv_date = stichtag iv_tabname = 'BSIS' iv_fldname = 'WRBTR' is_line = bsis is_t001 = t001 CHANGING cv_amount = bsis-wrbtr cv_currency = bsis-waers EXCEPTIONS OTHERS = 2.

KPEP_MONI_INIT_RECORD CALL FUNCTION 'KPEP_MONI_INIT_RECORD' EXPORTING ls_detail = ls_detail ls_witem = 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 = ls_scma_event = ls_scma_event TABLES lt_spool = gt_spono CHANGING ld_aplstat = ld_aplstat EXCEPTIONS * NO_ID_GIVEN = 1 OTHERS = 0.

FAGL_GET_REP_LEDGER_WO_CHECK CALL FUNCTION 'FAGL_GET_REP_LEDGER_WO_CHECK' EXPORTING i_ldgrp = gd_ldgrp i_rldnr = ' ' IMPORTING e_rep_ledger = ld_rep_ldgr.

FAGL_GET_TABLENAMES CALL FUNCTION 'FAGL_GET_TABLENAMES' EXPORTING i_ledger = ld_rep_ldgr i_client = sy-mandt IMPORTING es_tabnames = ls_tab EXCEPTIONS not_found = 1 configuration_error = 2 OTHERS = 3.

DD_EXIST_TABLE CALL FUNCTION 'DD_EXIST_TABLE' EXPORTING tabname = tables_tab-prim_tab status = 'A' * NTAB = ' ' IMPORTING subrc = ld_subrc EXCEPTIONS wrong_status = 1 OTHERS = 2.

DD_EXIST_TABLE CALL FUNCTION 'DD_EXIST_TABLE' EXPORTING tabname = tables_tab-prim_tab status = 'A' * NTAB = ' ' IMPORTING subrc = ld_subrc EXCEPTIONS wrong_status = 1 OTHERS = 2.

FREE_SELECTIONS_INIT CALL FUNCTION 'FREE_SELECTIONS_INIT' EXPORTING kind = 'T' * Alte Abgrenzungen erscheinen wieder expressions = fs_dyns-texpr * FIELD_GROUPS_KEY = * RESTRICTION = * ALV = * CURR_QUAN_PROG = SY-CPROG * CURR_QUAN_RELATION = IMPORTING selection_id = selection_id where_clauses = fs_dyns-clauses expressions = fs_dyns-texpr field_ranges = fs_dyns-trange number_of_active_fields = fs_num TABLES tables_tab = tables_tab fields_tab = fields * FIELD_DESC = * FIELD_TEXTS = * EVENTS = * EVENT_FIELDS = fields_not_selected = fields_not EXCEPTIONS fields_incomplete = 1 fields_no_join = 2 field_not_found = 3 no_tables = 4 table_not_found = 5 expression_not_supported = 6 incorrect_expression = 7 illegal_kind = 8 area_not_found = 9 inconsistent_area = 10 kind_f_no_fields_left = 11 kind_f_no_fields = 12 too_many_fields = 13 dup_field = 14 field_no_type = 15 field_ill_type = 16 dup_event_field = 17 node_not_in_ldb = 18 area_no_field = 19 OTHERS = 20 .

FREE_SELECTIONS_DIALOG CALL FUNCTION 'FREE_SELECTIONS_DIALOG' EXPORTING selection_id = selection_id title = 'Freie Selektion '(013) * FRAME_TEXT = ' ' * STATUS = * AS_WINDOW = ' ' * START_ROW = 2 * START_COL = 2 * NO_INTERVALS = ' ' * JUST_DISPLAY = ' ' * PFKEY = * ALV = ' ' * TREE_VISIBLE = 'X' * DIAG_TEXT_1 = * DIAG_TEXT_2 = * WARNING_TITLE = IMPORTING where_clauses = fs_dyns-clauses expressions = fs_dyns-texpr field_ranges = fs_dyns-trange number_of_active_fields = fs_num TABLES fields_tab = fields * FCODE_TAB = fields_not_selected = fields_not EXCEPTIONS * internal_error = * no_action = * selid_not_found = * illegal_status = OTHERS = 0.

FAGL_GET_REP_LEDGER_WO_CHECK CALL FUNCTION 'FAGL_GET_REP_LEDGER_WO_CHECK' EXPORTING i_ldgrp = gd_ldgrp * I_RLDNR = ' ' IMPORTING e_rep_ledger = gs_rep_ledger.

FAGL_GET_REPORTING_FIELDS CALL FUNCTION 'FAGL_GET_REPORTING_FIELDS' EXPORTING i_rldnr = gs_rep_ledger IMPORTING et_fields = lt_reporting_fields et_dfies = lt_dfies_reporting_fields.

FREE_SELECTIONS_RANGE_2_EX CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX' EXPORTING field_ranges = fs_dyns-trange IMPORTING expressions = fs_dyns-texpr.

FREE_SELECTIONS_RANGE_2_WHERE CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_WHERE' EXPORTING field_ranges = fs_dyns-trange IMPORTING where_clauses = fs_dyns-clauses.

BREAKDOWN_ACTIVITY_GET CALL FUNCTION 'BREAKDOWN_ACTIVITY_GET' EXPORTING i_bukrs = ibukrs i_gjahr = gjahr IMPORTING e_fields = l_rf048_a EXCEPTIONS bukrs_not_defined = 1 OTHERS = 2.

FI_SPLIT_ACTIVATION CALL FUNCTION 'FI_SPLIT_ACTIVATION' EXPORTING id_cocd = i_bukrs IMPORTING ed_active = eflag.

FAGL_GET_LDGRP_FROM_VALU_AREA CALL FUNCTION 'FAGL_GET_LDGRP_FROM_VALU_AREA' EXPORTING val_area = ibwber IMPORTING ledger_group = e_ldgrp acc_principle = e_acc_principle EXCEPTIONS no_ledger_assignment = 1 no_acc_principle_assignment = 2 OTHERS = 3.

FAGL_GET_ALL_LEDGERS CALL FUNCTION 'FAGL_GET_ALL_LEDGERS' IMPORTING e_ledgers = lt_rldnr.

FAGL_GET_LEADING_LEDGER CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' IMPORTING e_rldnr = ld_rldnr.

CUSTOMIZED_MESSAGE CALL FUNCTION 'CUSTOMIZED_MESSAGE' EXPORTING i_arbgb = 'FR' i_dtype = 'E' i_msgnr = '894'.

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = ld_rldnr i_orgunit = id_bukrs * JOIN_OF_VALUTYP_AND_CURT = 'X' * SEND_ERROR_WHEN_DEPLD = ' ' IMPORTING organizational_info = s_org_info EXCEPTIONS no_info_found = 1 error_in_setup = 2 error_in_depld = 3 OTHERS = 4.



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