CBCPYCASH – Company-Cash Code Relationship

System
Cash Ledger (CB)
Prefix
CBY
Primary key
COMPANY, CASH-CODE
Fields
53
Updated by
94 programs
Referenced by
26 programs

CBCPYCASH is the Company-Cash Code Relationship table in Lawson Cash Ledger (prefix CBY). It is indexed by COMPANY, CASH-CODE (CBYSET1); alternate indexes: CBYSET2 and CBYSET3. It is related 1:1 to CBBANKENT, CBCASHCODE and GLSYSTEM and 1:M to CBCPCSAUD, CBMXCONV, CBMXVALUE and MXLISTMBR. It is updated by AP00.4, AP00.5, AP01.1, AP101, AP125, AP126, AP150, AP151 and 86 more and referenced by AP155, AP160, AP161, CB01.1, CB01.4, CB01.5, CB01.6, CB01.7 and 18 more. The table has 53 fields, 3 indexes and 11 documented relations.

About CBCPYCASH

The Company-Cash Code Relationship file contains relationship records between a general ledger company and a cash code (bank account).

Fields (53)

Column = COBOL field name without the CBY- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
CBY-COMPANY PK
COMPANY
Numeric 4The company number. Must be a valid record in the General Ledger Company file.CB00.3
CBY-CASH-CODE PK
CASH_CODE
Alpha 4The cash code. Represents a bank account. Must be a valid record in the Cash Code file.CB00.3
CBY-CSH-COMPANY
CSH_COMPANY
Numeric 4The general ledger company a cash transaction will be made against. THIS FIELD IS NOT USED AT THIS TIME.CB00.3
CBY-CSH-ACCT-UNIT
CSH_ACCT_UNIT
Alpha 15The general ledger cash accounting unit for the company-cash code relationship. Must be a valid record in the General Ledger Names file.CB00.3
CBY-CSH-ACCOUNT
CSH_ACCOUNT
Numeric 6The general ledger cash account number for the company-cash code relationship. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-CSH-SUB-ACCT
CSH_SUB_ACCT
Numeric 4The general ledger cash subaccount number for the company-cash code relationship. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-CLR-ACCT-UNIT
CLR_ACCT_UNIT
Alpha 15The general ledger bank transfer clearing accounting unit used for bank fund transfers to or from the company-cash code relationship. Must be a valid record in the General Ledger Names file.CB00.3
CBY-CLR-ACCOUNT
CLR_ACCOUNT
Numeric 6The general ledger bank transfer clearing account number used for bank fund transfers to or from the company-cash code relationship. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-CLR-SUB-ACCT
CLR_SUB_ACCT
Numeric 4The general ledger bank transfer clearing subaccount number used for bank fund transfers to or from the company-cash code relationship. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-REC-OVER-TOL
REC_OVER_TOL
Signed 18.2Indicates by what amount, if any, the reconciled amount can exceed the issued amount of a transaction. If defined and the reconciled amount exceeds the issued amount within the defined tolerance, the difference is posted to the GL Variance Account selected for the company-cash code relationship. If the difference exceeds the defined tolerance, the reconciliation must be approved in CB30.1 (Reconciliation Variance Adjustment). If left blank, zero defaults, which means the reconciled amount must equal the issued amount.CB00.3
CBY-REC-UNDER-TOL
REC_UNDER_TOL
Signed 18.2Indicates by what amount, if any, the reconciled amount can be less than the issued amount of a transaction. If defined and the reconciled amount is less than the issued amount within the defined tolerance, the difference is posted to the GL Variance Account selected for the company-cash code relationship. If the difference exceeds the defined tolerance, the reconciliation must be approved in CB30.1 (Reconciliation Variance Adjustment). If left blank, zero defaults, which means the reconciled amount must equal the issued amount.CB00.3
CBY-VAR-COMPANY
VAR_COMPANY
Numeric 4The general ledger company a reconciliation variance transaction will be made against. THIS FIELD IS NOT USED AT THIS TIME.CB00.3
CBY-VAR-ACCT-UNIT
VAR_ACCT_UNIT
Alpha 15The general ledger variance accounting unit for the company-cash code relationship. Must be a valid record in the General Ledger Names file.CB00.3
CBY-VAR-ACCOUNT
VAR_ACCOUNT
Numeric 6The general ledger variance account number for the company-cash code relationship. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-VAR-SUB-ACCT
VAR_SUB_ACCT
Numeric 4The general ledger variance subaccount number for the company-cash code relationship. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-REC-GL-ENTRY
REC_GL_ENTRY
Alpha 1Indicates whether a general ledger entry is created from the GL Cash Account to a GL Reconcile Account when the company reconciles a transaction for the cash code. If this field = Yes, a general ledger entry is created from the GL Cash Account to the GL Reconcile Account. The difference between the reconciled amount and the issued amount, within the defined tolerances, posts to the GL Variance Account. Valid values are:
  • N No.
  • Y Yes.
CB00.3
CBY-REC-COMPANY
REC_COMPANY
Numeric 4The general ledger company a reconciled transaction will be made against. THIS FIELD IS NOT USED AT THIS TIME.CB00.3
CBY-REC-ACCT-UNIT
REC_ACCT_UNIT
Alpha 15If the GL Reconcile Entry field = Yes, this field contains the general ledger reconcile accounting unit for the company-cash code relationship. Must be a valid record in the General Ledger Names file.CB00.3
CBY-REC-ACCOUNT
REC_ACCOUNT
Numeric 6If the GL Reconcile Entry field = Yes, this field contains the general ledger reconcile account number for the company-cash code relationship. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-REC-SUB-ACCT
REC_SUB_ACCT
Numeric 4If the GL Reconcile Entry field = Yes, this field contains the general ledger reconcile subaccount number for the company-cash code relationship. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-ENCS-ACCT-UNIT
ENCS_ACCT_UNIT
Alpha 15The general ledger encashed remittance accounting unit used for bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Names file.CB00.3
CBY-ENCS-ACCOUNT
ENCS_ACCOUNT
Numeric 6The general ledger encashed remittance account number used for bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-ENCS-SUB-ACCT
ENCS_SUB_ACCT
Numeric 4The general ledger encashed remittance subaccount number used for bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-DISC-ACCT-UNIT
DISC_ACCT_UNIT
Alpha 15The general ledger discounted remittance accounting unit used for bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Names file.CB00.3
CBY-DISC-ACCOUNT
DISC_ACCOUNT
Numeric 6The general ledger discounted remittance account number used for bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-DISC-SUB-ACCT
DISC_SUB_ACCT
Numeric 4The general ledger discounted remittance subaccount number used for bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-RISK-ACCT-UNIT
RISK_ACCT_UNIT
Alpha 15The general ledger bank risk accounting unit used for discounted bill of exchange risk processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Names file.CB00.3
CBY-RISK-ACCOUNT
RISK_ACCOUNT
Numeric 6The general ledger bank risk account number used for discounted bill of exchange risk processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-RISK-SUB-ACCT
RISK_SUB_ACCT
Numeric 4The general ledger bank risk subaccount number used for discounted bill of exchange risk processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-BEXP-ACCT-UNIT
BEXP_ACCT_UNIT
Alpha 15The general ledger bank expense accounting unit used for bill of exchange cashing expenses. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Names file.CB00.3
CBY-BEXP-ACCOUNT
BEXP_ACCOUNT
Numeric 6The general ledger bank expense account number used for bill of exchange cashing expenses. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-BEXP-SUB-ACCT
BEXP_SUB_ACCT
Numeric 4The general ledger bank expense subaccount number used for bill of exchange cashing expenses. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-FIN-ACCT-UNIT
FIN_ACCT_UNIT
Alpha 15The general ledger financial expense accounting unit used for financial expenses associated with bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Names file. THIS FIELD IS NOT CURRENTLY USED.CB00.3
CBY-FIN-ACCOUNT
FIN_ACCOUNT
Numeric 6The general ledger financial expense account number used for financial expenses associated with bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file. THIS FIELD IS NOT CURRENTLY USED.CB00.3
CBY-FIN-SUB-ACCT
FIN_SUB_ACCT
Numeric 4The general ledger financial expense subaccount number used for financial expenses associated with bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file. THIS FIELD IS NOT CURRENTLY USED.CB00.3
CBY-ADMN-ACCT-UNIT
ADMN_ACCT_UNIT
Alpha 15The general ledger administration expense accounting unit used for administration expenses associated with bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Names file.CB00.3
CBY-ADMN-ACCOUNT
ADMN_ACCOUNT
Numeric 6The general ledger administration expense account number used for administration expenses associated with bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-ADMN-SUB-ACCT
ADMN_SUB_ACCT
Numeric 4The general ledger administration expense subaccount number used for administration expenses associated with bill of exchange processing. Required if company uses the cash code to process bills of exchange. Must be a valid record in the General Ledger Account Master file.CB00.3
CBY-USED-FLAG
USED_FLAG
Alpha 1Indicates whether the company-cash code relationship has been used. Valid values are:
  • N No.
  • Y Yes.
AP00.4, AP00.5, AP01.1, AP101, AP125, AP126, AP150, AP151 +52 more (list truncated in source)
CBY-SEL-BANK-NAME
SEL_BANK_NAME
DerivedThe name of the bank associated with the cash code.
CBY-SEL-BANK-ACCT
SEL_BANK_ACCT
DerivedThe bank account number defined for the cash code.
CBY-RECON-JRNL-BK
RECON_JRNL_BK
Alpha 12The journal book assigned to the transaction.CB00.3
CBY-DEP-INST-CODE
DEP_INST_CODE
Alpha 3CB00.3
CBY-CHK-INST-CODE
CHK_INST_CODE
Alpha 3CB00.3
CBY-BANK-INST-CODE
BANK_INST_CODE
Alpha 3A transaction code represents a type of cash payment, bill of exchange payment, or bank service transaction.CB00.3
CBY-RECN-INST-CODE
RECN_INST_CODE
Alpha 3CB00.3
CBY-OBJ-ID
OBJ_ID
Numeric 12This is the object identifier. It is used to relate commitments or posted transactions back to the originating subsystems. Each subsystem record that is updated as a commitment or posted transaction is assigned an object identifier. The object identifier is maintained in the subsystem files and in the Activity Commitments Detail and Activity Transaction files. The object identifier is a unique key used to drill back from Activity Management to the subsystems.CB00.3
CBY-PMT-ACCT-UNIT
PMT_ACCT_UNIT
Alpha 15The accounting unit is a shorthand notation representing the variable level number. When used in the General Ledger Account Master file, the accounting unit must be defined in the General Ledger Names file as a posting accounting unit.CB00.3
CBY-PMT-ACCOUNT
PMT_ACCOUNT
Numeric 6This field along with the accounting unit and subaccount make up the location (account) where amounts and other account information is stored.CB00.3
CBY-PMT-SUB-ACCT
PMT_SUB_ACCT
Numeric 4This field contains the subaccount from your general ledger chart of accounts that was charged with the amount carried on this record.CB00.3
CBY-EFT-ACCT-UNIT
EFT_ACCT_UNIT
Alpha 15The accounting unit is a shorthand notation representing the variable level number. When used in the General Ledger Account Master file, the accounting unit must be defined in the General Ledger Names file as a posting accounting unit.CB00.3
CBY-EFT-ACCOUNT
EFT_ACCOUNT
Numeric 6This field along with the accounting unit and subaccount make up the location (account) where amounts and other account information is stored.CB00.3
CBY-EFT-SUB-ACCT
EFT_SUB_ACCT
Numeric 4This field contains the subaccount from your general ledger chart of accounts that was charged with the amount carried on this record.CB00.3

Indexes (3)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
CBYSET1COMPANY, CASH-CODEPrimaryAP00.4, AP00.5, AP01.1, AP101, AP125, AP126, AP150, AP151 +22 more (list truncated in source)
CBYSET2CASH-CODE, COMPANYCB00.2, CB01.5, CB222, CBBC.1, CBOP.1
CBYSET3OBJ-IDSubsetWhere OBJ-ID != ZeroesAP150, AP155, AP160, AP161, AP265, ZA161, CB01.6, CB01.7 +16 more

Relations

One to one (6) — lookups and parents

RelationTableRulesConditionField map
CbbankentCBBANKENTRequiredCBC-BANK-ENTITYCBE-BANK-ENTITY
CbcashcodeCBCASHCODERequiredCBY-CASH-CODECBC-CASH-CODE
GlsystemGLSYSTEMRequiredCBY-COMPANYGLS-COMPANY
Glsystem CashGLSYSTEMRequiredCBY-CSH-COMPANYGLS-COMPANY
Glsystem ReconGLSYSTEMRequiredCBY-REC-COMPANYGLS-COMPANY
Glsystem VarGLSYSTEMRequiredCBY-VAR-COMPANYGLS-COMPANY

One to many (5) — child tables

RelationTableRulesConditionField map
CbcpcsaudCBCPCSAUDCBY-COMPANYCCC-COMPANY, CBY-CASH-CODECCC-CASH-CODE, CCC-UNIQUE-I-D
CbmxconvCBMXCONVCBY-COMPANYCBN-COMPANY, CBY-CASH-CODECBN-CASH-CODE, CBN-RUN-GROUP, CBN-MATRIX-CAT
CbmxvalueCBMXVALUEDelete CascadesCBY-OBJ-IDCMV-OBJ-ID, CMV-MATRIX-CAT
Member In ListMXLISTMBRDelete Cascades"CSHCD"MLM-OBJ-TYPE, CBY-OBJ-IDMLM-OBJ-ID, MLM-MATRIX-LIST
MxlistmbrMXLISTMBR"CSHCD"MLM-OBJ-TYPE, CBY-OBJ-IDMLM-OBJ-ID, MLM-MATRIX-LIST

Programs

Updated by (94)

Referenced by (26)