Sage300 ParametersForCustomizingPrintedForms
Sage300 ParametersForCustomizingPrintedForms
Sage300 ParametersForCustomizingPrintedForms
2016
Parameters for Customizing Printed
Forms
This is a publication of Sage Software, Inc.
Sage, the Sage logos, and the Sage 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.
Business Objects® and the Business Objects logo, BusinessObjects®, and Crystal Reports® are
trademarks or registered trademarks of Business Objects Software Ltd. in the United States and in
other countries. Business Objects is an SAP company.
Microsoft ®SQL Server®, Windows Vista® and the Windows logo are either registered trademarks or
trademarks of Microsoft Corporation in the United States and/or in other countries.
The names of all other products and services are property of their respective owners.
Your use of this document and the Sage product(s) described herein is governed by the terms and
conditions of the Sage End User License Agreement ("EULA") or other agreement that is provided
with or included in the Sage product. Nothing in this document supplements, modifies or amends
those terms and conditions. Except as expressly stated in those terms and conditions, the information
in this document is provided by Sage "AS IS" and Sage disclaims all express, implied or statutory
warranties of any kind, including but not limited to the warranties of merchantability, fitness for a
particular purpose or of non-infringement. No implied license is granted to you under any Sage
intellectual property or trade secret right. Sage reserves the right to revise, supplement or remove
information in this document at any time without notice to you or others.
1 Introduction
2 Default Check Forms
3 Information You Can Include on Customized Forms
4 Fields Available for Checks and Advices
4.1 Database Table BKREG - Bank Check Register Information
4.2 Database Table APADV - Advice Information
4.3 Database Table CSCOM - Company Profile Information (for 1099/CPRS forms)
4.4 Database Table APCCS - Class Code Summary Information (for 1099/CPRS forms)
4.5 Database Table APVEN - Vendor Information(for 1099/CPRS forms, letters, and labels)
5 Fields Available for Letters and Labels
6 Report Parameters and Formula Fields
This document lists the information you can include when developing formats to print invoices, statements, and
mailing labels. For each field, the list includes the code that identifies the field, the maximum number of
characters in the field, and a description of the field.
Checks are recorded in the Bank Services module according to the total advice details and number of Advice
Lines Per Page entered in the Bank's Check Stocks tab. If the number of Advice Lines Per Page is less than or
equal to the Maximum Advice Lines, the default forms will print advices capable of containing Advice Lines
Per Page details. If the number of Advice Lines Per Page is greater than the Maximum Advice Lines, the default
forms will print advices capable of containing Maximum Advice Lines details. In the latter case, Bank Services
would record a different number of checks than were printed when the advice details is between the Maximum
Advice Lines and Advice Lines Per Page details.
It is recomended that the number of Advice Lines Per Page entered in the Bank's Check Stocks tab never exceed
the Maximum Advice Lines set in the Check Form.
This section lists the types of information you can include on your printed forms. These lists are not exhaustive;
the next section provides complete listings of fields you can use in your forms.
check number
receipt date
entry description
bank code
vendor number
vendor name
payee name
bank currency code
vendor number
vendor address
vendor name
company name
company address
company contact
vendor name
vendor address
vendor contact
date
current total
aging totals
period-to-date totals
year-to-date totals
The following table lists the database fields that you can insert in checks and advices without changing the
queries defined in the supplied forms.
Database Table APCCS - Class Code Summary Information (for 1099/CPRS forms)
Database Table APVEN - Vendor Information(for 1099/CPRS forms, letters, and labels)
See the previous database table APVEN (Vendor Information) for a list of the fields you can insert in letters and
labels.
Several pieces of information are passed to the reports through report parameters. These items may be standard
pieces of information about your company - such as the company name - or they may be the data selection
criteria you specified for printing the report. You can insert report parameter information into a report in the
same way you include database field information. To view the report parameters, open the report in Crystal
Reports and choose Parameter Field from the Insert menu.
Formula fields are fields that use other fields, arithmetic operators, and functions to format information or to
compute values, such as a total or average of a column's values. You can insert the formula fields that come
with the report, or you can create your own. To view the existing formula fields, open the report in Crystal
Reports and choose Formula Field from the Insert menu.
1 Introduction
2 Default Check Forms
3 Default Statement Forms
4 Default Invoice Forms
5 Default Receipt Form
6 Default Label Forms
7 Information You Can Include on Customized Forms
8 Fields Available for Invoices, Credit Notes, and Debit Notes
8.1 Invoice Header Information (Table ARIBH)
8.2 Invoice Detail Information (Table ARIBD)
8.3 Invoice Detail Comment Information (Table ARIBT)
8.4 Customer Record Information (Table ARCUS)
8.5 Billing Cycle Information (ARRBC)
9 Fields Available for Statements, Letters, and Labels
9.1 ARSTRUN
9.2 ARSTCUS
9.3 ARSTOBL
9.4 ARSTOBP
9.5 ARSTNAT
9.6 ARSLLBL
10 Report Parameters and Formula Fields
This document lists the information you can include when developing formats to print invoices, statements, and
mailing labels. For each field, the list includes the code that identifies the field, the maximum number of
characters in the field, and a description of the field.
Checks are recorded in the Bank Services module according to the total advice details and number of Advice
Lines Per Page entered in the Bank's Check Stocks tab. If the number of Advice Lines Per Page is less than or
equal to the Maximum Advice Lines, the default forms will print advices capable of containing Advice Lines
Per Page details. If the number of Advice Lines Per Page is greater than the Maximum Advice Lines, the default
forms will print advices capable of containing Maximum Advice Lines details. In the latter case, Bank Services
would record a different number of checks than were printed when the advice details is between the Maximum
Advice Lines and Advice Lines Per Page details.
It is recomended that the number of Advice Lines Per Page entered in the Bank's Check Stocks tab never
exceed the Maximum Advice Lines set in the Check Form.
ARSTMT10.RPT and ARSTMT11.RPT print customer, national account and national account member
statements on a laser printer. ARSTMTPRE.RPT has the same features as ARSTMT10.RPT but is formatted for
use with preprinted statements.
Name Description
ARLABELAVERY5160.RPT Avery standard 5160 address format which prints 3 X 10 labels per page.
ARLABELAVERY5162.RPT Avery standard 5162 address format which prints 2 X 7 labels per page.
Both forms are shared by Statements/Letters/Labels (AR7401) and Labels (AR7402). AR7401 generates data
into table ARSTCUS. AR7402 generates data into table ARSLLBL. There is a COMMAND object in the report
to accommodate the two tables based on UI passed parameters.
This section lists the types of information you can include on your printed forms. These lists are not exhaustive;
the next section provides complete listings of fields you can use in your forms.
customer name
customer address
date
invoice date
page number
ship-to address
customer number
ship via
customer name
salesperson number
customer address
terms code
customer contact
remit-to address
item description
discount
comments
amount before taxes
quantity
total taxes
unit price
payment received
amount
amount due
date
due date
page number
discount date
customer
discount amount
customer address
check number
customer phone
amount allocated
dunning message
statement total
invoice date
aging totals
invoice number
period-to-date totals
invoice original amount
year-to-date totals
invoice current amount
company name
date
company address
dunning message
company contact
current total
customer name
aging totals
customer address
period-to-date totals
customer contact
year-to-date totals
The following tables give the database fields that you can insert in invoices, credit notes, and debit notes without
changing the queries defined in the supplied forms.
The following list shows fields available for header information for both posted and unposted invoices. Note:
You cannot print posted invoices unless you keep history.
The following list shows fields available for detail information for both posted and unposted invoices. Note: You
cannot print posted invoices unless you keep history.
The following list shows additional comment information fields for unposted invoices.
ARSTRUN
ARSTCUS
ARSTNAT
ARSTOBL
ARSTOBP
Letters are produced from the ARSTCUS table only. While labels can be produced from either the ARSTCUS
table or the ARSLLBL table. Fields in each table are described in detail below.
ARSTRUN
ARSTCUS
ARSTOBL
ARSTOBP
ARSTNAT
ARSLLBL
Formula fields are fields that use other fields, arithmetic operators, and functions to format information or to
compute values, such as a total or average of a column's values. You can insert the formula fields that come with
the report, or you can create your own. To view the existing formula fields, open the report in Crystal Reports
and choose Formula Field from the Insert menu.
This document lists the information you can include when developing formats to print bin/shelf labels and item
labels. For each field, the list includes the code that identifies the field, the maximum number of characters in
the field, and a description of the field.
For information on using Crystal Reports to customize forms, refer to the online document, "Customizing
Printed Forms with Crystal Reports."
The following table lists the fields that you can place on either bin/shelf labels and item labels:
Options Fields
1 Introduction
2 Order Confirmations/Quotes/Picking Slips/Shipping Labels
3 Invoices
4 Credit/Debit Notes
This document lists the information you can include when developing formats to print order confirmations,
quotes, picking slips, shipping labels, invoices, and credit notes. For each field, the list includes the code that
identifies the field, the maximum number of characters in the field, and a description of the field.
Comments/Instructions Fields
Serial Numbers
Prepayments Fields
Field Name Length Description
APPLYTO 2 Apply To
DOCNUMBER 22 Document Number
PPNUMBER 2 Prepayment Number
REBATCHNUM 5 Receipt Batch Number
BANKCODE 8 Bank Code
BANKRECTYP 6 Receipt Type
CHECKDATE 5 Check Date
CHKFISCYR 4 Check Fiscal Year
CHKFISCPER 2 Check Fiscal Period
CHECKNUM 24 Check Number
PAYMENT 10 Payment in Customer Currency
INVPAYDISC 10 Payment Discount
BANKPAYMNT 10 Payment in Bank Currency
PAHOMECURR 3 Payment Home Currency
PARATETYPE 2 Payment Rate Type
PASOURCURR 3 Payment Source Currency
PARATEDATE 5 Payment Rate Date
PARATE 8 Payment Rate
PASPREAD 8 Payment Spread
PADATEMTCH 2 Payment Rate Date Matching
PARATEREP 2 Payment Rate Representation
IDPPD 22 Prepayment Number
PAYMTYPE 2 Payment Type
CCTYPE 12 Credit Card Type
CCNUMBER 32 Credit Card Number
CCNAME 60 Credit Card Name
CCAUTHCODE 20 Authorization Code
Company Information
Item Fields
Location Fields
Salesperson Fields
Customer Fields
Field Name Length Description
IDCUST 12 Customer Number
TEXTSNAM 10 Short Name
IDGRP 6 Group Code
IDNATACCT 12 National Account
SWACTV 2 Status
DATEINAC 5 Inactive Date
DATELASTMN 5 Date Last Maintained
SWHOLD 2 On Hold
DATESTART 5 Start Date
IDPPNT 12 Reserved
CODEDAB 9 Credit Bureau Number
CODEDABRTG 5 Credit Bureau Rating
DATEDAB 5 Credit Bureau Date
NAMECUST 60 Customer Name
TEXTSTRE1 60 Address Line 1
TEXTSTRE2 60 Address Line 2
TEXTSTRE3 60 Address Line 3
TEXTSTRE4 60 Address Line 4
NAMECITY 30 City
CODESTTE 30 State
CODEPSTL 20 Zip/Postal Code
CODECTRY 30 Country
NAMECTAC 60 Contact Name
TEXTPHON1 30 Phone Number
TEXTPHON2 30 Fax Number
CODETERR 6 Territory Code
IDACCTSET 6 Account Set
IDAUTOCASH 6 Autocash Profile
IDBILLCYCL 6 Billing Cycle
IDSVCCHRG 6 Interest Profile
IDDLNQ 6 Reserved
CODECURN 3 Currency Code
SWPRTSTMT 2 Print Statements
SWPRTDLNQ 2 Reserved
SWBALFWD 2 Account Type
CODETERM 6 Terms
IDRATETYPE 2 Rate Type
CODETAXGRP 12 Tax Group
IDTAXREGI1 20 Tax Registration No. 1
IDTAXREGI2 20 Tax Registration No. 2
IDTAXREGI3 20 Tax Registration No. 3
IDTAXREGI4 20 Tax Registration No. 4
IDTAXREGI5 20 Tax Registration No. 5
TAXSTTS1 2 Tax Class Code 1
TAXSTTS2 2 Tax Class Code 2
TAXSTTS3 2 Tax Class Code 3
TAXSTTS4 2 Tax Class Code 4
TAXSTTS5 2 Tax Class Code 5
AMTCRLIMT 10 Credit Limit
AMTBALDUET 10 Balance Due in Cust. Curr.
AMTBALDUEH 10 Balance Due in Func. Curr.
DATELASTST 5 Date of Last Statement
AMTLASTSTT 10 Last Statement Total Cust. Curr
AMTLASTSTH 10 Reserved
DTBEGBALFW 5 Date of Last Bal. Fwd. Statemen
AMTBALFWDT 10 Beginning Bal. on Last Statemen
AMTBALFWDH 10 Reserved
DTLASTRVAL 5 Date of Last Revaluation
AMTBALLARV 10 Last Revaluation Balance
CNTOPENINV 4 Number of Open Documents
CNTINVPAID 4 Number of Paid Invoices
DAYSTOPAY 4 Number of Days to Pay
DATEINVCHI 5 Date of Largest Invoice
DATEBALHI 5 Date of Highest Balance
DATEINVHIL 5 Date of Largest Invoice Last Yr
DATEBALHIL 5 Date of Highest Balance Last Yr
DATELASTAC 5 Date of Last Activity
DATELASTIV 5 Date of Last Invoice
DATELASTCR 5 Date of Last Credit Note
DATELASTDR 5 Date of Last Debit Note
DATELASTPA 5 Date of Last Receipt
DATELASTDI 5 Date of Last Discount
DATELASTAD 5 Date of Last Adjustment
DATELASTWR 5 Date of Last Write-Off
DATELASTRI 5 Date of Last Returned Check
DATELASTIN 5 Date of Last Interest Charge
DATELASTDQ 5 Reserved
IDINVCHI 22 Largest Invoice Number
IDINVCHILY 22 Largest Invoice Number Last Yr.
AMTINVHIT 10 Largest Invoice - Cust. Curr.
AMTBALHIT 10 Highest Balance - Cust. Curr.
AMTINVHILT 10 Lgst. Inv. Last Yr. Cust. Curr
AMTBALHILT 10 High Bal. Last Yr. - Cust. Curr
AMTLASTIVT 10 Last Invoice Amt. - Cust. Curr.
AMTLASTCRT 10 Last Cr. Note Amt. - Cust. Curr
AMTLASTDRT 10 Last Dr. Note Amt. - Cust. Curr
AMTLASTPYT 10 Last Receipt - Cust. Curr.
AMTLASTDIT 10 Last Discount Amt. - Cust. Curr
AMTLASTADT 10 Last Adj. Amt. - Cust. Curr.
AMTLASTWRT 10 Last Write-Off Amt. Cust. Curr
AMTLASTRIT 10 Last Ret'd. Chk. Amt. Cust. Cur
AMTLASTINT 10 Last Int. Charge - Cust. Curr.
AMTINVHIH 10 Largest Invoice - Func. Curr.
AMTBALHIH 10 Highest Balance - Func. Curr.
AMTINVHILH 10 Lgst. Inv. Last Yr. Func. Curr
AMTBALHILH 10 High Bal. Last Yr. - Func. Curr
AMTLASTIVH 10 Last Invoice Amt. - Func. Curr.
AMTLASTCRH 10 Last Cr. Note Amt. - Func. Curr
AMTLASTDRH 10 Last Dr. Note Amt. - Func. Curr
AMTLASTPYH 10 Last Receipt - Func. Curr.
AMTLASTDIH 10 Last Discount Amt. - Func. Curr
AMTLASTADH 10 Last Adj. Amt. - Func. Curr.
AMTLASTWRH 10 Last Write-Off Amt. Func. Curr
AMTLASTRIH 10 Last Ret'd. Chk. Amt. Func. Cur
AMTLASTINH 10 Last Int. Charge - Func. Curr.
CODESLSP1 8 Salesperson 1
CODESLSP2 8 Salesperson 2
CODESLSP3 8 Salesperson 3
CODESLSP4 8 Salesperson 4
CODESLSP5 8 Salesperson 5
PCTSASPLT1 5 Sales-Split Percentage 1
PCTSASPLT2 5 Sales-Split Percentage 2
PCTSASPLT3 5 Sales-Split Percentage 3
PCTSASPLT4 5 Sales-Split Percentage 4
PCTSASPLT5 5 Sales-Split Percentage 5
TEXTOPFL1 2 Optional Field 1
TEXTOPFL2 3 Optional Field 2
TEXTOPFL3 4 Optional Field 3
TEXTOPFL4 12 Optional Field 4
TEXTOPFL5 15 Optional Field 5
TEXTOPFL6 30 Optional Field 6
DATEOPFL1 5 Optional Date Field
AMTOPFL1 10 Optional Amount Field
AVGDAYSPAY 5 Average Days to Pay
PRICLIST 6 Customer Price List
CUSTTYPE 2 Customer Discount Type
AMTPDUE 10 Amount Past Due
EMAIL1 50 Contact's E-mail
EMAIL2 50 Customer's E-mail
WEBSITE 100 Customer's Web Site
BILLMETHOD 2 Billing Method
CCNUMBER 30 Credit Card Number
CCEXP 5 Credit Card Expiry Date
CCNAME 50 Credit Card Name
CODPAYMTYP 6 Receipt Type
FOB 60 Free On Board
SHPVIACODE 6 Ship Via Code
SHPVIADESC 60 Ship Via Description
DELMETHOD 2 Delivery Method
PRIMSHIPTO 6 Primary Ship-To Location
Comments/Instructions Fields
Serial Numbers
Prepayments Fields
Company Information
Item Fields
Location Fields
Salesperson Fields
Customer Fields
Comments/Instructions Fields
Serial Numbers
Company Information
Item Fields
Location Fields
Salesperson Fields
Customer Fields
1 Introduction
2 Requisitions
3 Purchase Orders
4 Receiving Slips
5 Returns
6 Mailing Labels
This document lists the information you can include when developing formats to print requisitions, purchase
orders, receiving slips, returns, and mailing labels. For each field, the list includes the code that identifies the
field, the maximum number of characters in the field, and a description of the field.
For information on using Crystal Reports in your Purchase Orders program, refer to the online document,
"Customizing Printed Forms with Crystal Reports." (Choose Start, Programs, Sage Software, Sage Accpac, and
then Documentation.)
The following table lists the fields that you can place on requisitions.
Detail Comments
Company Information
The following table lists the fields that you can place on purchase orders.
Company Information
Item Information
Vendor Information
The following table lists the fields that you can place on receiving slips.
Receipt Header Fields
Company Information
The following table lists the fields that you can place on returns.
Company Information
The following table list the fields that you can place on mailing labels.