You are on page 1of 27

Sage Accpac ERP 5.

6A

Financial Reporter I Quick Reference

2009 Sage Software, Inc. All rights reserved. Sage, the Sage logos, and all Sage Accpac product and service names mentioned herein are registered trademarks or trademarks of Sage Software, Inc., or its affiliated entities. All other trademarks are the property of their respective owners. Sage Software, Inc. Publisher

Layout of a Financial Report Specification

Layout of a Financial Report Specification


Column A

ColumnAdetermineswhatFinancialReporterdoeswhenit generatesthefinancialreport. If column A starts with ..therowisacommentrow. If column A is blank,therowisprintedasis. If column A contains \\therowsetsupdefaultsforsubsequent rowsonthereport. If column A contains \Ttherowisusedfordefiningtitlelines onthefinalreport. If column A contains any other data,thatdataisassumedtobea referencetooneormoreaccountnumbers.

Column B

ColumnBcancontaincriteriatorestricttherangeofaccounts specifiedincolumnA. SeeSelectionCriteriaExpressionsfordetailsonspecifyingcriteria.

Column C

ColumnCletsyouspecifyconditionsforexcludinggeneratedlines fromareportbasedonthecontentsoftheline. UseZincolumnCtoomitzerobalancelinesfromthereport. PlaceformulasincolumnCtotestcells.Forexample,=G12<F12.If theformulaisTRUE,FinancialReporterwillnotprinttheline.Ifthe formulaisFALSE,thelinewillbeprinted.

Column D

ColumnDletsyouuseTorDtoconsolidaterangesofaccounts orprintdatafromeachaccountonaseparaterow,andallowsyouto listdetailsbytransactiondetails/transactionconsolidated total/transactiontotal.

Quick Reference

Layout of a Financial Report Specification

Sample Report Specification


Inthisexample,row1isadefaultrow.Tousethedefaultformulas insubsequentrows,placeabackslashintheappropriatespreadsheet cells.

Specifying Account Numbers in Column A


Use FR Past for account numbers

PasteaccountnumbersintoafinancialstatementusingtheFRPaste command,locatedontheFRmenu.(Notetheuseofthefollowing characterswithaccountnumbersegments.) - AccountsegmentseparatordefinedinG/LOptions.(Thehyphen isthedefaultseparator.) Separatesaccountnumbersinarange.

~ Separatessegmentcodesinasegmentrange.
Wildcard characters in account numbers Single accounts

% Aplaceholderforoneormorecharacters. _ (theunderline)Aplaceholderforonecharacter. aaaaaaaa or aaaa-aaaa

AspecificG/Laccountnumber.Accountnumberscanbe enteredwithorwithouttheirsegmentseparators().
Account ranges

aaaa-A:bbbb-B

or

aaaaA:bbbbB

ArangeofallaccountnumberswhichstartwithaaaaAtoall accountnumbersthatstartwithbbbbB. aaaa%% or aaaa:aaaa

Arangeofallaccountnumbersthatstartwithaaaa.

Sage Accpac Financial Reporter

Layout of a Financial Report Specification

%% Referencesallaccountsintheledger.(Aspecialcasecode.) aaaa~bbbb-A Arangeofgeneralledgersegment1accountnumbersthat haveAinsegment2.(Twosegmentnumbersonly.)

aaaa~bbbb Arangeofaccountsegmentcodes.(Thisspecialcasecodeis usefuliftheaccountsegmentisnotsegment1.)

%-aa~ff-% | ACCT Arangeof3segmentnumbers.Themiddlesegmentis betweenaaandff,andorderisbyaccountsegment.

aaaa[ACCT], bbbb~cccc-A[MANU] Anindividualaccountnumberandarangeofaccount numbers.Squarebracketsindicateaccountstructurecodes.

aaaa-%, bbbb~cccc-A~B, gggg-D


You cant mix ranges Dont mix account ranges and wildcards

Asetofrangesandindividualaccountswitheach specificationseparatedbyacomma.

Ifyouuse%%or:inanaccountreference,youcannotuse%, ~or_. A123%:B567%isnotallowed.However,youcancombineaccount referencesinalist.

Selection Criteria Expressions in Column B


Criteriarestricttheaccountsselectedforanaccountreference: ACCTTYPE=IANDQTYSW=Yes ORACCTDESCLIKE%sale%

Quick Reference

Layout of a Financial Report Specification

Expressionsareevaluatedfromlefttorightunlessyouusebrackets: ACCTTYPE=IAND(QTYSW=YesOR ACCTDESCLIKE%sale%) % matchesanygroupofcharacters. matchesanysinglecharacter. Relationaloperatorsworkwithallfieldsexceptswitches (likeQTYSW),whereonly=and!=(doesnotequal)apply. Ifyouarecomparingastringthatincludesspaces,youmust enclosetheentirestringinquotationmarks. LIKEissimilartothe=operator,exceptthesecondoperand cancontainthewildcards%and_. Examplesofoptionalfieldsexpressions: A.ACCTCLASS=Sales Thisexpressionrestrictstheresultstoaccountswithaccount optionalfieldACCTCLASS=Sales T.QUANTITY<=0 Thisexpressionrestrictstheresultstotransactionswith transactionoptionalfieldQUANTITY<=0 FRPasteaddsextraquotationmarksaroundtextvaluesto accommodatespaceswithinthetextstrings.Forexample: =FRACCT(ACCTDESC,,(ACCTTYPE=I))

Sage Accpac Financial Reporter

Layout of a Financial Report Specification

Consolidating Account Ranges and Transaction Details Printing Separate Lines Summarizing by Account Code (Column D)
YoucaninsertthefollowingvaluesinColumnD:
Value T D D(ACCT) D(ACCTGROUP) D(ACSEGVALn) D(AcctSegID) PD PT P(POSTRAN) P(POSTDATE) P(POSTSEQ) RD Explanation Totals a range on a single line. List all the details. Consolidates by account code. Consolidates by account group. Consolidates by segment number n. Consolidates by the named account segment. For example, D(REGION). Transaction details in posted transaction order. Transaction consolidated total. Transaction consolidated by account. Transaction consolidated by journal date. Transaction consolidated by posting sequence. Print all the top-level rollup details as well as accounts not in rollup groups.

Notethattransactionscanalsobelistedbyconsolidatedaccount segmentsandaccountgroupswhenlistingbyaccounts.Ifyouare consolidatingbyaspecificaccountorderinalistoftransactions,the valueinColumnDmustbeginwithaP.Forexample: P(ACSEGVAL02)returnstransactionrecordsconsolidatedby accountsegment2. D(ACSEGVAL02)returnsaccounthistoryrecordsconsolidatedby accountsegment2. Note: FRrequiresacorrectsortingorderinColumnDin ordertolistdetailsbytransactionthroughfield consolidation.

Quick Reference

Financial Reporter Functions

Thefollowingtableillustratesthis.
Exclusive Sorting Order POSTTRAN POSTDATE POSTSEQ POSTACCT Meaning By posted transaction in account order By date order By posting sequence order By account posting sequence

ThesortingordermustbePOSTTRANiftheconsolidationvalue incolumnDisbyP(POSTTRAN). ThesortingordermustbePOSTDATEiftheconsolidationvalue inColumnDisbyP(POSTDATE) ThesortingordermustbePOSTSEQiftheconsolidationvaluein ColumnDisbyP(POSTSEQ).

Iftheconsolidatedtotalisretrievedbyanydefinedaccountswitches, forexampleP(ACSEGVAL02),itcanbesortedbyanydefined accountorder,similartolistingbyaccounts.

Financial Reporter Functions


FR
ProvidesG/LOptionandcompanyinformation.
Syntax Arguments

FR(option,formatted)
option The name of a field from the Company window, Calendar window or G/L Options window, or a runtime parameter or print option (listed below). Optional. Indicates that the return value should be formatted or unformatted. If omitted, the default is formatted. "FORMATTED", "F", or "FMT" "UNFORMATTED", "U", or "UNFMT"

formatted

Sage Accpac Financial Reporter

Financial Reporter Functions

General Ledger Options Fields


Name "Orgid" "CoName" "Address1" "Address2" "Address3" "Address4" "City" "Province" "State" "Zip" "Postal" "Country" "Phone" "Fax" "Contact" "FuncCurr" RPCurr RPACCT Contents of Fields The 6-character organization ID (e.g. UNICO). The company name. The 1st address line. The 2nd address line. The 3rd address line. The 4th address line. The city. The province. The state. The zip/postal code. The zip/postal code. The country. The phone number. The fax number. The ledger contact name. The ledger functional currency. The reporting currency code when the Euro is the functional currency. Rounding account defined in G/L Options for the reporting currency when the Euro is the functional currency.

Financial Reporter Runtime Fields


Name "SessionDate" "Year" "Period" "Start" "End" "QStart" "QEnd" "ReportType" Content of Fields The date entered at Sage Accpac signon. The fiscal year. The fiscal period number. The period start date. The period end date. The quarter start date. The quarter end date. Unformatted: 1 for actual and 2 for provisional report. If formatted, it will return Actual or Provisional. Unformatted: 1 for consolidated, 2 for separate. If formatted, it will return Consolidated or Separate.

"ReportAs"

Quick Reference

Financial Reporter Functions

Name "SortBy"

Content of Fields Unformatted: 1 for Account ID, 2 for Segment ID, 3 for Account Group. If formatted, it will return AccountID, SegmentID, or Account Group. The number of the segment (unformatted) or the name of the segment (formatted) by which you are sorting. The starting AcctId in the print range. The ending AcctId in the print range. The starting AcctGroup in the print range. The ending AcctGroup in the print range. The name of the nth acct segment (for example, Division, Dept.). If ReportAs = 2 (separate), this is the consolidation setting of the nth segment. The starting value of the nth segment in the print range. The ending value of the nth segment in the print range. The current value of the segment for the current report. This value is appropriate only when the report type is separate (AcSegReportAsn = 2).

"SortByAcSeg"

"FromAcctID" "ToAcctID" "FromAcctGroup" "ToAcctGroup" "AcSegNamen" "AcSegReportAsn" "FromAcSegn" "ToAcSegn" "CurAcSegValn"

Examples

This statement =FR(CONAME) =FR(END)

Returns this The Garden Inc. 4/30/05

FRACCT
ProvidesGeneralLedgeraccountmasterinformationstoredbyG/L Accounts. FRACCTretrievesaccountoptionalfieldsdata.Afieldnameforthe accountoptionalfieldistheoriginaloptionalfieldnamewiththe prefixA.(Fortransactionoptionalfields,seetheFRPOST command.)

Sage Accpac Financial Reporter

Financial Reporter Functions

Syntax Arguments

FRACCT(fieldname,accountreference,criteria,formatted)
field name account reference The name of a field from the G/L account record. A string specifying the account number reference. This can be a single account or a range of accounts. A string containing an expression that imposes selection criteria on the accounts. The account reference and the expression together determine which accounts are included in the calculation. Indicates that the return value should be formatted or unformatted. The default is Formatted in which case, no indicator appears in the formula. If you clear the default, then U appears in the formula (for Unformatted).

criteria

formatted

Results Examples

Thevalueofthefieldspecifiedintheformula.
This statement FRACCT("ACCTDESC","1000-333") FRACCT("QTYSW","1000-333","","F") FRACCT("ACCTTYPE","1000-333","FMT") FRACCT(A.ACCTCLASS,4000) Returns this Cost of goods sold Yes Income Optional field, Sales

General Ledger Account Data Field Names FieldnamesfromtheGeneralLedgeraccountview:


Name ACCTID CREATEDATE ACCTDESC ACCTTYPE Contents of the field Account number, including all segments. Date the account was created. Account description. Account type. If unformatted, I, B, or R. If formatted, Income, Balance sheet, or Retained earnings. Normal balance. If unformatted, 1 for debit or 2 for normal credit. If formatted, Debit or Credit. Active switch. If unformatted, 1 for active or 0 for inactive. If formatted, Active or Inactive.

ACCTBAL

ACTIVESW

Quick Reference

Financial Reporter Functions

Name CONSLDSW

Contents of the field Consolidation switch. If unformatted, 1 if transactions are consolidated on posting, 0 if they are not. If formatted, Consolidate journals or Do not consolidate journals. Quantity switch. If unformatted, 1 if quantities are used with account, 0 if not. If formatted, Yes or No. The unit of measure if quantities are used. Allocation switch. If unformatted, 1 if account can be reallocated, 0 if not. If formatted, Yes or No. Account number for reallocation (offset). Allocation transaction source code. Multicurrency switch. If unformatted, 1 if multicurrency, 0 if not. If formatted, Yes or No. Specific source currencies switch. If unformatted, 0 is in all currencies, 1 is specified. If formatted, All currency or Specific currency. Account group code. Control account. If formatted, 1 is yes; 0 is no. If formatted, Control account or Non control account. Source ledger if control account (e.g. AR, AP). (Reserved field) Total of different allocation rates (usually 100). Account structure code. Year of the last close. Formatted account number. Account segment value 01 to 10. Account Segment Code The code for the segment by which account posting is done. The code for the default currency. Account Group Sort Code Rollup switch: 0=no rollup; 1=rollup

QTYSW

UOM ALLOCSW

ACCTOFSET ACCTSRTY MCSW

SPECSW

ACCTGRPCOD CTRLACCTSW

SRCELDGID ALLOCTOT ABRKID YRACCTCLOS ACCTFMTTD ACSEGVALn ACCTSEGVAL POSTTOSEGID DEFCURNCOD ACCTGRPSCD ROLLUPSW

IncludetheprefixA.foraccountoptionalfields(includeaperiod aftertheA).

10

Sage Accpac Financial Reporter

Financial Reporter Functions

FRAMT
TheFRAMTfunctionprovidesmonetary,budgetandquantity balancesandnetamountsfromthegeneralledgeraccounts. AllamountsfromFRAMTrespectthetypeoftheaccount.This meansthatdebitbalancesindebitaccountsandcreditbalancesin creditaccountsarebothreturnedaspositivenumbers.(Credit balancesindebitaccountsanddebitbalancesincreditaccountsare returnedasnegativenumbers.) Incontrast,FRAMTAreturnsalldebitbalancesaspositivenumbers andallcreditbalancesasnegativenumbers.
Syntax Argurments

FRAMT(fieldname,accountreference,criteria,currency)
field name The name of a field from the general ledger account master with an optional fiscal designator prefix and optional year suffix. Prefixes are: R for rollup, A for actual account set, P for provisional, Q for quantities, QA for actual quantities, QP for provisional quantities, and 1 to 5 for the budget sets. The year can be a 4-digit year (2005), L1, L2, etc. for the last years, or N1, N2 for the next years (budgets only). A string specifying a single account or range of accounts. A string containing an expression that imposes selection criteria on the accounts. The account reference and the expression together determine which accounts are included in the calculation. A string containing the currency reference. A currency reference is in the form CCC.T, where CCC is the currency code, and T is the type. T can be S for source currency, E for the functional equivalent of the source amount, F for the functional currency total, and R for the reporting currency total (if the euro is your functional currency and you specified a reporting currency).

account reference criteria

currency

Quick Reference

11

Financial Reporter Functions

Results

Thetotalvaluesoffiscalfieldcodefromallaccountsselectedfora givenfiscalset.
This statement FRAMT(PBALP.L1, 1000-33-248,,DEM.S) FRAMT("QBALP","2100") FRAMT("ABALP.2001", "10%%","(ACCTTYPE="B")") Returns this The provisionally posted balance of Deutsche Marks to account 1000-33-248 for this period last year. The quantity balance of the current period for account 2100. The total actual 2001 balance for all balance sheet account numbers that start with "10".

Examples

Fiscal Set Field Names


Prefixes for NET and BAL indicate fiscal set (for example, QNETP)

NotealsothatNETandBALcanhaveaprefixR,A,P,Q,QA,QP,1, 2,3,4or5toindicaterollup,actual,provisional,quantity,quantity actual,quantityprovisional,oranyofthebudgetsets. Ifnoprefixisspecified,orisR,thedefaultiseitheractualor provisional,dependingonthetypeofreport.Similarly,Qbyitself orRQiseitheractualorprovisionalquantities(rolledupornot), dependingonthetypeofreport. Forexample,BALPprovidestheactualorprovisionalbalanceat thecurrentfiscalperiod;ABALPalwaysprovidestheactual balance,and1BALPprovidesthebalancefrombudgetset1forthe currentfiscalperiod.
Reporter code suffix
P LP nP nPA Q QTD LQ LQTD nQ

Field description
Period balance and net change Current period Last period nth period n periods ago Quarter balance and net change Current quarter (to end) Current quarter to date Last quarter Last quarter to date nth quarter

BAL (balance)
BALP1 BALLP BALnP BALnPA BALQ BALQTD BALLQ BALLQTD BALnQ

NET (net changes)


NETP2 NETLP NETnP NETnPA NETQ NETQTD NETLQ NETLQTD NETnQ

12

Sage Accpac Financial Reporter

Financial Reporter Functions

Field description
nth quarter to date3 n quarters ago 4 n quarters ago to date Preceding quarter (3 prds5) Preceding qrtr. n prd. ago Half year balance and net chg. Current half year (to end) Current half year to date Last half year Last half year to date nth half year nth half year to date7 n half years ago n half years ago to date8 Preceding half yr (6 prds9) Preceding half yr. n prd. ago Total year balance and net chg. Total year Year to date Preceding yr. (12 or 13 prds) Preceding year n prd. ago Beginning of year End of year Period 14 adjustments
1.

Reporter code suffix


nQTD nQA nQATD PQ PQnPA S STD LS LSTD nS nSTD nSA nSATD PS PSnPA Y YTD PY PYnPA OPEN CLOSE ADJ

BAL (balance)
BALnQTD BALnQA BALnQATD BALPQ BALPQnPA BALS BALSTD BALLS BALLSTD BALnS BALnSTD BALnSA BALnSATD BALPS BALPSnPA BALY BALYTD BALPY BALPYnPA BALOPEN BALCLOSE

NET (net changes)


NETnQTD NETnQA NETnQATD NETPQ6 NETPQnPA NETS NETSTD NETLS NETLSTD NETnS NETnSTD NETnSA NETnSATD NETPS NETPSnPA NETY NETYTD NETPY NETPYnPA NETCLOSE NETADJ10

BALP, BALnP, BALYTD, etc. include adjustments from period 14 only if the balance is for the final period of the year. BALY includes period 14. The closing entries are not included. To print the balance from the final fiscal period without the adjustment amount, use FRAMT("BALP")-FRAMT("NETADJ"). NETP, NETnP, NET4Q, NETPQ will also include adjustments from period 14 if the net is requested for the final period of the year. (NET works like BAL.) This code allows you to compare the current QTD to the QTD of a previous quarter by providing you with todate figures relative to the current quarter. If you are now in period 2 of the current quarter, QTD will give you the first 2 periods of any previous quarter. nQATD lets you go up to four quarters ago. If you need to specify more, use nQATD.L1. PQ handles any three periods, providing you with revolving quarters. The preceding 3 periods include the current period plus the two previous ones. The NET for a group of periods that crosses a year-end boundary will also include the adjustments in period 14, but not include the closing entry; otherwise, the net would include the zeroing entries in income and expense accounts.

2.

3.

4. 5.

6.

Quick Reference

13

Financial Reporter Functions

7.

This code allows you to compare the current half year TD to the half year TD of a previous half year by providing you with to-date figures relative to the current half year. If you are now in period 2 of the current half year, half year TD will give you the first 2 periods of any previous half year. nSATD lets you go up to 2 half years ago. If you need to specify more, use nSATD.L1. PS handles any six periods, providing you with a revolving half year. The preceding six periods include the current period plus the five previous ones. NETADJ provides the amount from period 14. To print the balance from the final fiscal period without the adjustment amount, use FRAMT("BALP")-FRAMT("NETADJ").

8. 9.

10.

Figures are computed relative to the report period

Allbalancesandnetsarecomputedrelativetothefiscalperiodof thereport,exceptforBALOPEN,NETADJ,NETCLOSEandfields referencingaspecifictimeperiod. BALOPENistheopeningbalanceoftheaccountfortheyear, NETADJistheamountpostedtotheadjustmentperiod,and NETCLOSEistheamountpostedtotheclosingperiod. Referencestofutureperiodsreturnzerosasifthetransactionshad notyetbeenposted. BAL,Budget,andProvisionalinquirydonotworkinFRTRN, FRTRNA,FRTRNDR,andFRTRNCR.

Fiscal Set Prefix


Fiscal set designator Code R Fiscal Set To retrieve the rollup amount. The R must be the first character and can be used in conjunction with other prefixes. (not available for FRTRN, FRTRNA, FRTRNCR, FRTRNDR) Defaults to report setting either actual or provisionally posted amounts Actual monetary figures Provisional (not available for FRTRN, FRTRNA, FRTRNCR, FRTRNDR) Quantities (either actual or provisional) Actual quantities Provisional quantities (not available for FRTRN, FRTRNA, FRTRNCR, FRTRNDR)

Blank A P Q QA QP

14

Sage Accpac Financial Reporter

Financial Reporter Functions

1,2,3,4,5

Budget sets 1,2,3,4, and 5 (not available for FRTRN, FRTRNA, FRTRNCR, FRTRNDR)

Fiscal Year Suffix Thefiscalyearsuffixisthelastpartofthefieldnameparameter,and isseparatedfromthefieldnamebyaperiod. Forexample,inthefollowingformula,ABALPistheactualcurrent balance,and2002isthefiscalyearsuffix.


Fiscal year
Code Blank 1999, 2002, etc. L1, L2, L3 etc. N1, N2, etc.

FRAMT(ABALP.2002,1000%,(ACCTTYPE=B))
Fiscal Set Defaults to current year Specific year identification Last year, the year before, etc. Next year, the year after next, etc.

Currency Code References Thecurrencycodereferencehastwoparts:currencycodeand currencytype,whichareseparatedbyaperiod. Forexample,inthefollowingformula,EURisthecurrencycode, andSisthetype(source). FRAMT(PBALP.L1,100033248;EUR.S)


Currency code Code Blank xxx

Fiscal Set Defaults to functional (home) currency A three-character currency code (such as CAD for Canadian dollars, USD for US dollars)

Currency type qualifier

Code Blank S E F

Fiscal Set Defaults to functional (home) currency Source currency Equivalent amount in the functional currency Functional currency total (of all source amounts)

Quick Reference

15

Financial Reporter Functions

Reporting currency total. If the currency code is functional, R includes reporting equivalents of all source amounts. If the currency code is not functional, R provides equivalent amounts in the reporting currency.

FRAMTA
TheFRAMTAfunctionisalmostidenticaltoFRAMT:ithasthe sameparametersasFRAMT,andreturnsallthesamedata;however, FRAMTAshowsalldebitamountsaspositivenumbersandallcredit amountsasnegativenumbers,regardlessoftheaccounttype(debit orcredit).Thefollowingtableisafurtherillustrationofthe differencesbetweenFRAMTandFRAMTA:
Command FRAMT Acct. Type
Debit account

Value
100 DR

FR Display
100

FRAMTA

Debit account Credit account Credit account Debit account Debit account Credit account Credit account

100 CR 100 CR 100 DR 100 DR 100 CR 100 CR 100 DR

-100 100 -100 100 -100 -100 100

Syntax

FRAMTA(fieldname,accountreference,criteria,currency) Foracompleteparameterdescription,seeFRAMT.

FRCREDIT
ThisfunctionisthesameasFRAMT,exceptthatitincludesonly thoseaccountsthathavecreditamountswhetherornotthe accountisaDRoraCRtypeofaccount.Usethecriteriaparameterto restrictthisfunctiontoCRaccounttypes. NoticeinthefollowingtablethatFRCREDITreturnsablankwhen thevalueofadebitaccountiszerooradebitamount,butreturnsa zerowhenthevalueofacreditaccountiszero.

16

Sage Accpac Financial Reporter

Financial Reporter Functions

Command FRAMT

Acct. Type Credit account Credit account Debit account Debit account Credit account Credit account Debit account Debit account

Value 100 CR 0 0 100 CR 100 CR 0 100 CR 100 DR

FR Display 100 0 0 -100 100 0 100 blank

FRCREDIT

Syntax

FRCREDIT(fieldname,accountreference,criteria,currency) Foracompleteparameterdescription,seeFRAMT.

FRDEBIT
ThisfunctionisthesameasFRAMT,exceptthatitonlyincludes accountsthathavedebitamounts(balancesornetchanges). UsethecriteriaparametertorestrictthisfunctiontoDRaccount types. Asillustratedinthefollowingtable,FRDEBITreturnsablankwhen thevalueofacreditaccountiszerooracreditamount,andreturnsa zerowhenthevalueofadebitaccountiszero.
Command FRAMT Acct. Type Debit account Debit account Credit account Credit account Debit account Debit account Credit account Credit account Value 100 DR 0 0 100 DR 100 DR 0 100 DR 100 CR FR Display 100 0 0 -100 100 0 100 blank

FRDEBIT

Syntax

FRDEBIT(fieldname,accountreference,criteria,currency) Foracompleteparameterdescription,seeFRAMT.

Quick Reference

17

Financial Reporter Functions

FRFISCAL
TheFRFISCALfunctionreturnsadatefromthefiscalcalendar(in CommonServices).
Syntax

FRFISCAL(option,fiscalyear,fiscalperiod,formatted)

Arguments

option fiscal year fiscal period formatted

The period or quarter date you want. Can be Start, End, QStart, or QEnd for the starting or ending dates of the period or the quarter the period is in. Optional. Assumed to be the current year if not specified. Specify as YYYY (2005), or N1 or L1. Optional. Assumed to be the current period if not specified. (This field is an integer. It is not enclosed in quotation marks.) Optional. Indicates whether the date should be formatted or not. The default if omitted is formatted. "FORMATTED", "F", or "FMT" "UNFORMATTED", "U", or "UNFMT"

Results Examples

FRFISCALreturnsthedateasastring.
This statement
FRFISCAL("Start") FRFISCAL("Start","",11,"U") FRFISCAL("Start","L1",VALUE(FR("Period")),"F") Returns this 11/01/2005 20051101 11/01/2004

FRPOST
TheFRPOSTfunctionallowsyoutoretrievedetailoptionalfields fromG/Lpostedtransactionsandaccountdatafortheaccount specifiedinthetransactionrecord. Detailscanbeconsolidatedornotconsolidated.Thatis,iftheresult ofanFRcommand(thatis,theFRACCTorFRPOSTcommands)is derivedfrommorethanonetransaction,andiftheseresultsarefrom theInteger,Number,orAmounttypeoptionalfields,youcanprinta consolidatedtotalthatsumsupallvaluesfromtheretrieved optionalfields,or,ifyoudonotchoosetheconsolidateoption(clear

18

Sage Accpac Financial Reporter

Financial Reporter Functions

theoption,ConsolidateOptionalField),thevalueofthefirst retrievedrecordwillbeprinted.
Syntax Arguments

Aconsolidatedtotalwillbeprintedifthefirstparameterisnot appendedbyanything,orisappendedby[C]. Onlythefirstoptionalfieldvaluewillbereportedwhenthe specifiedfieldnameisappendedwith[U].

FRPOST(fieldname,accountreference,criteria,formatted)
field name account reference criteria The name of a field from the G/L account record or from the transaction field. A string specifying the account number reference. This can be a single account or a range of accounts. A string containing an expression that imposes selection criteria on the accounts and transactions. The account reference and the expression together determine which accounts and transactions are included. Indicates that the return value should be formatted or unformatted. The default is Formatted, in which case, no indicator appears in your formula. If you clear the default, U appears in the formula (for Unformatted).

formatted

Results

FRPOSTreturnsdataretrievedfromtransactionrecordsaswellas G/Laccountdatafromtheaccountspecifiedinthetransaction record.FRPOSTalsoretrievestransactionoptionalfieldsandG/L accountoptionalfieldsdatafromtheaccountspecifiedinthe transactionrecordthathasoptionalfieldvalues. TheFRPOSTcommandincludesallaccountrecordfieldsdefinedin FRACCT,includingaccountoptionalfields,alltransactionoptional fieldsdefinedinG/Lsetup,plusthefollowingtransactionfields:


Name FISCALYR FISCALPERD SRCECURN SRCELEDGER SRCETYPE POSTINGSEQ CNTDETAIL Contents of the field Fiscal year Fiscal period Source Currency Code Source Ledger Code Source Type Code Posting Sequence Number Detail Count

Quick Reference

19

Financial Reporter Functions

Name JRNLDATE BATCHNBR ENTRYNBR TRANSNBR CONSOLIDAT JNLDTLDESC JNLDTLREF TRANSAMT TRANSQTY SCURNAMT RPTAMT RATETYPE RATEDATE CONVRATE RATEOPER

Contents of the field Journal Date Batch Number Journal Entry Number Journal Transaction Number Consolidation Occurred on Post Journal Detail Description Journal Detail Reference Journal Transaction Amount (functional amount) Journal Tranaction Quantity Journal Source Amount Journal Reporting Amount Currency Rate Table Type Date of Currency Rate Selected Currency Rate for Conversion Currency Rate Operator

AccountoptionalfieldsbeginwiththeprefixA.Transaction optionalfieldsbeginwiththeprefixT.
Examples This statement FRPOST("TRANSAMT", "1000","(POSTINGSEQ = 100)","U") FRPOST("TRANSAMT", "1000","(JRNLDATE = 20100110)","U") FRPOST("ACCTDESC", "1000") FRPOST("T.QTY", "4000") Returns this Retrieves unformatted transaction amounts for Account 1000 that have a posting sequence number of 100. Retrieves the unformatted transaction amount for Account 1000 from January 10, 2010. Retrieves the account description for Account 1000. Retrieves the transaction optional value for QTY for Account 4000 for the inquired period.

NotethattheaccountnumberisusuallysetinColumnA,andother criteria(suchasthetransactiondate),issetinColumnB.

FRRATE
TheFRRATEfunctionreturnstheexchangerateforconverting amountsfromthesourcecurrencytothefunctionalcurrencyasa

20

Sage Accpac Financial Reporter

Financial Reporter Functions

multiplier.(Inotherwords,iftherateisdefinedinCommonServices asadivisor,thisfunctionprovidesitsreciprocal.)
Syntax Arguments

FRRATE(func.currency,sourcecurrency,ratetype,date,rateoption)
func. currency source currency rate type date
The functional (home) currency code. The source currency code. The rate type code. Optional. Financial Reporter uses the period-end date of the report fiscal period if not specified, or it uses the session date if the report is not generated from a specification (i.e. there is no period-end date). The date is specified as DATE(YYYY,MM,DD). (DATE() is a spread-sheet function that returns the serial number of the date.) Optional. The rate option lets you choose which portion of the euro-member-currency to non-euro-currency exchange rate you want to the function to provide. RF returns the floating portion of the exchange rate that is, the portion not fixed between the euro and noneuro-member currencies. (RF returns a "1" if the currencies are euro-member.) RC returns the composite exchange rate (the effective rate between a non-euro currency and a euro-member currency). This is the default if no parameter is specified. This parameter is only required for exchange rates between euro-member currencies.

rate option

Results

FRRATEreturnstheexchangerateasamultipliergiventhe informationyouprovide.
This statement FRRATE("USD","CAD","AV") FRRATE("USD","CAD","SP", DATEVALUE(FRFISCAL("Start"))) FRRATE("ATS","EUR","AV", DATEVALUE(FRFISCAL("Start")),"RC") FRRATE("USD","ATS","AV", DATEVALUE(FRFISCAL("Start")),"RF") Returns this .75 .75 13.760300 .88274

Examples

DATEVALUEisaspreadsheetfunctionthatconvertsatextual representationofthedatetoaserialnumberwhichFRRATEaccepts.

Quick Reference

21

Financial Reporter Functions

FRSDESC
TheFRSDESCfunctionprovidesthedescriptionforasegmentcode, givenasegmentnumberandsegmentcode.
Syntax Arguments

FRSDESC(segmentnumber,segmentcode)
segment number The segment number is 1 to 10. This number is an integer, which means it is not enclosed in quotation marks. The code for the segment value such as 1000 or WEST.

segment code Results

FRSDESCreturnsthesegmentnamefromthegeneralledger segmentcodestable.Thefollowingexamplesassumethatsegment 1isthedepartmentsegment.


This statement FRSDESC(1,"USEAST") FRSDESC(1,"SALES") FRSDESC(1,FR("CurAcSegVal1")) Returns this Eastern United States Sales Department Sales Department

Examples

FRTRN
TheFRTRNcommandretrievesnetamountsandnetquantitiesfrom postedtransactionsfortheperiodthatyouspecify.FRTRNprovides netamountsonly,itdoesnotcalculatebalancesorinclude provisionallypostedtransactions,anditcannotretrieverollup amounts/totals. Budget,balance,andprovisionalamountscannotberetrievedusing thiscommand. FRTRNissimilartoFRAMT,butFRTRNretrievestotalsfrom transactionhistory,whereasFRAMTretrievestotalsfromaccount history. FRmayfindarecordwhenretrievingfromFRAMTbutmayfindno records(ornumerousrecords)whenretrievingfromFRTRN,dueto thefactthattheamountsareretrievedfromdifferentsources.

22

Sage Accpac Financial Reporter

Financial Reporter Functions

Syntax Arguments

FRTRN(fieldname,accountreference,criteria,currency)
field name The name of a field from the General Ledger with an optional fiscal designator prefix and optional year suffix. Prefixes are: A for actual account set, Q for quantities, and QA for actual quantities. The 4-digit year is chosen from the drop-down list. A string specifying a single account or range of accounts. A string containing an expression that imposes selection criteria on the accounts and transactions. The account reference and the expression together determine the accounts or transactions that will be included. A string containing the currency reference. You select a currency code and a qualifier. The qualifier choices are S, for source currency, E, functional equivalent of source amount, and F, for functional currency total. (If your functional currency is the euro and you specified a reporting currency, you can also choose R for the reporting currency.)

account reference criteria

currency

Resutls

FRTRNretrievesnettotals,actualvalues(notprovisionalvalues), andsummarytotals(bybothaccountandtransactionfields),and allowsdrilldowntoassociatedtransactions.


This statement FRTRN("NETLQ",1000") Returns this Net transactions for the last quarter for account 1000. Same definition as FRAMT in determining the sign of the amount; except, if there are no transactions retrieved from the transaction history, the return value will be 0. Net transactions for inquired period for account 1000. Same definition as FRAMT in determining the sign of the amount; except, if there are no transactions retrieved from the transaction history, the return value is 0.

Examples

FRTRN("NET#P",1000")

Quick Reference

23

Financial Reporter Functions

FRTRN("NETQTD",1000")

Net transactions for the quarter to date for account 1000. Same definition as FRAMT in determining the sign of the amount; except, if there are no transactions retrieved from the transaction history, the return value is 0

NotethattheaccountnumberisusuallysetinColumnA,andother criteria(suchasthetransactiondate),issetinColumnB.

FRTRNA
TheFRTRNAcommandretrievesnetamountsandnetquantities frompostedtransactionsfortheperiodthatyouspecify.Like FRAMTA,itdisplaysdebitamountsaspositivenumbersandcredit amountsasnegativenumbers.FRTRNAdoesnotcalculatebalances norincludeprovisionallypostedtransactions,anditcannotretrieve rollupamounts/totals. Budget,balance,andprovisionalamountscannotberetrievedusing thiscommand.
Syntax Results

FRTRNA(fieldname,accountreference,criteria,currency) FRTRNAretrievesnettotals,actualvalues(notprovisionalvalues), andsummarytotals(bybothaccountandtransactionfields),and allowsdrilldowntoassociatedtransactions. Foracompleteparameterdescription,seeFRTRN.

FRTRNDR
TheFRTRNDRcommandisthesameastheFRDEBITcommand.It yieldsnettotals(debitamountsonly)fromtransactions. Budget,balance,andprovisionalamounts,aswellasrollupamounts andtotals,cannotberetrievedusingthiscommand.

24

Sage Accpac Financial Reporter

Financial Reporter Functions

Syntax Results

FRTRNDR(fieldname,accountreference,criteria,currency) FRTRNDRretrievesnettotals,actualvalues(notprovisionalvalues), andsummarytotals(bybothaccountandtransactionfields),and allowsdrilldowntoassociatedtransactions. Foracompleteparameterdescription,seeFRTRN.

FRTRNCR
TheFRTRNCRcommandisthesameastheFRCREDITcommand.It yieldsnettotals(creditamountsonly)fromtransactions. Budget,balance,provisionalamounts,androllupamountsand totals,cannotberetrievedusingthiscommand.
Results

FRTRNCRretrievesnettotals,actualvalues(notprovisionalvalues), andsummarytotals(bybothaccountandtransactionfields),and allowsdrilldowntoassociatedtransactions.

Quick Reference

25

You might also like