0% found this document useful (0 votes)
82 views455 pages

SunSystems 4 Technical Reference Guide

The SunSystems 4 Technical Reference Manual, version 8.01, provides comprehensive documentation for SunSystems software version 4.2.6a SP11. It includes details on system structure, naming conventions, screens and menus, user hooks, and data dictionary maintenance, among other topics. The manual is copyrighted by Systems Union Holdings Ltd and is intended for authorized use only.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
82 views455 pages

SunSystems 4 Technical Reference Guide

The SunSystems 4 Technical Reference Manual, version 8.01, provides comprehensive documentation for SunSystems software version 4.2.6a SP11. It includes details on system structure, naming conventions, screens and menus, user hooks, and data dictionary maintenance, among other topics. The manual is copyrighted by Systems Union Holdings Ltd and is intended for authorized use only.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Technical Reference Manual

SunSystems 4 – Technical Reference Manual


SunSystems document version 8.01 August 2005
Based on SunSystems software version 4.2.6a SP11
Copyright © 1982-2005 Systems Union Holdings Ltd.
All rights reserved.
The copyright of this document and the computer software described herein and
provided herewith are the property of Systems Union Holdings Ltd.
No part of this publication or the computer software may be reproduced, transmitted,
transcribed, stored in a retrieval system, or translated into any human or computer
language, in any form or by any means or otherwise used without the express written
permission of Systems Union Holdings Ltd.
Systems Union Holdings Ltd
Systems Union House
1 Lakeside Road
Aerospace Centre
Farnborough
Hampshire
GU14 6XP
United Kingdom
Phone: +44 (0) 1252 556000
For regional offices, visit our web site:
[Link]
All trademarks mentioned are the products of their respective owners

SunSystems 4 – Technical Reference Manual Page 2 of 455


Technical Reference Manual
Contents

Preface 12
Introduction 13
Overview 13
Types and Versions of COBOL 14
Making Changes 14
System Overview 15
The Structure of SunSystems 15
The Control Program 16
The Application Programs 17
The Kernel Programs 17
The Screen Handler Sub-Modules 18
The File Handler Sub-Modules 18
The Utility Programs 19
Naming Conventions 20
File Types 20
Program File Naming 21
Source Files 21
Copy Files 21
Compiled Program Files 22
System Load Files 23
Template File 23
Message Files 23
Layout Files 24
Report: Heading Files 24
Run Time System Files 25
Data File Naming 25
Master Files 25
Temporary Work Files: Indexed and Non-Indexed 26
Stored Print Files 27
Backup Files 27
Archive Files 28
Transfer Files 28
Audit Files 29
Screens and Menus 30
Standards for Template Design 31
General Format 31
Screen Layout 31
Numbering of Template Fields 32
Grouping of Template Fields 32
The Template File 33
The Template Editor 33
How to Use the Template Editor SZTE 33
P-Print 35
B-Backup 35
R-Restore 35
N-New 37
X-Exit 37
D-Delete 37
E-Edit 37
E-End 37
A-Abort 37
T-Template 38
R-Ruler 39
I-Ids 39
D-Display 39

SunSystems 4 – Technical Reference Manual Page 3 of 455


H-Help Text Editor 39
F-Field 40
Q-Query 41
W-Windows 42
Edit Option S-Selections 43
Action Numbers 44
The Actions Table 44
Local Actions 50
Routing Selections 51
Other Ways to Run SZTE 54
Upgrading the Template File with SZTC 55
SunExtras Menu and External Programs 57
Message Files 57
The Help Text Ediror (SZHE) 61
X-Exit 63
N-Next 63
D-Delete 63
S-Start 63
S-Save 63
A-Abandon 63
F-Field Number 64
E-Edit 64
C-Copy 64
N-Next 64
B-Back 64
M-Format 64
D-Delete 64
Online Manuals 66
Reference Maintenance 67
Introduction 67
Standards for Reference Record Types 68
Reference Layout Files 71
Record Information 73
Field Information 74
Type 1 75
Type 2 75
Type 3 75
Type 4 76
Type 5 76
Type 6 77
Report Information 78
SZLC 79
Reference Transfer 80
Printed Output 83
Report Heading File 83
User Hooks 85
Reference Maintenance User Hook SSRUEXT 86
Report Formatter Amount in Words Hook SSRF??EX 87
Journal Entry/Import User Hook SAJEEXT/SAJIEXT 89
Account Allocation User Hook SAAREXT 91
Account Allocation User Hook SAAREXT2 91
Generate Payments/Debits User Hook SAGPEX 92
Sales Order Entry/Import User Hook SBTDEXT 93

SunSystems 4 – Technical Reference Manual Page 4 of 455


Purchase Order Entry/Import User Hook SPPDEXT 99
Link to Journal Import 105
File Backup User Hook SSFBEXT 107
Concealed System Features 108
Backup Indexed BI 108
Restore Append RA 108
Create Suppress CS 108
Benchmarking Log ZB 108
Clear Users ZC 109
Form Feed ZF 109
File Log ZL 109
Installation Parameters ZP 112
Remove Journal In Use Flag ZR 113
Serialisation ZS 114
Data Dictionary and Report Definition 115
Introduction 115
Maintain Report Types 116
Maintain Data-Record Descriptions 118
Maintain Data-Item Definitions 120
Maintain Data-Item Descriptions 122
Maintain Entity Definitions 123
Maintain Entity Descriptions 126
Maintain Sub-Headings and Sub-Footings 127
Maintain Key Definitions 129
Appendix A: Using SunSystems Data Files 131
Appendix B: Master Data Files 133
The Reference File 133
Description 133
Summary of Record Types 133
Reference File Record Descriptions 134
Account Balance Record, [Link], (SQL miscellaneous table SSRFMSC) 135
Chart of Accounts Record, [Link], SQL Table Name SSRFACC 136
Address Analysis Record, [Link], SQL Table Name SSRFADB 138
Names and Addresses Record, [Link], SQL Table Name SSRFADD 139
Journal Definitions Record, [Link], (SQL miscellaneous table SSRFMSC) 140
Journal Presets Record, [Link], (SQL miscellaneous table SSRFMSC) 142
Calendar Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 143
Allocation Definitions Record, [Link], (SQL miscellaneous table SSRFMSC) 145
Allocation Ratio Record, [Link], (SQL miscellaneous table SSRFMSC) 146
Allocation Source Record, [Link], (SQL miscellaneous table SSRFMSC) 147
Allocation Target Record, [Link], (SQL miscellaneous table SSRFMSC) 148
Analysis Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 149
Analysis Code Record, [Link], SQL Table Name SSRFANV 150
Assembly Structure Record, [Link], (SQL Table Name SSRFAST) 151
Budget Check Definitions Record, [Link], (SQL miscellaneous table SSRFMSC) 152
Bank Details Record, [Link], (SQL miscellaneous table SSRFBKA) 153
Budget Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 154
Business Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 155
Calculation Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 158
Calculation Table Record, [Link], SQL Table Name SSRFCAT 159
Conversion Table Record, [Link], SQL Table Name SSRFCNV 160
Daily Conversion Rate Record, [Link], SQL Table Name SSRFCND 161
Column Heading Record, [Link], (SQL miscellaneous table SSRFMSC) 162
Daybook Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 163

SunSystems 4 – Technical Reference Manual Page 5 of 455


Document Counter Record, [Link], (SQL miscellaneous table SSRFMSC) 164
Despatch Counter Record, [Link], (SQL miscellaneous table SSRFMSC) 165
Depreciation Table Heading Record, [Link], (SQL miscellaneous table SSRFMSC) 166
Depreciation Table Record, [Link], (SQL miscellaneous table SSRFMSC) 167
Payment Reference Details Record, [Link], (SQL miscellaneous table SSRFMSC) 168
Asset Analysis Record, [Link], (SQL miscellaneous table SSRFMSC) 170
Asset Budget Record, [Link], SQL Table Name SSRFFBR 171
Asset Diary Record, [Link], (SQL miscellaneous table SSRFMSC) 173
Formatted Layout Record, [Link], (SQL miscellaneous table SSRFMSC) 174
Format Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 175
Financial Table Columns Record, [Link], (SQL miscellaneous table SSRFMSC) 176
Financial Table Format Record, [Link], (SQL miscellaneous table SSRFMSC) 177
Financial Table Row Record, [Link], (SQL miscellaneous table SSRFMSC) 178
Asset Value Record, [Link], SQL Table Name SSRFFVR 179
Financial Analysis/Statement Layout Record, [Link], (SQL miscellaneous table
SSRFMSC) 181
General Ledger Interface Record, [Link], (SQL miscellaneous table SSRFMSC) 183
Aged Analysis Layout Record, [Link], (SQL miscellaneous table SSRFMSC) 185
Additional Header Labels Record, [Link], (SQL miscellaneous table SSRFMSC) 187
System Labels Record, [Link], (SQL miscellaneous table SSRFMSC) 188
Invoice Prefix Record, [Link], (SQL miscellaneous table SSRFMSC) 189
Debtor/Creditor Transfer Layout Record, [Link], (SQL miscellaneous table
SSRFMSC) 190
Item Extended Descriptions Record, [Link], (SQL miscellaneous table SSRFMSC) 191
Item Record, [Link], SQL Table Name SSRFITM 192
Item Special Processes Record, [Link], (SQL miscellaneous table SSRFMSC) 194
Item Supplier Record, [Link],SQL Table Name SSRFITS 195
Statistical Layout Record, [Link], (SQL miscellaneous table SSRFMSC) 196
Ledger/Register Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 197
Item Balance Record, [Link], SQL Table Name SSRFLIT 200
Location Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 201
Ledger Export Consolidation Record, [Link], (SQL miscellaneous table
SSRFMSC) 202
Ledger Export Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 203
Movement Analysis Layout Record, [Link], (SQL miscellaneous table SSRFMSC) 204
New Cost Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 205
Item Validation Record, [Link], (SQL miscellaneous table SSRFMSC) 206
Movement Accounts Record, [Link], (SQL miscellaneous table SSRFMSC) 207
Location Accounts Record, [Link], (SQL miscellaneous table SSRFMSC) 208
Revaluation Analysis Record, [Link], (SQL miscellaneous table SSRFMSC) 209
Revaluation Profile Record, [Link], (SQL miscellaneous table SSRFMSC) 210
Stock Take Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 211
Movement Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 212
Movement Presets Record, [Link], (SQL miscellaneous table SSRFMSC) 213
Movement Values Definition Record, [Link], (SQL miscellaneous table
SSRFMSC) 215
Sales Analysis Layout Record, [Link], (SQL miscellaneous table SSRFMSC) 216
Authorisation Groups Record, [Link], (SQL miscellaneous table SSRFMSC) 217
Release Authorisation Parameters Record, [Link], (SQL miscellaneous table
SSRFMSC) 218
Standard Density Maintenance Record, [Link], (SQL miscellaneous table
SSRFMSC) 219
Free Goods Setup Record, [Link], (SQL miscellaneous table SSRFMSC) 220
Free Goods Rules Record, [Link], (SQL miscellaneous table SSRFMSC) 221

SunSystems 4 – Technical Reference Manual Page 6 of 455


Invoice Modification Record, [Link], (SQL miscellaneous table SSRFMSC) 222
Minimum Order Tolerance Record, [Link], (SQL miscellaneous table SSRFMSC) 223
Sales Order Header Presets Record, [Link], (SQL miscellaneous table
SSRFMSC) 224
Sales Order Details Presets Record, [Link], (SQL miscellaneous table SSRFMSC) 225
Returns/Exchanges Record, [Link], (SQL miscellaneous table SSRFMSC) 226
Credit/Debit Notes Record, [Link], (SQL miscellaneous table SSRFMSC) 227
Sales Order Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 228
Tracking Code Maintenance Record, [Link], (SQL miscellaneous table
SSRFMSC) 231
Tracking Code Parameters Record, [Link], (SQL miscellaneous table SSRFMSC) 232
Tracking Code Excluded Combinations Record, [Link], (SQL miscellaneous table
SSRFMSC) 233
Charge Index Record, [Link], (SQL miscellaneous table SSRFMSC) 234
Purchase Format Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 235
Payment Terms Instalments Record, [Link], (SQL miscellaneous table SSRFMSC) 236
Purchase Order Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 237
Payment Profile Record, [Link], (SQL miscellaneous table SSRFMSC) 240
Purchase Header Presets Record, [Link], (SQL miscellaneous table SSRFMSC) 243
Purchase Detail Presets Record, [Link], (SQL miscellaneous table SSRFMSC) 244
Price Book Maintenance Record, [Link], (SQL miscellaneous table SSRFMSC) 245
Price Book Hierarchy Record, [Link], (SQL miscellaneous table SSRFMSC) 247
Price Book Hierarchy Record, [Link], (SQL miscellaneous table SSRFMSC) 248
Payment Terms Header Record, [Link], (SQL miscellaneous table SSRFMSC) 249
Unit Conversion Table Record, [Link], (SQL miscellaneous table SSRFMSC) 250
Additional Descriptions Record, [Link], (SQL miscellaneous table SSRFMSC) 251
Additional Descriptions Record, [Link], (SQL miscellaneous table SSRFMSC) 252
Sales Format Record, [Link], (SQL miscellaneous table SSRFMSC) 253
Statement Line Contents Record, [Link], (SQL miscellaneous table SSRFMSC) 254
Spread Ratios Record, [Link], (SQL miscellaneous table SSRFMSC) 255
Sequence Number Record, [Link], (SQL miscellaneous table SSRFMSC) 256
Tax Account Record, [Link], (SQL miscellaneous table SSRFMSC) 257
Treasurer Interface Definition Record, [Link], (SQL miscellaneous table
SSRFMSC) 258
Tax Listing Layout Record, [Link], (SQL miscellaneous table SSRFMSC) 259
Treasurer Transaction References Record, [Link], (SQL miscellaneous table
SSRFMSC) 261
Tax Accounts Definition Record, [Link], (SQL miscellaneous table SSRFMSC) 262
Version Control Record, [Link], (SQL miscellaneous table SSRFMSC) 263
Lead Times Record, [Link], (SQL miscellaneous table SSRFMSC) 264
The Ledger File (and Budget File) 265
Description 265
Summary of Record Types 265
Ledger File Record Descriptions 266
Ledger Transaction Record, see [Link], SQL Table Name SALFLDGddd for the
Actual Ledger or SAbFLDGddd where b=Budget Code (B-K) 267
Ledger Control Record, see [Link], SQL Table Name SALFMSC 269
Ledger Allocation Record [Link] 270
The Ledger Archive File 271
Description 271
Ledger Archive File Record 272

SunSystems 4 – Technical Reference Manual Page 7 of 455


The Balance File 273
Description 273
Indexing of Balance File 273
Summary of Record Types 273
Balance File Record, see [Link], SQL Table Name SALFBALddd for the Actual
Ledger Balance File or SAbFBALddd where b=Budget Code (B-K) 277
Balance File Control Record see [Link], SQL Table Name SABFMSC 279
The Sales Order File 280
Description 280
Sales Order File Record Descriptions 282
The Control record, see [Link],SQL table name SOMFMSC 282
The Sales Order/Invoice Header record, see [Link],SQL table name SOMFHDRddd 283
The Sales Order/Invoice Detail record, see [Link], SQL table name SOMFDETddd 286
The Movement File 291
Description 291
Summary of Record Types 291
Movement File Record Descriptions 293
The Control record, see [Link],SQL table name SMMFMSC 293
The Movement/Summary record, see [Link],SQL table name SMMFMOVddd 294
The Stock Take File 296
Description 296
Summary of Record Types 296
Stock Take File Record Descriptions 298
The Control record, see [Link],SQL table name SMKFMSC 298
The Control record, see [Link],SQL table name SMKFMSC 299
The Stock Take Header record, see [Link],SQL table name SMKFHDRddd 300
The Stock Take Detail record, see [Link],SQL table name SMKFDETddd 301
The Purchase Order File 303
Description 303
Summary of Record Types 303
Purchase Order File Record Descriptions 305
The Control record, see [Link],SQL table name SPMFMSC 305
The Purchase Order Header record, see [Link],SQL table name SPMFORDddd 306
The Goods Received Note Header record, see [Link], SQL table name
SPMFGRNddd 308
The Invoice Header record, see [Link], SQL table name SPMFINVddd 310
The Order/Invoice Detail record, see [Link], SQL table name SPMFDETddd 312
The Order Issue Stage record, see [Link] SQL table name SPMFDTOddd 318
The Goods Receipt Stage record, see [Link] SQL table name SPMFDTGddd 324
The Unapproved Invoice Stage record, see [Link] SQL table name SPMFDTIddd 330
The Sales History File 336
Description 336
Summary of Record Types 336
The Control record, see [Link], SQL table name SOHFMSC 337
The Usage record, see [Link], SQL table name SOHFOHFddd 338
The Purchase History File 340
Description 340
Summary of Record Types 340
The Control record, see [Link], SQL table name SPHFMSC 341
The Balance record, see [Link], SQL table name SPHFPHFddd 342
The Reference Audit File 344
Description 344
The Reference Audit record, see [Link] 345

SunSystems 4 – Technical Reference Manual Page 8 of 455


The SunBusiness Transfer File 347
Description 347
Summary of Record Types 347
The Transaction record, see [Link], SQL table name SBTRTRNddd or
SPTRTRNddd 348
The Control record for the SunBusiness Transfer File, see [Link], SQL table
name SBTRMSC 351
The Control record for the Purchase Commitment File, SQL table name SPTRMSC 352
The SunAccount Bank Payment File 353
Description 353
Summary of Record Types 353
Bank Payments file record description 354
The SunAccount Payment File 355
Description 355
Summary of Record Types 355
Payment File record descriptions see [Link] 356
The Control record, type ‘C’ 357
The Account Header record, type ‘A’ 359
The Detail record, type ‘D’ 360
The Total Discount record, type ‘Z’ 361
The SunAccount Journal Hold File 363
Description 363
Summary of Record Types 363
The Standard Record, see [Link] 365
The Journal Control Record, see [Link] 366
The Analysis Record, see [Link] 369
The Transaction Control Record, see [Link] 370
The Transaction Line Record, see [Link] 371
The Split record, see [Link] 373
The Amendment record, see [Link] 374
The Period Record, see [Link] 375
The Query Record 1, see [Link] 376
The Query record 2, see [Link] 377
The Query Record 3, see [Link] 378
The Query record 4, see [Link] 379
The Query 5 record, see [Link] 380
The Journal Hold Control Record, see [Link] 381
The Journal Hold Version Record, see [Link] 382
The Journal Hold Actual/Budget Record, see [Link] 383
The Journal Hold Journal Record, see [Link] 384
The Purchase Import File 386
Description 386
Summary of Record 386
The Purchase Import Order Header record, see [Link] 387
The Purchase Import Order Detail record, see [Link] 388
The Purchase Import Order Description record, see [Link] 389
The Purchase Import GRN Header record, see [Link] 390
The Purchase Import GRN Detail record, see [Link] 391
The Purchase Import Invoice Header record, see [Link] 392
The Purchase Import Invoice Detail record, see [Link] 393
The Purchase Import Direct Invoice Header record, see [Link] 394
The Purchase Import Direct Invoice Detail record, see [Link] 395
The Purchase Import Direct Invoice Description record, see [Link] 396

SunSystems 4 – Technical Reference Manual Page 9 of 455


Appendix C: SunSystems Backup Files 397
The Reference Backup File 397
Description 397
Summary of Record Types 397
Reference Backup File Record Descriptions 397
The Ledger, Budget and Archive Backup File 397
Description 397
Summary of Record Types 397
Ledger Backup File Record Descriptions 398
The Transaction Backup Record 398
The Control Backup Record 399
Version 4.0 399
The Sales Order Backup File 401
Description 401
Summary of Record Types 401
Sales Order Backup File Record Descriptions 401
The Sales Order/Invoice Header Backup Record 401
The Sales Order Detail Backup Record 403
The Sales Order Detail Extra Backup Record 404
The Movement File 405
Description 405
Summary of Record Types 405
Movement Backup File Record Descriptions 405
The Control Backup Record 405
The Movement Backup Record 405
The Stock Take Backup File 407
Description 407
Stock Take Backup File Record Descriptions 407
The Control Backup Record 407
The Stock Take Header Backup Record 407
The Stock Take Detail Backup Record 408
The Purchase Order Backup File 409
Description 409
Summary of Record Types 409
Purchase Order Backup File Record Descriptions 409
The Control Backup Record 409
The Purchase Order Header Backup Record 410
The Goods Received Note Header Backup Record 411
The Purchase Invoice Header Backup Record 412
The Purchase Order Detail Backup Record 413
The Sales History Backup File 415
Description 415
Summary of Record Types 415
Sales History Backup File Record Descriptions 415
Sales History Usage Backup Record 415
The Purchase History Backup File 416
Description 416
Summary of Record Types 416
Purchase History Backup File Record Descriptions 416
The Balance Backup Record 416

SunSystems 4 – Technical Reference Manual Page 10 of 455


The Journal Hold Backup File 417
Description 417
Summary of Record Types 417
Journal Hold File Record Descriptions 417
The Standard Backup Record 417
The Journal Control Backup Record 418
The Analysis Backup Record 419
The Transaction Control Backup Record 419
The Transaction Line Record 420
The Period Backup Record 421
The Journal Hold Version Backup Record 421
The Journal Hold Control Backup Record 421
The Journal Hold Journal Backup Record 422
Appendix D: Import Records 423
Movement Import 423
Movement Import Batch Control Record 423
Movement Import Detail Record 423
Purchase Import 425
Purchase Import Header/Detail/Text Records 425
Goods Received Header/Detail Records 432
Purchase Invoice Header/Detail Records 434
Direct Purchase Import Header/Detail/Text Records 438
Sales Import 445
Sales Import Batch Control Record 445
Sales Import Header Record 447
Sales Import Detail Record 448
Sales Import Description Record 450
Sun Account Transfer File 452
Journal Import Record 452
Appendix E: Limits in SunSystems 454
Journal Import 454
Ledger Revaluation 454
Account Listing 454
Account Inquiry and Account Allocation 454
Financial Tables 454
Purchase Order Processing 454
Sales Order Processing 454
Inventory Control 454
Stock Take 454
Standard Macro Definition Format 454
File Size Limits 455
MS DOS/MS Windows 455
Btrieve 455
UNIX 455

SunSystems 4 – Technical Reference Manual Page 11 of 455


Technical Reference Manual
Preface

The Technical Reference Manual is largely concerned with the internal workings of SunSystems:
SunAccount and SunBusiness. It documents detailed aspects of the software that are not covered
in the SunAccount or SunBusiness Reference Manuals.
The manual is written at a technical level and is directed at SunSystems suppliers. Some end
users, however, may find its contents helpful. This manual covers all SunSystems hardware
environments and operating systems. Where relevant, there are references to specific hardware
environments.
Note: The information in this manual can be used to enhance SunSystems. If you are not
careful, the information could also render your system unusable.
You must make regular backups of files.

SunSystems 4 – Technical Reference Manual Page 12 of 455


Technical Reference Manual
Introduction

The SunSystems Technical Reference Manual is designed to assist you in the following ways:
• It explains the internal workings of SunSystems, so you can gain an understanding of the
flexibility of the software, and so ensure more efficient trouble shooting
• It explains how to establish interfaces to other systems by reading and writing to backup
and transfer files
• It enables you to customise SunSystems, particularly by modifying screens and print
formats, and by storing your own data items on reference files
The manual is written for technical users of SunSystems. It assumes familiarity with standard
computing procedures and techniques and uses computer terminology. Users of SunSystems will
find the information they require in the SunAccount and SunBusiness manuals.
The Technical Reference Manual avoids duplicating the information found in the SunAccount and
SunBusiness manuals so there are frequent references to those manuals. The SunAccount and
SunBusiness suites of manuals comprise the following:
• Reference Manual
• Appreciation Guide
SunSystems Platform Manuals are provided to assist you with installing SunSystems. There are
platform manuals for every operating environment. It is recommended that the Technical
Reference Manual is used in conjunction with the appropriate platform manual. Introduction

Overview
The section System Overview describes the structure of SunSystems and the functions of the
different programs:
• Control program
• Kernel programs
• Utility programs
• Application programs.
The section Naming Conventions describes the conventions used when naming program and
data files.
The section Screens and Menus introduces the SunSystems screen template, the design
standards, and how screens can be created and amended using the Template Editor. Finally, the
SunSystems screen messages and help text are discussed.
The section Reference Maintenance outlines the design of the SunSystems master file, called the
reference file. It outlines the design standards applied to all types of reference records, and how
new types of reference records can be defined. Finally, reference transfer is described, which
enables reference file records to be imported and exported.
The section Printed Output describes how the printed output of SunSystems can be tailored. This
includes report headings and documents produced via RD=Report Definition.
The section User Hooks describes how to use the ‘user hook’ facilities in reference maintenance,
JE=Journal Entry/JI=Journal Import, SE=Sales Order Entry, SI=Sales Order Import, PE=Purchase
Order Entry and PI=Purchase Import. It also describes how to call JI=Journal Import and post
journals through this function without gaining direct access.

SunSystems 4 – Technical Reference Manual Page 13 of 455


The section Concealed System Features documents the functions that are not listed on any
screen, but which may be useful in certain circumstances. This includes, for example, the option
to Post or Report an unbalanced journal.
The section Data Dictionary and Report Definition introduces the data dictionary maintenance
functions.
The appendices contain data file definitions for all master and backup data files.

Types and Versions of COBOL


SunSystems is written in ANSI (American National Standards Institute) COBOL. Different COBOL
versions are used in different operating environments:
• Micro Focus COBOL/2 (Micro Focus Ltd)
• VAX COBOL (Digital Equipment Corp).
The syntax of these COBOL versions is very similar but by no means identical. They all conform
to the ANSI standard. There are, however, aspects of COBOL which are not covered by this
standard, and it is in these areas that the COBOL versions differ. So if you write additional
programs to interface directly with SunSystems you must use the same version of the COBOL
language as used by your current version of SunSystems. Please contact your supplier to
determine which COBOL language and version you should use.
For UNIX users, it is important that the same version of COBOL is used. The version can be
checked by listing the file called cobver:
$SUNDIR/lib/cobol/cobver
where $SUNDIR is the SunSystems program directory.

Making Changes
References are made throughout this manual to ‘making amendments to text files’.
For example:
• To COBOL program source files (see the section Printed Output)
• To backup data files (see the appendices)
• To screen layouts (see the section Screens and Menus).
Changes can be made to text files using a word processor as long as it does not insert special
control characters. A word processor is particularly beneficial when global changes are required.
You are advised to document all file amendments. This is not just good practice, it is an essential
source of information if you upgrade to a new version of SunSystems, when your amendments
will have to be reapplied.

SunSystems 4 – Technical Reference Manual Page 14 of 455


Technical Reference Manual
System Overview

The Structure of SunSystems


This section describes in broad terms the structure of SunSystems and the way the system
works. The system may be divided into the following areas:
• The control program
• The kernel programs
• The utility programs
• The application programs.
The following diagrams represent the relationship between these areas.

SunSystems
Control
Program
SSMM

File
Screen Report
Handler SunSystems SunAccount SunBusiness SunSystems
Handler Handler
Control Utilities Applications Applications Applications
SSSH35 SSRH
SSFH

Kernel Programs Utilities Application Programs


These programs will be loaded into main A suite of These programs are cancelled on program exit.
memory by SSMM. programs which They are not memory resident.
Exceptions are sub-modules not required in a perform
particular system. miscellaneous
For example: Inventory Movement File Handler tasks throughout
is not used by Asset Register. the system.

SunSystems 4 – Technical Reference Manual Page 15 of 455


SunSystems
Handler
Control
SSSH35

CUI
Panels Thin Client
Accept & Query
Calls Host
Display SSSHQY
SSHPN SSSHHOST
SSSHAD

This program is only used in


character versions of SunSystems
GUI Thin Client
FreeFormat
Display Terminal
SSSHFF
SSSHGD SSSHTERM

These programs are only used by


graphic thin client versions of SunSystems
GUI Miscellaneous
Accept Functions
SSSHGA SSSHMF

GUI Accept for


Macro
Report
File Handler
Definition
SSSHPH
SSSHGRD

These programs are common


to all versions of SunSystems
GUI
Logon Routine
SSSHGL

GUI
Miscellaneous
Functions
SSSHGM

These programs are only used in


graphic versions of SunSystems

The Control Program


The control programs:
• [Link] (DOS and VAX)
• [Link] (Windows)
• SUNPM (OS/2)
• [Link] (UNIX)
are the driving programs of the system. They display the SunSystems menu and control all calls
to other functions on that menu.
They are the only programs loaded directly from the operating system.

SunSystems 4 – Technical Reference Manual Page 16 of 455


The Application Programs
There is an application program for each function you can select in SunSystems. The application
program is called by the control program. For example, [Link] is the application program that
provides LR=Ledger Revaluation in SunAccount.
The naming conventions for these programs are described in the section Naming Conventions.
It is possible to remove applications from the menus by editing the relevant menu templates
(SSMM01, SAMM01, SFMM01, SCMM01, SOMM01, SMMM01, SPMM01) using the Template
Editor (SZTE) program, described in the section Screens and Menus.

The Kernel Programs


When an operator invokes SunSystems, the kernel programs are loaded by the control program
SSMM. They act as service programs to the rest of SunSystems. Once loaded, they remain in
memory until SunSystems is closed down.
There are the following kernel programs:
• The Screen Handler (SSSH35) invokes the Accept/Display module (SSSHAD) to accept
operator input and display text and data on the screen. If running SunSystems in a GUI
(Graphical User Interface) environment, the panels screenhandler SSSHPN is used.
Additionally, it invokes:
• HELP (SSSHMF)
• CALCULATOR (SSSHMF)
• SHORTHAND (SSSHFF)
• FREEFORMAT (SSSHFF), and
• QUERY (SSSHQY).
It may also invoke:
• ACCEPT (SSSHGA under a GUI environment)
• LOGIN (SSSHGL under a GUI environment)
• MISC. (SSSHGM under a GUI environment)
• DISPLAY (SSSHGD under a GUI environment)
• ACCEPT & DISPLAY (SSSHGRD under a GUI environment for report definition)
These modules are automatically invoked when an application requests input. An application
program is not aware that HELP, CALCULATOR, FREEFORMAT, or QUERY are in use.
• The File Handler (SSFH) and its sub-modules control all access to SunSystems
permanent data and print files. An access can be any file statement, for example OPEN,
READ ON KEY or START. Though the file handler does not control file access to
temporary, local work files, it can supply a name for these files. Should an error occur
during the processing of such a work file, the file handler can provide a suitable error
message.
• The Report Handler (SSRH) controls production of reports by providing report headings
and report text.

SunSystems 4 – Technical Reference Manual Page 17 of 455


The Screen Handler Sub-Modules
The Screen Handler (SSSH35) provides an interface between the application programs and a
number of modules associated with the screen and keyboard. SSSH35 invokes SSSHAD to
accept operator input and, depending on the input, may invoke:
• SSSHMF to handle HELP and CALCULATOR
• SSSHFF to handle FREEFORMAT and SHORTHAND
• SSSHFH to record operator input for FREEFORMAT
• SSSHQY to handle a QUERY request.
Accept/Display (SSSHAD, SSSHPN) controls all interfaces to screens using standard
SunSystems templates. These conform to certain standards. They are set up by the SunSystems
Template Editor (SZTE), which is described in the section Screens and Menus.
HELP and CALCULATOR (SSSHMF) is invoked by SSSH35 when an operator requests the use
of HELP or CALCULATOR.
FREEFORMAT and SHORTHAND (SSSHFF) is invoked by SSSH35 when an operator requests
FREEFORMAT and SHORTHAND.
FREEFORMAT File Handler (SSSHFH) is a low-level module used to learn or run FreeFormat
macros.
QUERY (SSSHQY) is invoked by SSSH35 when an operator enters the query character in a
reference box.

The File Handler Sub-Modules


The File Handler (SSFH) is used for access to all SunSystems permanent data files and print
files. There is a separate file handler module for each type of data file. The file handler is also
used for naming temporary work files, and for formatting standard error messages:
• The File Handler Common Routines (SSFHCR) is invoked by SSFH when a work
filename is required, an error message is to be formatted, or a file is to be cleared. It is
also used to check that a file or program exists
• Specific File Handler modules (SSFH??) are invoked by SSFH when a program requires
access to one of the SunSystems permanent data files. The module is named according
to the data file it uses. There is one module for each data file. The last two characters of
the module name depend on the data file that the module uses. The following modules
exist:
SSFHDD Data Dictionary File Handler
SSFHIN Installation File Handler
SSFHKF Stock Take File Handler
SSFHLB Balance File Handler
SSFHLF Ledger File Handler
SSFHLH Archive File Handler
SSFHLP Print File Handler
SSFHMF Movement File Handler
SSFHOF Sales Order File Handler
SSFHPC Purchase Order File Handler (for “C” record types)
SSFHPF Purchase Order File Handler (for entire P.O.P file)
SSFHPJ Purchase Order File Handler (for “J” record types)

SunSystems 4 – Technical Reference Manual Page 18 of 455


SSFHPK Purchase Order File Handler (for “K” record types)
SSFHPL Purchase Order File Handler (for “L” record types)
SSFHPM Purchase Order File Handler (for “M” record types)
SSFHPN Purchase Order File Handler (for “N” record types)
SSFHPO Purchase Order File Handler (for “O” record types)
SSFHPP Purchase Order File Handler (for “P” record types)
SSFHPS Purchase Order File Handler (for “S” record types)
SSFHQF Journal Hold File Handler
SSFHRA Reference Audit File Handler
SSFHRE Report File Handler
SSFHRF Reference File Handler
SSFHTR SunBusiness Transfer File Handler
The following file handler modules can only be found in the SQL server version of SunSystems:
SSFHHF Sales Order History File
SSFHPY Payment File Handler
SSFHPU Purchase Order History File Handler

The Utility Programs


The utility programs perform a number of miscellaneous tasks:
• The Special Functions program (SSSF) controls the CP=Change Printer, CD=Change
Database, and terminal functions. It switches file logging on and off, and performs various
other housekeeping functions. It also validates passwords when logging in and sets up
some system parameters.
• The Reference Maintenance programs (SSRU, SSRR, SSRT and SSRA) control the
updating, reporting, auditing and transfer of master data on the reference file. The
Reference Maintenance section of this manual gives more details on these programs.
• The Report Handling programs (SSRD and SSRF) provide a standard means of report
design and production.
• The Database Management programs (SSFC, SSFB and SSFB??) control the creation,
backup and recovery of files.
• The Terminal Definition program (SSTD) enables the operator to define attributes for the
terminal in use. For example, the colour, width, etc. This is described in detail in the
Terminal Definitions section of the SunAccount and SunBusiness Reference Manuals (for
DOS only).
• The Operator Permissions program (SSOP) can be used to control the functions,
databases, and accounts within SunSystems that an operator can have access to. This is
described in detail in the Operator Permissions section of the SunAccount and
SunBusiness Reference Manuals.
• The View Report program (SSVR) enables the operator to look at reports that have been
Stored on Disk, rather than printed directly. See the section View Stored Reports in the
SunAccount and SunBusiness Reference Manuals.
• The Analysis Category Length program (SSNL) enables the operator to amend the
lengths of analysis codes within database code and category. These lengths are
maintained in the data dictionary.

SunSystems 4 – Technical Reference Manual Page 19 of 455


Technical Reference Manual
Naming Conventions

File Types
Broadly speaking there are two file types:
• Program files that hold instructions or parameters governing the way the system
operates. These files are not updated by SunSystems but have read only access.
• Data files that hold data such as transactions or account details. These files have
read/write access.
Each of these categories can be divided further into the following file types:
SunSystems uses the following types of program files:
Source files
Copy files
Compiled program files
System load files
Template file
Message files
Layout files
Report heading files
Run time system files
Transfer layout files
Help text files.
The first two characters of a program file will be:
SA SunAccount specific programs
SF Asset Register specific programs
SC Corporate Allocations specific programs
SO Sales Order Processing specific programs
SM Inventory Control specific programs
SP Purchase Order Processing specific programs
SB Sales Order Processing, Inventory Control and Purchase Order Processing programs
SS SunSystems specific programs
SZ Utility programs.
Some ‘SA’ files may also be used by AR=Asset Register and CO=Corporate Allocations.
SunSystems data files can be divided into the following types:
Permanent indexed files
Permanent non-indexed files
Temporary indexed work files
Temporary non-indexed work files
Stored print files
Backup files
Archive files
Transfer files
Audit files
FREEFORMAT macro files.

SunSystems 4 – Technical Reference Manual Page 20 of 455


Program File Naming
Source Files
Program source files contain the COBOL code, as written by the authors of SunSystems. These
files must be compiled before they can be used to perform their respective functions.
They are named [Link] where:
x is the system: S=SunSystems
A=Ledger Accounting
F=Asset Register
C=Corporate Allocations
O=Sales Order Processing
M=Inventory Control
P=Purchase Order Processing
B=Common to SunBusiness
Z=SunSystems Utilities.
yy usually reflects the program function code, for example, SAJL is the program name for the
function JL=Journal Listing.
zz are optional characters used to distinguish between variants of the same program.
Examples
[Link] SunAccount Journal Listing
[Link] SunBusiness Inventory Allocation
[Link] SunSystems File Handler
[Link] SunSystems Journal Hold File Backup/Restore.

Copy Files
Copy files contain COBOL code which is used throughout SunSystems. They can contain
different types of code. For example:
File Record Layouts
Standard working-storage section
Standard linkage section
Common processing (e.g. date conversion).
Copy files are named [Link] where:
x is the system: S=SunSystems
A=Ledger Accounting
F=Asset Register
C=Corporate Allocations
O=Sales Order Processing
M=Inventory Control
P=Purchase Order Processing
B=Common to SunBusiness.
cccccc is a meaningful name for the COPY statements contained therein.

SunSystems 4 – Technical Reference Manual Page 21 of 455


Examples
[Link] Ledger Backup Record Layout
[Link] Ledger File Record Layout
[Link] Payment File Record Layout
[Link] Spread Ratio Reference Record Layout
[Link] Asset Diary Reference Record Layout
[Link] Asset Value Reference Record Layout
[Link] Inventory Movements Backup Record Layout
[Link] Inventory Movements File Record Layout
[Link] Movement Definitions Reference Record Layout
[Link] SOP History Backup Record Layout
[Link] SOP History File Record Layout
[Link] SOP Transactions Backup Record Layout
[Link] SOP Current Data Master File Record Layout
[Link] SOP Order Detail Presets Reference Record Layout
[Link] POP History File Backup Record Layout
[Link] POP History File Record Layout
[Link] POP Transactions Backup Record Layout
[Link] POP Current Data Master File Record Layout
[Link] Unit Conversion Table Reference Record Layout
[Link] Install File Record Layouts
[Link] Analysis Definitions Reference Record Layout.

Compiled Program Files


The source files are compiled by a COBOL language compiler to produce object files. Depending
on the version of the COBOL language used, the object code may be intermediate code or native
code (or Unlinked Object and Linked Object). Native code is closer to the natural language of the
computer hardware, and consequently will run faster.
You will find more details on this subject in the manual for the appropriate COBOL language.
Compiled program files are named [Link] where:
x is the system: S=SunSystems
A=Ledger Accounting
F=Asset Register
C=Corporate Allocations
O=Sales Order Processing
M=Inventory Control
P=Purchase Order Processing
B=Common to SunBusiness
Z=SunSystems Utilities.
yy usually reflects the program function code, for example, JL=Journal Listing.
zz are optional characters used to distinguish between variants of the same program.
ttt will vary according to the COBOL language. For Micro Focus COBOL/2 it is INT for
intermediate code files, and GNT for native code files.
Examples
[Link] SunAccount JE=Journal Entry (intermediate code)
[Link] Native code version of JL=Journal Listing
[Link] Reference FB=File Backup/Restore native code.

SunSystems 4 – Technical Reference Manual Page 22 of 455


System Load Files
System load files are invoked when you start to use SunSystems. The name depends on the
operating system.
For Micro Focus COBOL/2 and for VAX COBOL the system load file is called [Link]. On UNIX
systems, the file is called SSMM.

Template File
Templates or screens, that is the screen layouts displayed during the operation of SunSystems,
are all stored in the template file. More information on this can be found in the section Screens
and Menus, which also describes how to use the Template Editor (SZTE) to create and amend
screens.
The template file is an indexed sequential file named SS??[Link]/IDX, though this will vary
according to the operating system being used. ?? represents the language version where:
01=English
33=French
34=Spanish
49=German.
Each screen in SunSystems has its own template entry in the template file. Individual templates
are named as follows:
Sxyynn where:
x is the system: S=SunSystems
A=Ledger Accounting
F=Asset Register
C=Corporate Allocations
O=Sales Order Processing
M=Inventory Control
P=Purchase Order Processing
B=Common to SunBusiness.
yy usually reflects the program function code, for example, JL=Journal Listing.
nn reflects the template number, which can be any two digit number.
Examples
SSRD38 Report Definition control parameters screen
SALR39 Ledger Revaluation request screen.

Message Files
Message files are described in the section Screens and Menus.
They are relative files called [Link] where:
x is the system: S=SunSystems
A=SunAccount
B=SunBusiness.
nn represents the language version where:
01=English
33=French
34=Spanish
49=German.

SunSystems 4 – Technical Reference Manual Page 23 of 455


Examples
[Link] SunBusiness French Screen Messages file
[Link] SunAccount English Screen Messages file.

Layout Files
The reference maintenance layout files are described in the section Reference Maintenance.
The reference maintenance layout files define the different reference file record types and are
named as follows:
[Link] where:
x is the system: S=SunSystems
A=Ledger Accounting
F=Asset Register
C=Corporate Allocations
O=Sales Order Processing
M=Inventory Control
P=Purchase Order Processing
B=Common to SunBusiness.
nn represents the language version where:
01=English
33=French
34=Spanish
49=German.

Report: Heading Files


These are named SxnnHEAD where:
x is the system: S=SunSystems
A=Ledger Accounting
F=Asset Register
C=Corporate Allocations
P=Purchase Order Processing
B=Sales Order Processing/Inventory Control.
nn represents the language version where:
01=English
33=French
34=Spanish
49=German.
Example
SA01HEAD SunAccount English Report Headings.

SunSystems 4 – Technical Reference Manual Page 24 of 455


Run Time System Files
The Run Time System (RTS) is necessary for most, though not all, operating environments. It is
provided by the supplier of the COBOL language and comprises a collection of files which run
programs by reading through intermediate and native code files, and carrying out instructions.
There is a different run time system for each environment. Consequently, the files will vary. For
example, the Micro Focus COBOL/2 files for PC based platforms are [Link] and
[Link]. The UNIX run time system files are beneath:
$SUNDIR/lib/cobol
More information on this can be found in the Platform Manual.

Data File Naming


Master Files
SunSystems master files are mostly indexed sequential files. Indexed sequential files often
comprise two physical files: one file to hold data records, and the other to hold the index, which is
used to gain access to a particular record of data.
Permanent files are named [Link] where:
x is the system: S=SunSystems
A=Ledger Accounting
F=Asset Register
C=Corporate Allocations
O=Sales Order Processing
M=Inventory Control
P=Purchase Order Processing
B=Common to SunBusiness.
d is the type of data being held, for example, L-Ledger, T-Transaction.
aaa is the database code, for example, DEM-Demonstration Database.
ttt is often DAT for the data file, and IDX for the index file.
With certain operating systems the index and the data are held in the same file. When copying
such files, the DAT and any IDX files should always be copied together. See the Platform Manual
for more information.
Examples
[Link] Installation File
[Link]
[Link] Reference File
[Link]
[Link] Ledger File
[Link]
[Link] Balance File
[Link]

SunSystems 4 – Technical Reference Manual Page 25 of 455


Temporary Work Files: Indexed and Non-Indexed
Indexed sequential work files are named [Link] where:
x is the system: S=SunSystems
A=Ledger Accounting
F=Asset Register
C=Corporate Allocations
O=Sales Order Processing
M=Inventory Control
P=Purchase Order Processing
B=Common to SunBusiness.
yy is usually the program function code, for example, JL=Journal Listing.
iii is the operator Id.
ttt is DAT for the data file, and IDX for the index file.
Example
[Link] Journal Listing Work File for operator ABC.
[Link]
Other work files that are not indexed sequential files are named [Link] where:
x is the system S=SunSystems
A=Ledger Accounting
F=Asset Register
C=Corporate Allocations
O=Sales Order Processing
M=Inventory Control
P=Purchase Order Processing
B=Common to SunBusiness.
yy is usually the program function code, for example, JL=Journal Listing.
aaa is the database code, for example, DEM-Demonstration Database.
iii is the operator Id.
Example
[Link] Sales Entry Work File for operator ABC.

SunSystems 4 – Technical Reference Manual Page 26 of 455


Stored Print Files
The convention used for stored print filenames is [Link] where:
yy is the program function code, for example, JL=Journal Listing.
iii is the operator Id (omitted in single user and PC network environments).
nn is an optional two digit number (1-99), used to establish a unique filename.
It may be necessary to extend the conventions described previously, in order to identify files more
positively. For example, in SunAccount, JL=Journal Listings and FA=Financial
Analysis/FS=Financial Statements have longer filenames to represent the file content more fully:

Single user and PC networks Multi-user


Ordinary Print [Link] [Link]
Forced Journal Print [Link] [Link]
Financial Analysis/Statement [Link] [Link]

where:
yy is the menu selection
nn is an optional number to make the filename unique
mmmmm is the journal number
lllll is the layout code
iii is the operator Id.
In the case of spooled prints, the file naming convention should be as described previously except
the suffix .SPL is used instead of .PRN.

Backup Files
The backup versions of all files retain the prefix of the permanent (data) filenames, and are
suffixed with .BAK. Backup files have no indexes, and therefore there is no index file. These files
contain only displayable characters, i.e. numeric fields are not held in any compressed form.
Examples
[Link] Ledger Backup File
[Link] Reference Backup File
[Link] Installation Backup File
[Link] Report Backup File.

SunSystems 4 – Technical Reference Manual Page 27 of 455


Archive Files
If Ledger Archiving is set to Y-Yes in LD=Ledger Definition, the SunAccount PC=Period
Cleardown function removes relevant transaction details to an archive file. The SunAccount
archive files are indexed files. They have the same format as the main ledger file and can be
backed up using FB=File Backup/Restore.
The standard name for a SunAccount archive file is [Link] (and .IDX)where:
yy is the year, for example, 91.
aaa is the database code for example, DEM-Demonstration Database.
By using a concealed system feature, described in the subsection Installation Parameters in the
section Concealed System Features, SunBusiness transactions destined for deletion at
PC=Period Cleardown can also be written to archive files.
The SunBusiness archive files are held in backup format.
Examples
[Link] Ledger archive file for 1990
[Link]
[Link] Sales Order archive file
[Link] Movements archive file
[Link] Purchase Order archive file.

Transfer Files
The SunBusiness Transfer File (SBF format) for database code aaa has a default name of SBTR-
[Link]. Import files used by the SunAccount JI=Journal Import function can have any name.
Data files that are output when using particular transfer functions adopt a particular format and
are suffixed according to the output format.
The standard name for the output file, created when using a transfer format in SunAccount
financial reports, is [Link] where:
lllll is the financial statement/analysis/table layout code.
ttt is the type of format.
The standard name for the output file created when using a transfer format in SunBusiness
reports is [Link] where:
lllll is the Movement/Sales Analysis Layout code.
ttt is the type of format.
The standard name for an output file when using reference maintenance Transfer (see the
Reference Maintenance section) is [Link] where:
x is the system: A=Ledger Accounting
F=Asset Register
C=Corporate Allocations
O=Sales Order Processing
M=Inventory Control
P=Purchase Order Processing.
zz is the reference maintenance function.
aaa is the database code.
ttt is the type of format.

SunSystems 4 – Technical Reference Manual Page 28 of 455


Examples
[Link] SunBusiness transfer data file for demonstration database DEM.
[Link]
[Link] A financial statements transfer file, in this case called BS,output in
comma delimited format for, say, Lotus 1-2-3.
[Link] A reference transfer file, created by an export from CA=Chart of
Accounts in Ledger Accounting, comma delimited format.

Audit Files
Reference audit provides a means of monitoring changes to reference data. The function
AC=Audit Control is used to specify the reference records for which audit trails are required. Each
reference record type has its own audit file, which is created if the audit flag for that record type is
set to Y-Yes.
Amendments, additions and deletions to existing records are logged on the appropriate audit file.
The audit data is held in line sequential format.
Audit files are named [Link] where:
aaa is the database code, which in the case of the Install audit file is INS.
ttt is the reference record type. See the subsection Standards for Reference Record
Types in the section Reference Maintenance.
Examples
[Link] Calculation Table Audit File
[Link] nalysis Codes Audit File
[Link] perator Definitions Audit File
[Link] rinter Definitions Audit File.

SunSystems 4 – Technical Reference Manual Page 29 of 455


Technical Reference Manual
Screens and Menus

This section describes how to modify and create screens. You may want to do this in the following
circumstances:
• If you are undertaking a translation to another language
• If you have added fields to a data file
• If you simply wish to change the wording on a screen.
In the section System Overview, the screen handler is described as controlling all interfaces to
screens using screen templates. A template defines the layout and contents of each SunSystems
screen. The definition includes the following characteristics:
• The static text that is to be displayed
• The fields into which you will key data
• Certain validation criteria for those fields (e.g. alpha/numeric)
• The attributes of fields (e.g. justification)
• QUERY details for the fields
• The fields in which the program displays or accepts data
• The position of the fields
• The window definitions for the template (i.e. position, size)
• The valid selections.
The screen handler obeys the instructions coded into a template. The template contains some
validation rules which are used by screen handler; though most validation is done within the
application program after it has called screen handler.
In this section the following areas are covered:
• The rules governing the design of templates
• How the Template Editor (SZTE) may be used to create and change templates
• How to change messages that appear on the screen
• Maintenance of help text.
Please note that if you do change templates or messages, you will have to re-apply the changes
to any updated version of SunSystems. Therefore, you must document all the changes you make.

SunSystems 4 – Technical Reference Manual Page 30 of 455


Standards for Template Design
General Format
SunSystems templates are laid out in the following way:

Column 1.....................……………………...............…….....80
(Line 1) DDDDD...DDDDD
************ Page headings (if relevant) ***********
(Line 3-6) -------------------------------------------------------------------------------------

Body of screen

(Line 20 last Text Line)

where:
DDDDD... is the Template Description or Heading

Screen Layout
The following standards should be observed:
• Never use the top left hand character (Line 1, Col 1 to 3)
• Text on line 1 is always used as the screen-title by screen handler, and the title bar under
a GUI environment. Never define fields on line 1
• If possible leave at least two spaces between a text heading and the field that follows
• Fields should always be aligned as left justified
• Defaults should be aligned as left justified, under the heading ‘Assumption if Blank’
• Lines 20 is the last text line
• As far as possible avoid abbreviations in field names, and use capitals for all significant
words
• Avoid having a field at the end of a line (in position 80), if the first space on the following
line is used for display of text or data.

SunSystems 4 – Technical Reference Manual Page 31 of 455


Numbering of Template Fields
Usually there are fields into which the user will key data, and fields in which the program will
display data. Each of these fields must be defined on the template and given a unique number
which should be allocated, wherever possible, in accordance with the following rules:
• Number fields in ascending sequence from left to right and down the screen
• Number fields consecutively, avoiding gaps in the sequence. Note that wheninitially
loading a template, screen-handler will automatically displayconsecutive fields on the
template until it finds a gap in the field numbers fromfield 1 (e.g. 1, 2, 3....N)
• Always use field number 1 for reference maintenance key fields. If you need
• other fields for key fields, use field numbers 2, 4, 5...
• Use field number 2 (or the first available field number if more than one keyfield is present)
for reference maintenance description fields
• Always use field number 3 for reference maintenance LOOKUP fields
• Do not define fields below line 20
• Do not define a field greater than 149
• Do not define field 80 as this is a special selection field common to all templates.

Grouping of Template Fields


When numbering, GROUP and SEQUENCE numbers must be added to fields used for input. By
giving several fields the same GROUP NUMBER, they will be accepted from the screen as a
group by screen handler under a GUI environment. In other words, data can be entered into any
of these fields, in any order, using the TAB key or a mouse. SunSystems programs will not look at
the data entered into fields in a group until the user signals that the entire group is complete (by
clicking the OK icon, or ALT F7). SEQUENCE NUMBER defines the tab-sequence for these fields
in a group. Both GROUP and SEQUENCE numbers can by any numerical value.
• Key fields are usually held as one group or a separate group from the data referenced
• Any field which requires an explicit display of data after the group fields have been
accepted, should be at the end of a group
• Any field which causes the application program to alter its processing directly after the
field has been accepted, should be at the end of a group
• It is advisable to increment sequence number in tens to allow for later additional fields.

SunSystems 4 – Technical Reference Manual Page 32 of 455


The Template File
All templates are stored on one indexed sequential file called [Link]/ IDX, where nn
represents the language code. See the subsection, Program File Naming in the section Naming
Conventions. This file uses ‘data compression’ to save disk space. There are up to six record
types for each template. They are:
Type ‘S’ records which hold information regarding routing selections
Type ‘T’ record which holds the static text that is displayed on the screen
Type ‘Q’ record which holds the QUERY definitions
Type ‘P’ record which holds field parameters
Type ‘A’ record which holds valid Action selection information for the Templates
Type ‘W’ record that holds any window definitions if they exist for the template
Type ‘D’ record that holds local action responses and descriptions referenced by action
codes in the 231-250 range (please note that this applies from version 4.1.3 onwards).
This file is indexed by Template Name and Record Type, and is updated using the Template
Editor program described below.

The Template Editor


The Template Editor is a program called SZTE which may be used to create, amend, examine or
print SunSystems templates. All SunSystems templates are stored in the template file. SZTE may
also be used to backup/restore a range of templates and to delete templates from the file.
This section describes how to use SZTE. SZTE is not part of the standard SunSystems issue, but
is issued along with other SunSystems SunUtils with this manual. Use of the wrong version can
corrupt files.
The Journal Import template SATF17 is used in the examples which follow.

How to Use the Template Editor SZTE


Your screen should be showing the symbol that it is ready to accept commands from you. To use
SZTE, you should enter one of the following:
either SZTE
or RUN SZTE
or if a non-English file SZTE , , nn
or on UNIX szrun SZTE
or on VAX:
Under OpenVMS, in order to be able to type SZTE at the OpenVMS prompt, it is
necessary to set up a symbol name as follows:
$ SZTE :== “$ $DISK1:(SUN42)[Link]”
where $DISK1:(SUN42) is the name of the disk/directory where the SunSystems
programs reside.

SunSystems 4 – Technical Reference Manual Page 33 of 455


You are asked for the name of the template to be processed. Enter the six-character name of the
required template. See the subsection Program File Naming in the section Naming Conventions.
TEMPLATE FILE NAME (! TO EXIT) _
If the template is found, it is loaded into memory and displayed. If not, you are asked to confirm
that a new template will be created:
TEMPLATE FILE NAME (! TO EXIT) _ NEW FILE? (Y/N)
If the template file itself ([Link]/IDX) is not found, you are asked if you would like to
create a new one:
ERROR OPENING TEMPLATE FILE, CREATE NEW ONE (Y/N)?
If you are not sure which template you require, then a listing of available templates may be
obtained by using wildcard characters. The list will also indicate which records exist on each
template. The template name will be displayed with:
P if Parameter records exist
Q if Query records exist
S for Selection records
T for Text records
W for Window records.
If you suffix the wildcard template name with one of the characters P, Q, S, T or W, then only the
templates that have that record type will be shown. For example, SA????Q will display all
templates that begin with SA and have QUERY records.
If the wildcard character is suffixed by T, then the listing will include text from the first text line of
the templates.
Say you selected SATF17, then the following screen would appear:

You are offered a number of options at the bottom of the screen:

SunSystems 4 – Technical Reference Manual Page 34 of 455


P-Print
This option prints the details of the template which is currently loaded. It prints the template text
followed by a list of the actions defined on the template, the field parameters and routing
selections defined (on menus), and then a list of the query window definitions, and window
definitions.
You are asked for the printer device (default LST:), or you may overwrite this with a disk file name
so that the report is Stored on Disk.

B-Backup
This option is used to extract template details to a text file. The format of the backup file is
described below. You are offered different record types to backup, i.e. SELE records, TEXT
records, etc.

R-Restore
This option is used to restore template details from a text file containing records in backup format
(described below). Again you are offered different record types to restore. Note that existing
records for that template are deleted first, before the restore process (for those record types you
have selected) begins.
The format of the backup file is:
Bytes 1-8 template name
Bytes 7-8 pop up window number
Byte 9 record type:
S-Selections
T-Text
Q-Query Definitions
A-Actions
D-Local Actions
P-Field Parameters
W-Window Definitions.
Bytes 10-92 backup data as follows:
Record type ‘S’:
Bytes 9-64 SELE data.
There will be one selections backup record per SELE (menu routing parameter) defined on the
template.
Record type ‘T’:
Bytes 10-11 text line number
Bytes 12-91 template text.

SunSystems 4 – Technical Reference Manual Page 35 of 455


There will be one text backup record per non-blank line of text defined on the template.
Record type ‘A’:
Bytes 10-11 action slot number
Bytes 12-75 8 x actions (each 2 x 4-byte action numbers).
Actions are backed up onto a maximum of eight records which contain eight actions each.
Record type ‘D’: (version 4.1.4 onwards)
Bytes 10-11 First local action slot number of this record
Bytes 12-91 4 x 20-byte local actions, each consisting of response (2 bytes),
and description (18 bytes).
Local actions are backed up onto a maximum of five records, each containing four local action
slots. Although action codes in the range 231-250 may be entered via the template editor
currently, their respective local action description records must be entered and maintained within
the backed up version of template using a text editor. In other words, where a type ‘A’ record
contained the action code entries 232 and 234, the type ‘D’ record must be entered as follows:
SATF17 D02T Local action two F Local action four
where SATF17 represents the template name
‘D’ represents the record type
‘02’ identifies the first record slot as local action 2, the first block of 20
bytes is local action 02 response and description, the second block of 20
bytes is blank as 233 is not used in this example, and the third block of 20
bytes is local action 04 response and description.
Record type ‘P’:
Bytes 1012 field number of the first field on this line
Bytes 13-84 4 x 18-byte field parameters. Each consisting of size (2 bytes),
position (4 bytes), type (1 byte), justification (1 byte), display
(1 byte), overlay (1 byte), group (3 bytes), sequence (5 bytes).
There is one backup record for every four field parameters, with a start-slot-number stored on
each record so that you know which eight field parameters are on the record. The record is
created only if those four parameters exist (as there may be gaps in the fields defined).
Record type ‘Q’:
Bytes 10-71 Query data.
There will be one query backup record per query defined on the template, if query data exists.
Record type ‘W’:
Bytes 1012 Window start slot number
Bytes 13-92 10 x 8-byte windows definitions.
There is one backup record for every ten window definitions, with a start-slot-number stored on
each record so you know which ten are on the record (as there may be gaps in the window
definitions table).

SunSystems 4 – Technical Reference Manual Page 36 of 455


N-New
This option is used to load a different template into memory. You will be asked for the name of the
new template.

X-Exit
This option enables you to exit from template editor, back to the operating system.
Note that the ESCAPE key can also be used here. (On UNIX systems ESCAPE must be entered
twice). OpenVMS uses F11.

D-Delete
Select this option if you want to delete all records for the current template from the template file.

E-Edit
This option enables you to change to the Edit mode, ready for making changes to the template.
The Edit options are displayed at the foot of the screen shown below:

E-End
End returns control to the main template menu, saving the current edited version of the template,
and overwriting any existing previous version.

A-Abort
Abort returns control to the main template menu, without saving any changes you may have
made. Note that the ESCAPE key can also be used here (on UNIX systems ESCAPE must be
entered twice, or F11 on OpenVMS). However ESCAPE will not cause the changes to be lost; if you
enter Edit again, the changes you have made in this run are still held.

SunSystems 4 – Technical Reference Manual Page 37 of 455


T-Template
This option is used for editing the static text. The cursor is placed at column 1 of line 1 and you
may insert, amend, or delete the static text on the screen. In the example above, the static text
includes everything to (but not including) line 22.
From the 4.1.4 GUI version of SunSystems, a proportional font is used. For this reason, text may
not line up. You can use ‘|’ pipes to ensure that text is aligned when using proportional fonts by
placing the pipe before a piece of text which must be in the same column as the CUI (character)
version.
When viewing the template for JL=Journal Listing, SAJL12 in SZTE, notice that characters ‘|’
pipes appear before Entry Period and after Accounting Period.

If you remove the pipes from the template, then the JL=Journal Listing screen will appear as
follows in the GUI version:

SunSystems 4 – Technical Reference Manual Page 38 of 455


Because there is only one space between “Entry Period” and “by”, if “Entry Period” is to line up
directly above “Entry Date” and “Accounting Period”, the pipe is necessary when using a
proportional font in the GUI version.
Also, the (A) after Accounting Period does not line up under the (D) after Entry Date.
If there is more than one space between two pieces of defined text on the same line, then pipes
are not necessary. The GUI treats the two pieces of unrelated text separately. Notice that there is
more than one space in front of (E) of Entry Period and the (D) of Entry Date. Although pipes
have been defined on the screen, they are not necessary. This is what the screen should look
like:

R-Ruler
This option places rulers (graduations) on the screen to help with the positioning of template text
or fields.

I-Ids
Ids displays the field numbers in the screen position for all fields currently defined.

D-Display
This option re-displays the template, removing any rulers, Ids etc., that were previously displayed.

H-Help Text Editor


The help text editor allows you to edit the help text defined for a template. The option is displayed
only if the special help text editor program [Link] is present. The template editor temporarily
passes control to the help text editor, (see later in this section) which allows you to edit the help
text for the current template. When you type A-Abandon or S-Save in the help text editor, you are
returned to the template editor, and the current template is re-displayed.

SunSystems 4 – Technical Reference Manual Page 39 of 455


F-Field
This option is used to define a field into which the user will enter data or into which the program
will display data. The rules governing the numbering of fields are given earlier in this section.
Enter the number of the field that you wish to examine, amend or create.
For each field, you are asked for the following:
Position (4 digits)
Respond with position 0000 to erase a field definition.
Otherwise respond in the format llcc where:
ll is the line number
cc is the column number.
Size (2 digits)
Respond with the size or length of the field.
Respond with size 00 if you wish the Screen Handler to take no action when asked to
accept or display the field.
Type (1 character)
X for Alphanumeric fields
U for Upper case conversion
P for Passwords (upper case converted)
9 for Numeric fields.
Justification (1 character)
(space) for no justification
L for left justification
R for right justification.
Only available with field type 9:
A for conversion to numeric amount field format as defined in DB=Database
Definitions
0-9 for conversion to 0-9 decimal places with implicit right justification
Z right justified with leading zeros inserted.
Display (1 character)
D for display field
T for display field with template attribute
M for display field with message attribute
(space) for accept field
S to enable an accept field with auto skip. This means that entry on this field
ends when you reach the end of the field, without the necessity to press
ENTER.

SunSystems 4 – Technical Reference Manual Page 40 of 455


Overlay (1 character)
If this field is a QUERY field, then an ‘&’ ampersand must be entered in this field.
Group (3 digits)
Any numerical value used to group fields logically.
Sequence (5 digits)
Any numerical value indicating the sequence of fields within a group.
When no further fields are required, the field definition process may be terminated by selecting
field number 000.
If, however, you press F1 in the field number position, then the template editor will call the help
text editor SZHX, so you may edit the help text for this field only. Entering A-Abandon or S-Save
will return control to the template editor; you will still be in the F-Field option.
The special help text editor program, SZHX, must be present in the current directory if you wish to
use this option.

Q-Query
This option is used to define or amend QUERY definitions for fields on the current template. You
are asked for the relevant field number, then details concerning the data to be displayed in the
window. You are asked for the following:
File (2 characters)
RF for the Reference File
IN for the Installation File.
Key Position (2 digits)
Specifies the position of the key in the Reference record that is to be selected.
Length (2 digits)
Specifies the length of the key above.
Data 1 Position (3 digits)
Specifies the position in the Reference record of the first QUERY data to be extracted
and displayed.
Length (2 digits)
Specifies the length of the data above.
Data2 Position (3 digits)
Specifies the position in the Reference record of the second QUERY data to be
extracted and displayed.
Length (2 digits)
Specifies the length of the data above.
Lookup (1 character, Y or space)
Specifies whether LOOKUP is available in this QUERY window.

SunSystems 4 – Technical Reference Manual Page 41 of 455


Key Prefix (3 characters)
Specifies the Reference record type or prefix. You can restrict the QUERY data that is
displayed by using this Prefix field. For example, in the CA=Chart of Accounts screen
you may use QUERY in the Analysis codes boxes, but in the Analysis Code 1 box
only A1 data is displayed when QUERY is selected, whilst if in the box for Analysis
Code 2 then only A2 data would be displayed.
This is controlled by setting the Key Prefix to ANVA1 or ANVA2, etc., so you specify
not only the record type but also the specific data type that you require.
Lookup Prefix (3 characters)
Specifies the record type or prefix to be used for the LOOKUP data in QUERY. You
may restrict the data selected as described above.
Line (2 digits)
Specifies the line at which the top of the window will appear.
Column (3 digits)
Specifies the column at which the window will begin.
Detail Depth (3 digits)
Specifies the number lines of data that will be shown in the window. Note that there
will be a heading line and two border lines in addition to these, so add three to get the
total window depth.
Note: The last three fields will be calculated automatically and can be changed. However
this is not normally necessary, as SZTE works out the optimal size and position. When
changing the depth, ensure that the window does not go below line 24.
You must enter ‘&’ ampersand in the overlay field in the F-Field option for all QUERY fields.

W-Windows
This option is used to define or amend a window definition for the current template. There may be
up to 99 windows defined on a template. They are displayed 20 per screen. Enter the line and
column where the window begins, then the height and the width of the window. Template editor
will not allow you to define a window that exceeds line 22 or column 80.
In the SATF17 example, there is one field, number 5, which has a QUERY definition set up. This is
indicated by the ‘&’ sign next to the field number shown when Iids is selected (see above).
If F-Field is selected in edit mode, and 005 entered, the following is displayed in place of the
selection lines:
FIELD NUMBER 005 POSN 1940 SIZE 10 TYPE X JUST L DISPLAY OVLY &
This shows that field number 005 is defined at line 19 column 40, is 10 characters long, is type X
(alphanumeric), left justified, and takes the accept field attribute.
If Q-Query is selected, and 005 entered for the field number, then the following is displayed in
place of the selection lines:
FIELD 005 FILE RF KEY POS 004 LEN 10 DATA1 POS 036 LEN 10 DATA2
POS 054 LEN 32
LOOKUP Y KEY PREFIX ACC LOOKUP PREFIX ACC LINE 04 COL 13
DETAIL DEPTH 10

SunSystems 4 – Technical Reference Manual Page 42 of 455


This indicates that there is a QUERY set up to display data from the reference file (RF), the key is
at character 004 of the reference record and is 10 characters long. The first data field to be
displayed is at character 036 and is 10 characters long.
The second part of the data to be displayed is at character 054 in the reference record and is 32
bytes long. LOOKUP is available and the reference Record type is ACC, as is the LOOKUP record
type. The last figures are calculated by SZTE, and specify the position and size of the window.
You may amend these if you want to move the window.

Edit Option S-Selections


This option is used to define the valid values that can be entered in the selection box, and to
define what options will be offered to the user at the bottom of a classic screen mode, or in the
pull-down menus displayed in Action mode.
These selections are known as Actions and there may be up to 80 of them defined on each
template. They are entered in five screens of 16 actions each. Gaps are allowed when creating
actions but when saving, the actions will be shuffled up so gaps are removed. The Action is
entered in two parts, as the selection may be done in two parts. The Actions defined on a
template are stored on the template file PARA record for that template.
Actions appearing on the same template must have different values, in other words, you cannot
have B-Back and B-Bottom as valid selections on the same template. If it is not possible to find a
word which has a different initial, then a second or subsequent letter of the word is used.
Example
If S-Selections is entered for SATF17, the following screen is displayed:

Enter the value of the action as defined in the ACTION-RESPONSES table. Each action is two-
byte parts. Enter spaces to leave it undefined.
There are only four selections allowed from this template, each is a 1-character selection.

SunSystems 4 – Technical Reference Manual Page 43 of 455


If the action code entry is within the ranges:
231-250
481-500
731-750 or
981-999
it is recognised as being in local action. The text ‘** Local Action **’ will be displayed to the right of
the entry field.
The local action response details are undefinable in the ACTION-RESPONSES table. They are
directly linked to the template and are currently to be maintained by the application programmer
as type ‘D’ records in the backed up template file (from version 4.1.3 onwards).

Action Numbers
The action number is taken from the SunSystems action table listed below, the values of which
are loaded from messages 581 to 620 and 978 to 987 on the SSnnMSSG message file. Ensure,
therefore, that the correct version of the message file is available when defining the actions in
SZTE.
When an action is defined on the template, it means that it will be displayed as a valid selection
by screen handler on the pull-down selections.
Actions can also be defined so that they are hidden i.e., they may be selected on a screen but are
not displayed by screen-handler. If you want to ‘hide’ the option from the screen, then add 250 to
the action slot number.
You may create dummy selections by adding 750 to the action slot number. This results in the
Action being displayed on the template but it is ignored by screen-handler’s validation routine.

The Actions Table


1 ACTION-AMEND
2 ACTION-ANALYSIS
3 ACTION-AMEND-ALLOCATE
4 ACTION-RESTORE-APPEND
5 ACTION-ALLOCATION-RANGE
6 ACTION-ALLOCATION
7 ACTION-AMEND-PRESETS
8 ACTION-BACK
9 ACTION-BACK-BACK
10 ACTION-BACKUP
11 ACTION-BALANCES
12 ACTION-BOTTOM
13 ACTION-PERIOD-BALANCES
14 ACTION-TRANSACTION-BALANCES
15 ACTION-CREATE
16 ACTION-CONVERSION
17 ACTION-AMEND-CONSOLIDATION
18 ACTION-CLEAR-REPORT
19 ACTION-CLEAR-JOURNAL
20 ACTION-SCALES-ON

SunSystems 4 – Technical Reference Manual Page 44 of 455


21 ACTION-CREATE-FILES
22 ACTION-CREATE-SUPPRESS
23 ACTION-DELETE
24 ACTION-DESCRIPTION
25 ACTION-DOWN
26 ACTION-PAGE-DOWN
27 ACTION-DATABASE
28 ACTION-TRANS-DATE
29 ACTION-EXAMINE
30 ACTION-EXTRACT
31 ACTION-EXAMINE-FORMAT
32 ACTION-FIRST
33 ACTION-FIRST-FIRST
34 ACTION-FIND
35 ACTION-FORMAT-DETAILS
36 ACTION-FULL-CLEARDOWN
37 ACTION-GENERATE
38 ACTION-HOLD
39 ACTION-TRANSFER-IN
40 ACTION-ITEMS
41 ACTION-BACKUP-INDEXED
42 ACTION-JOURNAL
43 ACTION-JOURNAL-ACCOUNT
44 ACTION-LAST
45 ACTION-LAST-LAST
46 ACTION-LEFT
47 ACTION-MENU
48 ACTION-NEXT
49 ACTION-NEXT-NEXT
40 ACTION-NEXT-ACCOUNT
51 ACTION-NEXT-ASSET
52 ACTION-NEXT-REFERENCE
53 ACTION-OVERLAY
54 ACTION-TRANSFER-OUT
55 ACTION-POST
56 ACTION-PARAMETERS
57 ACTION-PERIOD
58 ACTION-PERIOD-CLEARDOWN
59 ACTION-POST-BATCH
60 ACTION-POST-ALLOCATIONS
61 ACTION-SB-DESC
62 ACTION-PRINT
63 ACTION-PROCESS
64 ACTION-PERIOD-RANGE
65 ACTION-POST-JOURNAL
66 ACTION-RESEQUENCE
67 ACTION-QUERY-ITEM
68 ACTION-REPORT

SunSystems 4 – Technical Reference Manual Page 45 of 455


69 ACTION-RELEASE
70 ACTION-RESTORE
71 ACTION-RIGHT
72 ACTION-REFERENCE
73 ACTION-REFERENCE-RANGE
74 ACTION-REFERENCE-AMEND
75 ACTION-START
76 ACTION-SELECT
77 ACTION-SELECTIONS
78 ACTION-START-ACCOUNT
79 ACTION-START-BATCH
80 ACTION-START-CUSTOMER
81 ACTION-START-FORMAT
82 ACTION-START-ITEM
83 ACTION-START-JOURNAL
84 ACTION-START-REPORT
85 ACTION-START-TRANSACTION
86 ACTION-START-ASSET
87 ACTION-START-SUPPLIER
88 ACTION-STORE-ON-DISK
89 ACTION-SPLIT
90 ACTION-ASSET-DETAILS
91 ACTION-TRANSFER
92 ACTION-TOP
93 ACTION-TOTALS
94 ACTION-PROCESS-TRANSFER
95 ACTION-TRANSACTION
96 ACTION-MATCH
97 ACTION-TRANS-DATE-RANGE
98 ACTION-UP
99 ACTION-DUE-DATE
100 ACTION-REPORT-AUDIT-TRAIL
101 ACTION-VIEW
102 ACTION-VIEW-STORED-JOURNALS
103 ACTION-EXIT
104 ACTION-RANGE-ALLOCATE
105 ACTION-YEAR-CLEARDOWN
106 ACTION-HIDDEN-OPTION
107 ACTION-ANALYSIS-CODE-1
108 ACTION-ANALYSIS-CODE-2
109 ACTION-ANALYSIS-CODE-3
110 ACTION-ANALYSIS-CODE-4
111 ACTION-ANALYSIS-CODE-5
112 ACTION-VIEW-RIGHT
113 ACTION-OVER-DELIVERY
114 ACTION-FIND-TRANSACTION
115 ACTION-PAGE
116 ACTION-SETUP

SunSystems 4 – Technical Reference Manual Page 46 of 455


117 ACTION-FINISH
118 ACTION-RETURN
119 ACTION-HIDDEN-Z-RELEASE
120 ACTION-SUMMARY
121 ACTION-DATE
122 ACTION-ORDER
123 ACTION-TRANSACTION-TYPE
124 ACTION-CUSTOMER-REF
125 ACTION-RESELECT
126 ACTION-ALLOC-REF
127 ACTION-LINE
128 ACTION-QUALITY
129 ACTION-VALUE
130 ACTION-STATUS
131 ACTION-PAGE-SELECT
132 ACTION-PAGE-RANGE
133 ACTION-SUPPLIER
134 ACTION-SECOND-REF
135 ACTION-POP-AUDIT-REF
136 ACTION-RECALL
137 ACTION-ROUGH
138 ACTION-APPROVE
139 ACTION-CONVERT
140 ACTION-QUOTATION
141 ACTION-Q-REQUEST
142 ACTION-SPLIT-QTY
143 ACTION-SPLIT-VALUE
144 ACTION-TELEPHONE
145 ACTION-ANALYSIS-0
146 ACTION-ANALYSIS-6
147 ACTION-ANALYSIS-7
148 ACTION-ANALYSIS-8
149 ACTION-ANALYSIS-9
150 ACTION-COPY
151 ACTION-OTHER-OPERATORS
152 ACTION-HOME-KEY
153 ACTION-END-KEY
154 Undefined
155 Undefined
156 ACTION-INVOICE
157 ACTION-GRN
158 ACTION-DOUBLE-CLICK
159 ACTION-INQUIRE
160 ACTION-ACCOUNT
161 ACTION-ALLOCATED
162 ACTION-BALANCE
163 ACTION-RETURN-TO-ENTRY
164 ACTION-DETAIL

SunSystems 4 – Technical Reference Manual Page 47 of 455


165 ACTION-ORDERED
166 ACTION-ONLINE-ALLOC
167 ACTION-NEW-FORM
168 ACTION-CLEARDOWN
169 ACTION-SUSPEND
170 ACTION-SAVE
171 ACTION-BASE-AMOUNT
172 ACTION-OTHER-AMOUNT
173 ACTION-ALL
174 ACTION-CLEAR-AUDIT-TRAIL
175 ACTION-OTHER-TOTAL
176 ACTION-CLEAR
177 ACTION-SWAP-WINDOW
178 ACTION-OFF
179 ACTION-BSP
180 ACTION-CALC-CODES
181 ACTION-SEQUENCE
182 ACTION-MISC
183 ACTION-DB-SEQ
184 ACTION-TAX
185 ACTION-AM
186 ACTION-MATHS
187 ACTION-ONLINE-ALL
188 ACTION-OTHER-AMT
189 ACTION-TRANSACTION-PAGE
190 ACTION-SUMMARY-PAGE
191 ACTION-REBUILD-ACB
192 ACTION-EXPIRY-DATE
193 ACTION-COST
194 ACTION-CONV
195 ACTION-TEXT-FIELDS
196 ACTION-AMOUNTS-DATA
197 ACTION-FLAGS-CHECKSUMS
231 ACTION-LOCAL01 (Virtual Slot 231)
232 ACTION-LOCAL02 (Virtual Slot 232)
233 ACTION-LOCAL03 (Virtual Slot 233)
234 ACTION-LOCAL04 (Virtual Slot 234)
235 ACTION-LOCAL05 (Virtual Slot 235)
236 ACTION-LOCAL06 (Virtual Slot 236)
237 ACTION-LOCAL07 (Virtual Slot 237)
238 ACTION-LOCAL08 (Virtual Slot 238)
239 ACTION-LOCAL09 (Virtual Slot 239)
240 ACTION-LOCAL10 (Virtual Slot 240)
241 ACTION-LOCAL11 (Virtual Slot 241)
242 ACTION-LOCAL12 (Virtual Slot 242)
243 ACTION-LOCAL13 (Virtual Slot 243)
244 ACTION-LOCAL14 (Virtual Slot 244)
245 ACTION-LOCAL15 (Virtual Slot 245)

SunSystems 4 – Technical Reference Manual Page 48 of 455


246 ACTION-LOCAL16 (Virtual Slot 246)
247 ACTION-LOCAL17 (Virtual Slot 247)
248 ACTION-LOCAL18 (Virtual Slot 248)
249 ACTION-LOCAL19 (Virtual Slot 249)
250 ACTION-LOCAL20 (Virtual Slot 250).

Each action slot may be up to two characters in length, for example, ACTION-CREATE-
SUPPRESS is ‘CS’ (in English).
The second part of the action definition in SZTE is used for overlay processing. This is required
when you wish to have the choice of entering a selection as a two-byte entry, or entering it as two
one-byte entries. An example of this is in AQ=Account Inquiry.
In the details screen, you may select ‘OA’ for Overlay Analysis, or you may enter ‘O’, and then ‘A’
to achieve the same result. In the latter case, on entering ‘O’, the list of options changes to the
valid Overlay Options.
To define such actions on a template, you must define the first part of the action as usual, but with
zero entered in the second part. Then define another with the same first part, but with a valid
entry in the second part. Define one for each of the possible selections.
The final block of 20 actions, ACTION-LOCAL01 through ACTION-LOCAL20, are maintained by
the screen handler with responses, known as local actions. They are linked directly to the current
template.
The block ACTION-LOCAL01 to ACTION-LOCAL20 is currently using slots 191 through to 210.
However, it will always reside in the last 20 slots used in the action table. Therefore, the next new
action will be placed in slot 191, moving ACTION-LOCAL01 to slot 192, etc.
As local actions are not in fixed slots within linkage, the local action responses can only be
referenced by their relative action names. For example, the first local action on the template,
action code 231, is ACTION-LOCAL01 (version 4.1.3 onwards).
Below is an example of how the AQ=Account Inquiry Sequence actions are defined:

First Part Second Part


0066 Q = Sequence 0000 ZERO
0066 Q = Sequence 0028 D = Transaction Date
0066 Q = Sequence 0028 L = Allocation
0066 Q = Sequence 0057 P = Period
0066 Q = Sequence 0072 R = Reference
0066 Q = Sequence 0099 U = Due Date
0066 Q = Sequence 0171 B = Base Amount
0066 Q = Sequence 0171 O = Other Amount

The definition in actions 4 tell screen-handler that it is a two-part selection, because of the 0000
action in the second part. Therefore screen-handler knows that if the user enters only the first
part, then it must accept the second part, displaying the relevant options, before returning to the
application that called it.

SunSystems 4 – Technical Reference Manual Page 49 of 455


Local Actions
Developers can add their own local actions from version 4.1.4. They are considered local
because the actions are template specific. There are 20 slots reserved for local actions,
numbered from 231 to 250.
To define these actions enter L=Local on the template edit menu. Then next to each local action
number, enter a one, or two character action, and up to 18 characters of description.
Once the local actions have been defined they can then be entered in the selections menu as
normal actions.
For example, if L-Local is entered, the following screen is displayed:

SunSystems 4 – Technical Reference Manual Page 50 of 455


Routing Selections
If the template you are editing is a menu template, i.e. if the number of the template is 01 (e.g.
SAMM01) then after the actions screens, the routing selections screens will be displayed. This is
where you define routing parameters which are used when calling other programs, and the
options and descriptions that appear on the menu (displayed by screen-handler). There may be
up to 99 routing parameters defined on a template. Twenty are displayed per screen. For each
routing parameter, you are asked for the following information:
Routing Selection Number
2 characters
Respond with a number in the range 01 to 99. Respond with 00 or ESCAPE (twice on UNIX
systems) to terminate this routing definition process. If you want to amend or create a number
beyond those shown on the current screen, then enter the number required and the relevant
screen is displayed. Gaps in the routing selection numbers are not allowed.
Routing Selection Mnemonic
normally 2 characters
Respond with a suitable mnemonic.
The next nine fields are entered into one long field entitled Route:
Program Id
4 characters
The name of the program to be called when this route is selected.
Permission Type
1 character
This controls the type of permission allowed for a menu option. It is used by the Operator
Permissions program and the menu program SSMM.
• ‘ ’ space indicates that permissions can be set up for all users for this menu entry via
Operator Permissions function
• ‘S’ indicates that this menu selection is only available to SuperUser SUN and may be
subject to permissions set up via the Operator Permissions function
• ‘N’ indicates that this menu selection is only available to non SUN users and may be
subject to permissions set up via the Operator Permissions function
• ‘A’ indicates that this menu selection is available to all users and cannot have permission
restrictions applied to it via the Operator Permissions function.
Action Permission Indicator
1 character
Enter U so that the routing selection may also set permissions on the actions available to this
process.
Process Mode
1 character
This value is used by the program which is called. It is useful in enabling one program to handle
several routing selections. The called program can then respond differently according to the
process mode associated with the selection. SSMM sets the linkage variable LINK-PROCESS-
MODE to this value before calling the program.

SunSystems 4 – Technical Reference Manual Page 51 of 455


System Id
2 characters
This defines the System which is to receive this routing:
SA is for Ledger Accounting
SF is for Asset Register
SC is for Corporate Allocations
SO is for Sales Order Processing
SM is for Inventory Control
SP is for Purchase Order Processing
SS is for SunSystems
SX is for SunExtras.
Reference Maintenance Record Type
3 characters
The Reference Id record type to be used on the reference file. This option is used only when the
Program Id is SSRU. A list of these Ids can be found in the section Reference Maintenance.
Template Suffix
2 digits
This option is used only when the Program Id is SSRU. It identifies the relevant template
associated with the selected reference record type.
Module Number
2 digits
The number is for internal use only. It defines the SunSystems module to which the option is
applicable. It must have a value otherwise you will get the message:
SELECTION NOT AVAILABLE
If you are adding new programs to the menu set this to 31.
Sub Menu
1 character
The number is for internal use only. Leave it blank.
Permission Slot Number
2 digits
Indicates the unique slot number in the linkage section containing the permission level for a menu
option. Do not enter a number above 99. If defaulting to the SunSystems permission i.e. if the
permission type is ‘D’, then this must not be greater than 40.

SunSystems 4 – Technical Reference Manual Page 52 of 455


Type of Selection
1 character
Indicates the type of program to be run. Valid entries are:
E-Entry
I-Inquiry
M-Maintenance
P-Procedure
R-Report
S-System, or ‘ ’ space.
This tells screen-handler which heading the option should appear under on the menu. If ‘ ’ space
is entered, then it will not be shown but can still be selected in the selection box.
Menu Number
1 digit
Indicates whether the entry should appear on the main menu or sub-menu. Enter 1 for the main
menu, 2 for the sub-menu (usually setup menu), or zero.
Sub-Menu Type
1 character
Indicates the type of sub-menu in which this selection is available. Valid entries are:
E-Entry
I-Inquiry
M-Maintenance
P-Procedure
R-Report
S-System, or ‘ ’ space.
This is normally the same as the selection type above.

SunSystems 4 – Technical Reference Manual Page 53 of 455


Sub-Menu Menu
1 digit
This should be zero if the selection is used to select a sub-menu (i.e. SU=Setup), otherwise blank.

Other Ways to Run SZTE


There are other ways to execute SZTE. To go directly to the desired template from the command
line enter:
either SZTE SATF17
or if a non-English file SZTE SATF17,, nn
To go directly to the desired template option B for Backup, enter:
Either SZTE B
or if a non-English file SZTE B,, nn

SunSystems 4 – Technical Reference Manual Page 54 of 455


Taking the selection on the above screen, number 53, we have the following setup:
NA is the mnemonic
SSRU is the program that is to be called
U is the permission type
0 is the process mode
SA is the system id
ADD is the reference record type
22 is the suffix of the template corresponding with that reference record
24 is the module number
space is the sub-menu number
13 is the permission slot number
M is the selection type (maintenance)
1 is the menu number (main menu)
space is the sub-menu type
space is the sub-menu menu
space is the sub-menu menu
Names & Addresses is the description.

Upgrading the Template File with SZTC


This program converts a Backup Template File from 4.1.4 format to the present 4.2 version. This
is a DOS program and it can be run from the DOS prompt or from a DOS window.
Before running SZTC, rename your 4.1.4+ Backup Template file that you wish you convert to:
[Link]
or
[Link]
where:
nn is the Language Code
vvv is the version number of the file. For example 417 for version 4.1.7.
ffffff is the single backup template you wish to convert.
To run SZTC, enter at the DOS prompt the command:
SZTC

SunSystems 4 – Technical Reference Manual Page 55 of 455


The follow screen will be displayed:

When the program prompts for the template, leave it blank if you wish to convert the whole
template file. Otherwise type the name of the single template. For example, SSRU21 for Chart of
Accounts template.
When the program prompts for Source Language Code, type the language code of the file you
converting.
Source Version is the version from which you want to convert you layout file. It will be the suffix of
the file that you have renamed above.
Target Language, leave as zero.
Then SZTC will run and the conversion process will produce two files.
[Link]
[Link]
or
[Link]
[Link]
where:
nn is the Language Code
ttt is the version number SZTC. For example 421 for version 4.2.1.
ffffff is the single Template file name.
The *.ttt will contain the previous version Backup Template file, but in version 4.2 format.
*.PRN is a print file of all the conversions or omissions SZTC has made from the previous version.
This program can also be used as a compare program to compare the layout files from a 4.1.4+
version to a 4.2 version. The two versions have different layouts, but there may be a need to
compare the difference between the two versions of the layout files in SunSystems.
Before running SZTC, rename your 4.1.4+ version file as described above for running SZTC in
Conversion Mode.

SunSystems 4 – Technical Reference Manual Page 56 of 455


Then rename your 4.2 Reference Maintenance Layout file for comparison to:
[Link]
or
[Link]
where:
nn is the Language Code.
ttt is the version number SZTC. For example 421 for version 4.2.1.
ffffff is the single Template file name.
The differences will be written to a file called [Link].

SunExtras Menu and External Programs


A special menu template, SXMM01 is available on request. It is a blank menu whose contents
can be defined by the user. This enables users to compose a tailored SunSystems menu and to
incorporate functions developed especially for them into the system. The menu is invoked when
the user keys the mnemonic SX.
It is possible to call external programs from the SunSystems menus, that is programs which run
independently of SunSystems. The program may be written in COBOL; it should not matter as
long as the executable program is in the SunSystems directory. You must restrict the executable
program file name to a maximum of four characters and a suffix of .EXE, .COM, .INT, or .GNT.
For example, suppose you want to run a program called [Link] in SunSystems by entering
the selection ‘AB’. You need to add a selection to the relevant SunSystems menu using SZTE.
The selection mnemonic would be ‘AB’, and the Program Id ‘ABCD’. The System Id field should
be ‘Xz’ where z is any other character. Although the module number usually is only for
SunSystems use, it must be set in this case otherwise you receive the message:
SELECTION NOT AVAILABLE
when selecting ‘AB’ at the menu. Set it to 31. Set the rest of the options to spaces except for
Permission Slot number which may be set for OP=Operator Permissions
to pick up this selection.
For example:
No: 41 Code: AB Route: ABCD XX 31 41 Type:
P Menu: 1
Submenu Type: Submenu Menu: Desc: ABCD Program

Message Files
Message files contain the messages that are displayed on the screen. They are either whole lines
of message, typically displayed on the bottom line of the screen, or small variable length
messages or headings displayed in the body of a template.
Each record in the file has its own number, and the numbers are not always sequential.
Messages belonging to the same function are generally grouped together. The message files also
contain values for validation of some operator input. This validation data is used to interpret
operator input in other languages.

SunSystems 4 – Technical Reference Manual Page 57 of 455


There are three message files:
• SunSystems [Link]
• SunAccount [Link]
• SunBusiness [Link].
These files are in a special format to be used by the SunSystems programs. To change their
contents, they must be converted to text format, amended with a text editor, and then converted
back to SunSystems format.
The program SZMR is used to convert to and from text format. It is available on request from your
supplier. Note that the version of SZMR must be compatible with the software release being
amended.
To convert to text format:
SZMR xx, E , nn
where xx is SS to convert the SunSystems Message File ([Link])
SA to convert the SunAccount Message File ([Link])
SB to convert the SunBusiness Message File ([Link])
where nn is the language number.
In some hardware environments, the program will not pick up the xx,E: you are prompted for it
separately. The files themselves are not converted but are written to an output file. In
environments other than VAX/OpenVMS, the output file name is the same as the input file but
without a suffix. On VAX/OpenVMS systems, the output file name has a suffix of .TXT.
Having used SZMR to extract the text file from the SunSystems (.MSG) file, any standard editor
can be used to change the messages but care should be taken not to introduce control characters
into the file.
To convert the message text files back to SunSystems format, SZMR should be used again:
SZMR xx ,, nn
or on VAX or Alpha:
Under OpenVMS, in order to be able to type SZMR at the OpenVMS prompt, it is necessary
to set up a symbol name as follows:
$ SZMR :== “$ $DISK1:(SUN42)[Link]”
where $DISK1:(SUN42) is the name of the disk/directory where the SunSystems
programs reside.
where, again, xx is SS, SA or SB, and nn is the language number.

SunSystems 4 – Technical Reference Manual Page 58 of 455


Listed below are portions of SS01MSSG:

You can see from the SS01MSSG example above that a message is made up of a number of
fields.
Characters 1 to 4 Message number, used by programs to identify a message.
Character 5 Special indicator:
i) H (Hold) - The program must wait for operator input before clearing the
message from the screen. If a command file or macro is running, the
operator input will be taken from the command file or macro file.
ii) K (Keyboard) - The program must wait for operator input before clearing
the message from the screen. The operator input must come from the
keyboard and never from a command file or macro file.
Character 6 B (Bell) - A bell will be sounded when the message is displayed.
Character 7 Severity Indicator:
i) W (Warning) - When this message occurs in a GUI system, it will be
displayed in a dialog box next to a warning icon ‘!’ which appears with
buttons. These buttons are described in Characters 8 to 10 below.
ii) I (Information) - When this message occurs in a GUI system, it will be
displayed in a dialog box and an information icon ‘i’ will appear in the
box along with buttons.
iii) C (Critical) - When this message occurs in a GUI system, it will be
displayed in a dialog box and a critical icon ‘stop sign’ will appear in the
message box with buttons.

SunSystems 4 – Technical Reference Manual Page 59 of 455


Characters 8 to 10 A message can contain up to three of the following values, each one being
assigned to a button which can be activated with a mouse. They can appear
in any order but the character in column eight defines the default button for
the message i.e. the button that is activated by pressing the ENTER key.
1=Yes
2=No
3=OK
4=Cancel
5=Enter.
For example, W21 would give a message box with a warning icon in the top left-hand corner of
the message box and a Yes and No button, with No being the default.
Characters 11 to 90 Message text or operator responses.
The first four characters of the message should not be altered.
There are some special messages which are used for response definitions such as N-No, C-
Credit. These are used when translating SunSystems to other languages.
The messages in question are 056, 057, 394, 449, 502, 664, 665, 679, 726, 741, 742, 743 from
[Link], 557 in [Link], and 258 and 655 in [Link]. Other special
messages are those containing the values that are loaded into the actions table (see the
subsection The Template Editor), that is 581 to 620 in the SS message file.
The SunSystems message file also contains special words used by FREEFORMAT. These words
are contained on message number 338. Each word may be up to 20 characters in length and
cannot contain spaces. If the words are less than 20 characters long they must be padded with
spaces so that each word starts in a fixed position in the message. For example, the English
language version of this message
is:
0338 LEARN STOP DELAY BREAK
A special method has been used to create messages 188 to 193 on the SunSystems message
file. These messages need to have information merged with them when SunSystems is running.
To make this simple, a special character ‘~’ tilde has been used wherever a space is to occur in
the message:
0188 Learning~
0189 ~...~To~stop,~enter~\~and~STOP
0190 Learning stopped
0191 Executing~
0192 ~...~To~stop,~enter~!=Abandon
0193 Enter~
For example, when a FREEFORMAT macro is running, line 21 of the screen displays the macro
name, like this:
Learning END_OF_DAY_REPORTS ... To stop, enter \ and STOP
It is important that leading and trailing ‘~’ tildes are not misplaced. For example, message 188
must not start with ~ but must end with ~.

SunSystems 4 – Technical Reference Manual Page 60 of 455


You may find that some messages end with a ‘/’ slash or ‘//’ slashes. This indicates the maximum
length of the message, and text must not go beyond this marker. Some messages contain ‘!’
exclamation mark which indicate where data is to be inserted into the message by an application
program before it is displayed. This has been standardised in version 4.1 of SunSystems.
Note: The layout of the message file has changed from version 4.1.4 onwards.

The Help Text Ediror (SZHE)


Help text files contain the text displayed on the screen when HELP is accessed. The text can be
modified with the SunSystems Help Text Editor SZHE, to create help text in another language or
to create help text which has been specifically designed for a user.
Help text is contained in a number of indexed files which can be edited using SZHE. This program
also offers a backup option to convert the files to line sequential format. The backup file can then
be edited using a word processor and converted back to indexed format. This is also useful when
porting the help files to a different operating system. The help text is defined for each field (where
data may be entered), on each template. It is indexed by template name and field number.
The indexed help text files have the following names:
SunSystems [Link] and [Link]
Ledger Accounting [Link] and [Link]
Asset Register [Link] and [Link]
Corporate Allocations [Link] and [Link]
SunBusiness [Link] and [Link]
Sales Order Processing [Link] and [Link]
Inventory Control [Link] and [Link]
Purchase Order Processing [Link] and [Link].
and the corresponding text (backup) files have the following names:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link].
The procedure to edit help text is as follows:

SunSystems 4 – Technical Reference Manual Page 61 of 455


At the operating system prompt type one of the following:
either SZHE
or RUN SZHE
or on UNIX szrun SZHE
or on VAX or Alpha:
Under OpenVMS, in order to be able to type SZMR at the OpenVMS prompt, it is necessary to
set up a symbol name as follows:
$ SZMR :== “$ $DISK1:(SUN42)[Link]”
where $DISK1:(SUN42) is the name of the disk/directory where the SunSystems programs
reside.
or on language files SZHE ,,, nn
where nn is the language number.
The following screen is displayed:

The first entry required is the system, so enter one of the following:
SS to select the SunSystems help file
SA to select the SunAccount help file
SF to select the Asset Register help file
SC to select the Corporate Allocations help file
SO to select the Sales Order Processing help file
SM to select the Inventory Control help file
SP to select the Purchase Order Processing help file
ESCAPE or ‘!’ exclamation to exit from SZHE.

SunSystems 4 – Technical Reference Manual Page 62 of 455


The cursor moves to the UNIX box. Enter Y-Yes if you are running under UNIX, otherwise press
ENTER to accept the default N-No.
Then the cursor moves to the Backup/Restore box. Enter B if you want to back up the indexed
help file to the sequential format. Enter R if you want to restore the sequential file in to the
indexed file.
Otherwise, press ENTER to accept the default, N-No.
The cursor then moves to the selection box on line 22. The following options are
offered:

X-Exit
This option enables you to exit from the help text editor, to return to the operating system. Note
that ESCAPE achieves the same.

N-Next
Next displays the help text for the next field. If a template has not yet been selected, then the first
help text in the file is displayed, that is the help text from the first field on the first template in the
help text file.

D-Delete
Use this option to delete help text for a particular template. You are asked for the template identity
and must confirm that all help text for this template is to be deleted.

S-Start
Start allows you to edit help text. You must enter the code of the template you wish to access i.e.
DD39 or RU22. Enter ESCAPE or ‘!’ exclamation mark, to abandon. If you enter an existing
template code, then the help text for the first field on that template is displayed, otherwise the
following message is displayed:
Template Not Found - Start Another Y/N?
Enter Y-Yes to start a new template. You are required to enter the template description.
The selection line changes to:
Selection <N> S=Save, A=Abandon, F=Field Number, E=Edit, C=Copy,
N=Next, B=Back, M=ForMat, D=Delete

S-Save
This tells SZHE to save any changes made so far, and to exit to the first screen.

A-Abandon
Select this if you want to exit back to the first screen without saving any amendments which have
been made.

SunSystems 4 – Technical Reference Manual Page 63 of 455


F-Field Number
This enables you to select the field number for the help text you wish to create, amend, or
examine. The cursor moves to the Field Number box where you must enter the required field
number. Any existing help text for that field is displayed and the cursor returns to the selection
box.

E-Edit
When you have found the required help text, (i.e. by entering the correct template code and field
number), then enter E-Edit, to edit the text. The cursor will move to the first line of the text, where
you may enter new text or amend existing text. When you have finished, press ENTER until you
reach the selection box. Note that each field on a screen can have up to nine lines of help text.

C-Copy
Enter this option if you wish to copy the help text from another field on either this or another
template. You are asked to enter the template from which you wish to copy text, then the field
number from which you wish to copy text. Enter zero or spaces to copy the entire template’s help
text, or enter a specific field number. If copying just one field, you are asked to enter the number
of the field on the current template to which you wish to copy the text. You are warned if help text
already exists for this field.

N-Next
Choose N-Next to display the text for the next field.

B-Back
Enter this option to display text for the previous field.

M-Format
Enter this option to format the displayed text so that unnecessary gaps are removed.

D-Delete
Enter this option to delete the currently displayed text from the help file. You are asked to confirm
the deletion.
If you have converted the help files to text files, they can be amended with an editor or word
processor. As with all SunSystems text files, care must be taken not to introduce control
characters into the file.

SunSystems 4 – Technical Reference Manual Page 64 of 455


Example
Below is a section from the [Link] file:

The codes at the beginning of each line have the following meaning:
Column 1 to 4 last four characters of template name e.g. AS08
5 to 7 field number on template
8 line number of help for a particular field (1-9)
9 blank or ‘=’
10 to 87 if column 9 is blank, help text
If column 9 is ‘=’ equals sign, and a field number follows the ‘=’, then help text from this field
number is used. For example, in SAJE35, fields 52 to 58 have identical help text to field 50. Note
when help text uses multiple lines for a field, the ‘=’ is used on the first line only.
For each screen, field 0 is used to hold a description of the screen. This help text is not displayed
in SunSystems but is used as documentation within the help file. Field 80 is the screen selection
box and is used to hold an overall help description for the whole screen.
Once the necessary amendments have been made, the text file can be restored to indexed format
using SZHE as described above.

SunSystems 4 – Technical Reference Manual Page 65 of 455


Online Manuals
Winhelp files contain the text displayed on the screen when Help is selected from the Windows
menu bar, and either “Contents”, “Search for Help on…,” or “How to use SunSystems Help” is
selected from the menu. These files are an online version of the SunAccount and SunBusiness
manuals that are published by Systems Union and distributed with SunSystems software.
The online manuals are contained in two Microsoft *.HLP files which have the following names:
SunAccount [Link]
SunBusiness [Link]

SunSystems 4 – Technical Reference Manual Page 66 of 455


Technical Reference Manual
Reference Maintenance

Introduction
This section describes how to modify and create record types in the reference file. This is the
master file, common to both SunAccount and SunBusiness, which stores fundamental reference
data. The application programs constantly refer to the reference file.
You might want to modify or create reference record definitions in the following circumstances:
• When undertaking a translation of SunSystems to another human language
• When adding fields to an existing reference record
• When adding new record types to the reference file.
If you add new fields or new record types, they will not be used by the SunSystems software
packages. However, SunSystems reference maintenance can update, report, audit and transfer
such records. You can have access to them directly from your own COBOL programs or through
reference Transfer, and then from other software packages. Thus, SunSystems can be used to
update the new data for you, and you can then use it in your own software.
In the section System Overview, the reference maintenance programs are described as
controlling the updating, transfer, auditing and reporting of master data on the reference file. The
section Naming Conventions covers the conventions used for naming the reference file and other
associated files.
The full data file definition for the reference file is given in the appendices to this manual.
The reference file contains many record types. They include, for example:
• Items of stock
• Customer addresses
• Calculations to be made on invoices.
The various record types are defined on the reference layout files. The layouts define the
characteristics of the record types including, for example, the following:
• The format for reporting the data
• The number of key fields
• The number of fields.
The layout files are a link between the data on the reference record and the corresponding
reference maintenance screen.
There are four reference maintenance utility programs which use the reference file:
The Reference Update program (SSRU)
The Reference Reporting program (SSRR)
The Reference Transfer program (SSRT)
The Reference Audit program (SSRA).
These programs treat all record types in the same way, but use the layout files to distinguish
between the different record types. So the reference maintenance programs obey the instructions
coded into the reference layout file.
In this section the following areas are discussed:
• The rules governing reference records
• How to use these rules to create new reference records and change existing ones
• How to transfer reference records to external files using SunSystems reference Transfer.

SunSystems 4 – Technical Reference Manual Page 67 of 455


Standards for Reference Record Types
These standards govern the reference record types provided with SunSystems. If you create your
own record types, they must adhere to these standards.
Associated with each reference record type is the following:
Record Type Code
3 characters
This is a unique three character code, which will form the primary portion of the record key (the
total key length is 64 characters). The subsection The Template Editor describes the relationship
between the two character screen selection codes and the three character record type.
Template
A suitable template is set up which is used by the program SSRU to maintain and retrieve records
of that type. See the section Screens and Menus.
Routing Parameters
For each reference maintenance function, routing parameters are inserted on the appropriate
menu template. See the section Screens and Menus.
Layout Definition
Appropriate layout definitions are inserted in the relevant reference layout files, which are
described later in this section.
The following record types are used by SunSystems and should not be used when creating new
record types:
ACB Account Balance
ACC Chart of Accounts
ACP Generate Payments/Debits selection
ADB Address Analysis
ADD Names and Addresses
AJD Journal Definition
AJP Journal Presets
ALC Period Calendar
ALD Allocation Definition
ALR Allocation Ratio
ALS Allocation Source
ALT Allocation Target
ALW Allocation Work File Details
ALX Allocation Change in Balance
AND Analysis Definition
ANV Analysis Code
ARS Analysis Mapping Rules
AST Assembly Structure
AUC Audit Control
BCD Budget Check Definition
BKA Bank Details
BPF SOP/POP Print Selection
BUD Budget Definition
BUS Business Definition
CAD Calculation Definition

SunSystems 4 – Technical Reference Manual Page 68 of 455


CAT Calculation Table
CND Daily Conversion Rate Definition
CNV Conversion Table
COL Column Heading
CON Financial Analysis Consolidation
CSD Control Sequence
CVD Conversion Definitions
DAG Data Access Group Record
DBA Database Definition
DBK Daybook Layout
DDC Database Categories
DDD Data-item Definition
DDE Entity Definitions
DDF Sub Headers/Footers
DDK Data Record Type
DDL Entity Descriptions
DDR Record Description
DDS Report Types
DDT Item Description
DPH Depreciation Table Heading
DPT Depreciation Table
DPY DamanPay Element Definition
FAA Asset Analysis
FBR Asset Budget Value
FCD Calculate Depreciation Selection
FDI Asset Disposal Selection
FDR Asset Diary
FLT Formatted Layouts
FMT Format Definition
FMX Print Statements Selection
FSI Fourth Shift Interface
FTC Financial Table Column
FTF Financial Table Format
FTR Financial Table Row
FVR Asset Value
GA1 Financial Analysis Layout
GLI Ledger Interface
GLT Aged Analysis Layout
GS1 Financial Statement Layout
IAD Item Account Definitions
INF Debtor/Creditor Transfer Selection
INT Debtor/Creditor Transfer Layout
ITC Item Customer
ITD Extended Item Descriptions
ITM Item Record
ITP Item Special Process
ITS Item Supplier
KLT Statistical Layouts

SunSystems 4 – Technical Reference Manual Page 69 of 455


LAN Language Definition
LDG Ledger/Register Definition
LIT Location Item Record
LOC Location Definition
LXC Ledger Export Consolidation
LXD Ledger Export Definition
LXS Ledger Export Selection
MAN Inventory Control Analysis Layout
MBD Business Definition (Inventory Control)
MSD Stock Take Definition
MVD Movement Definition
MVP Movement Preset
MVV Movement Values Definition
OAN Sales Analysis Layout
OBA Maintain Operator Buttons
OBD Business Definition (Sales Order Processing)
ODN Operator Definitions
OPH Sales Order Header Preset
OPI Sales Order Detail Preset
OTD Sales Order Definition
PAN Analysis Layouts
PBD Business Definition (Purchase Order Processing)
PCA SunAccount Period Cleardown Consolidation
PCB SOP/Inventory Control Period Cleardown Consolidation
PCP POP Period Cleardown Consolidation
PDN Printer Definitions
POD Purchase Order Definition
PPF Payment Profile Record
PPH Purchase Order Header Preset
PPI Purchase Order Detail Preset
PRB Price Book Record
PRD Price Book Definition
PRH Price Book Hierarchy
PTL Transfer Layouts
PUC Unit Conversion Table
SFD Sales Format Definition
SLN Statement Line Contents
SOS Sales Order/Movement Import Selection
SPP Print Picking Control
SPR Spread Ratio
SQN Sequence Number Definition
TAX Tax Defaults
TDN Terminal Definition
TFX Journal Import Selection
TID Treasurer Interface Definition
TLL Tax Listing Layouts
TMS Transaction Matching Selection
TTR Treasurer Transaction Reference

SunSystems 4 – Technical Reference Manual Page 70 of 455


VER Version Record
VPX Void Payments Selections
In addition to the preceding list, which is used by Systems Union, there is an official register of
reference record types which are used by external developers. To acquire an up-to-date list of
these reference records, please contact your supplier.

Reference Layout Files


This subsection describes the logic of the layout files. With this information you can add fields to
existing record types and create new record types.
Note that certain reference records are shared by a number of SunSystems modules. The layout
may appear in more than one layout file, but this is not always the case. For example,
CT=Calculation Tables can be used in both Sales Order Processing and Purchase Order
Processing, so the layout appears in the SunBusiness common layout file [Link], where
nn is the language code for the file. However, LD=Ledger Definition and RD=Register Definition
are defined on [Link] and [Link], even though they share the same reference
record. Always check whether the layout appears on more than one layout file.
Please note that as SunSystems is enhanced by Systems Union, fields are frequently added to
existing records. Generally, the first available space on the record is used. Therefore, to avoid the
risk of your amendments clashing with the authors’ amendments, you are advised to use the
available space at the bottom of the record, at the end of the filler.
When creating your own reference maintenance records, only use field number 3 for a LOOKUP
code. If there is no LOOKUP code do not use this field. In certain reference maintenance processes
(e.g. reference Transfer), field 3 is assumed to be the LOOKUP code.
Systems Union has allocated some specific space to users on record types such as NA=Names &
Addresses. This space will not be used in future updates to SunSystems.
Should you wish to upgrade to a new version of SunSystems, changes you make to the .LYT files
etc. must be reapplied. For this reason, it is important that such adjustments are fully
documented.
Reference layout files are text files. They can, therefore, be edited using a word processor. The
following is the beginning of the SunBusiness (common) layout file [Link]:
ITMR ITEM RECORDS 00RF0124
ITMI00100000Item Code 01001000415Y
ITMI00200000Item Description 01018008630Y
ITMI00300000Lookup Code 01050006810
ITMI00400000Unit of Stock 04018011605
ITMI01900000Whole Units only 05018037501 100031 Y
ITMI00500000Unit of Sale 06018012105
ITMI00700000Whole Units only 07018037601 100031 Y
ITMI03100000AlternateItem Code 02018043415
ITMI01000000Unit Weight 04061030218 5NUM
ITMI03900000Set Purchase Price 07040075701 P100031 Y
ITMI03700000Def Purchase Price 08017073918 5NUM
ITMI03800000Update Price 08040073801 100532 OIY
ITMI02000000Standard Cost 01061032018 5NUM
ITMI02100000Latest Cost 02061033818 5NUM
ITMI02200000Leading Sign 03080035601 K101033+-
ITMI02300000Average Cost 03061035718 5NUM
ITMI01600000Item Process 01087037801
ITMI03000000Stock Take Frequency 03087043103 0

SunSystems 4 – Technical Reference Manual Page 71 of 455


ITMI02400000Comments 02040038120
ITMI02600000Allocation Method 02087037701 100487 FMBOS
ITMI02800000Supplier Control 03040037901 100519 YN
ITMI02900000Customer Control 04040038001 100519 YN
ITMI03200000Commodity Code 03018059915
ITMI03300000Assembly Level 05040061401 100397 0123456789
ITMI03400000Process Components 06040061501 100398 PD
ITMI03500000SOP Ext Item Descr 04087061601 100426 1234A
ITMI03600000POP Ext Item Descr 05087061701 100426 1234A
ITMI05001179BSP - Text 1 00000999900N L000000
ITMI05101179BSP - Price 1 07047012618 5AMT
ITMI05201179BSP - Next Price 1 07067019818 5AMT
ITMI05301179BSP - Date 1 07087027008 DAT
ITMI05401179BSP - Text 2 00000999900N M000000
ITMI05501179BSP - Price 2 08047014418 5AMT
ITMI05601179BSP - Next Price 2 08067021618 5AMT
ITMI05701179BSP - Date 2 08087027808 DAT
ITMI05801179BSP - Text 3 00000999900N N000000
ITMI05901179BSP - Price 3 09047016218 5AMT
ITMI06001179BSP - Next Price 3 09067023418 5AMT
ITMI06101179BSP - Date 3 09087028608 DAT
ITMI06201179BSP - Text 4 00000999900N O000000
ITMI06301179BSP - Price 4 10047018018 5AMT
ITMI06401179BSP - Next Price 4 10067025218 5AMT
ITMI06501179BSP - Date 4 10087029408 DAT
ITMI07002002Analysis Category 0 01118044915 INC0
ITMI07102002Analysis Category 1 02118046415 INC1
ITMI07202002Analysis Category 2 03118047915 INC2
ITMI07302002Analysis Category 3 04118049415 INC3
ITMI07402002Analysis Category 4 05118050915 INC4
ITMI07502002Analysis Category 5 06118052415 INC5
ITMI07602002Analysis Category 6 07118053915 INC6
ITMI07702002Analysis Category 7 08118055415 INC7
ITMI07802002Analysis Category 8 09118056915 INC8
ITMI07902002Analysis Category 9 10118058415 INC9
ITMI13005160Sales Account Desc 00000999900N A000000
ITMI13105160Purchases Acct. Dsc 00000999900N B000000
ITMI13205160Account Code 1 Desc 00000999900N C000000
ITMI13305160Account Code 2 Desc 00000999900N D000000
ITMI13405160Account Code 3 Desc 00000999900N E000000
ITMI13505160Account Code 4 Desc 00000999900N F000000
ITMI13605160Account Code 5 Desc 00000999900N G000000
ITMI13705160Account Code 6 Desc 00000999900N H000000
ITMI13805160Account Code 7 Desc 00000999900N I000000
ITMI13905160Account Code 8 Desc 00000999900N J000000
ITMI12005160Sales Account 01098040110 f000607
ITMI12105160Purchase Account 02098041610 f000607
ITMI12205160Account Code 1 03098061810 f000607
ITMI12305160Account Code 2 04098063310 f000607

SunSystems 4 – Technical Reference Manual Page 72 of 455


ITMI12405160Account Code 3 05098064810 f000607
ITMI12505160Account Code 4 06098066310 f000607
ITMI12605160Account Code 5 07098067810 f000607
ITMI12705160Account Code 6 08098069310 f000607
ITMI12805160Account Code 7 09098070810 f000607
ITMI12905160Account Code 8 10098072310 f000607
ITMP001Item Code Item Description Lookup
ITMP002Standard Cost Item Process Sales Account Analysis 0
ITMP003 Alternate Item Comments
ITMP004 Latest Cost Alloc Method Purchase Account.
ITMP005 Commodity Code Supplier Control
ITMP006 Average Cost Stk. Take Frg. Account Code 1.
ITMP007 Stock Unit Customer Control
ITMP008 Unit Weight SOP Extra Desc . .
ITMP009 Whole Unit Assembly Level
ITMP010 POP Extra Desc . .
ITMP011 Sale Unit Proc Components
ITMP012 8 9
ITMP013 Whole Unit Set Purchase Price
ITMP014 Date Next
ITMP015 Def Purchase Price Update Base Selling Price
ITMP016 Next Selling Price Applies

Characters 1-3 define the reference record type.


Character 4 defines the line type. There are three line types in a layout file:
R for Record Information
I for Field Information
P for Report Information
These line types are described next:

Record Information
Character
4 line type = R
5-7 not used
8-27 name of record type
28-29 not used
30-31 file Id = RF for Reference File, IN for Install File, DD for Data Directory
32-33 number of key items
34-35 audit control slot = two digit number unique to this reference record type

SunSystems 4 – Technical Reference Manual Page 73 of 455


Field Information
Character
4 line type = I
5-7 field number on template
Note that a maximum of 120 fields can be defined on each reference record.
If more than 120 are added they will be ignored by SunSystems, and so will
not appear on the relevant reference maintenance screen.
8-9 Pop-up window number. When Reference Maintenance processes the first
field that has a non-zero window number, a window for that field will
automatically pop up for the fields with that window number. That window’s
dimensions should also be defined on the window. For information on
defining windows on templates see the section Screens and Menus.
10-12 Overlay action number. When reference maintenance displays pop-up
windows, the windows can also be selected from the selection bar. Overlay
must be defined on the template as a parent action (action 0053), and the
overlay action number must be defined as a child action to overlay action.
For more information on defining actions on templates, see the section
Screens and Menus.
13-32 field name
33-34 print line (1-12)
35-37 print start column (001-132)
38-41 offset in record
42-43 field length
44+ validation parameters etc., as follows:
44 ‘Y’ Accept field, mandatory
SPACE Accept field, optional
‘N’ Display field.
45 Decimal places for numeric validation, except for analysis code checking
(type 5) where this is the analysis category letter. Note that validation types
3 and 4 can use character 46 to indicate the number of decimal places for
the input. See the following descriptions of the validation types.
There are six validation types, depending on the contents of character 46+. When character 46 is
a space, simple character validation is achieved. This is shown by validation types 1 to 3. In some
cases the validation types can be combined. For example, the simple character validation can be
combined with the more complex special validation of type 4. Also, the number of decimal places
can be used with the other validation types.

SunSystems 4 – Technical Reference Manual Page 74 of 455


Type 1
Single character validation.
This is identified by ‘ 10’ in characters 46-48.
46 SPACE
47-48 ‘10’
49-52 Error message number
53+ Valid single character values.
For example, ‘ 100432 YS’.
Error number 432.
Valid single character values are a ‘ ’ space, ‘Y’ and ‘S’.
Type 2
Two single character validation in a two character field.
This is identified by ‘ 11’ in characters 46-48.
46 SPACE
47-48 ‘11’
49-52 Error message number
53+ Valid single character values for position 1, followed by a space separator,
followed by valid single character values for position 2.
For example, ‘ 110433ABC YZ’.
Error number 433.
Valid two character combinations are ‘A ’ ‘AY’ ‘AZ’ ‘B ’ ‘BY’ ‘BZ’ ‘C ’ ‘CY’ ‘CZ’.
Note: If a space was valid in position 1, there would be a space in front of ‘ABC’ in the
validation string, that is, ‘ 110433 ABC YZ’.

Note: That the first space after ABC separates the position 1 valid characters from the
position 2 characters. The second space after ABC shows that the second character can
be a space.

Type 3
Two character validation.
This is identified by ‘ 20’ in characters 46-48.
46 SPACE
47-48 ‘20’
49-52 Error message number
53+ Valid two character values.
For example, ‘ 200434A1B2C3’.
Error number 434.
Valid two character values are ‘A1’ ‘B2’ ‘C3’.
Note: If this was a type 2 validation (‘ 110434ABC 123’) the valid characters would be ‘A1’
‘A2’ ‘A3’ ‘B1’ ‘B2’ ‘B3’ ‘C1’ ‘C2’ ‘C3’.

SunSystems 4 – Technical Reference Manual Page 75 of 455


Type 4
Special validation.
This is identified by a non-space in character 46 and numeric digits in characters 47-48.
46 Special validation type (‘A’ to ‘z’) and numbers and special characters (e.g.
‘[’)
47-48 Two numeric digits ‘00’, ‘10’, ‘11’ or ‘20’
49-52 Error message number
53+ Optionally used for character validation.
For example, ‘M000435’.
Special validation type ‘M’. This indicates the validation routine to be used by reference
maintenance. Since a new validation type requires a change to the program, operators cannot
add their own special validation. This type of validation is mainly for internal use by SunSystems
and is not intended to be used externally. Consequently, the special validation types are not
documented.
Error number 435.
When characters 47-48 are ‘00’ there is no character validation. When these characters are ‘10’,
‘11’ or ‘20’ the character validation is performed before the special validation. For example,
‘C10031 Y’ - check entry to be a space or ‘Y’ and if valid perform special validation type ‘C’.
Type 5
Analysis code checking.
This is identified by ‘NC’ in characters 46-47.
45 Analysis category letter
46-47 ‘NC’
48 Analysis category number
49+ Not used.
For example, ‘ANC1’.
The entered analysis code is validated to be a type A1. If the code is valid, the associated name
is displayed at the bottom of the screen. If the code is invalid, a message:
DOES NOT EXIST
is displayed instead. The NC=Analysis Category name is displayed in fields 90-99 when the
template is first displayed.

SunSystems 4 – Technical Reference Manual Page 76 of 455


Type 6
Special processing.
This is identified by characters 46-47 not being ‘NC’ and characters 47-48 being non-numeric.
46-48 Special process type
49+ Not used.
For example, ‘DPD’.
Special processing type ‘DPD’. This indicates that a special process is to be performed following
the entry of a field. This particular process is the validation of the disposal period on the asset
value record. It is similar to type 4 except that the error message number is hard coded in the
routine. It could be a special file update, calculation or screen display.
As with type 4, a new special process requires a change to the reference file maintenance
program, so operators cannot add their own special process. This facility is mainly used for
specialised low-level processing, but some of the special processes might be of use when writing
add-on reference maintenance functions.
The following is a list of possible useful routines:
‘PER’ Period validation.
‘DAT’ Date validation.
‘NUM’ Numeric validation. Leading zeros are inserted before storing on file and
likewise leading zeros are removed before displaying. If ‘NUM’ is not used,
leading spaces are stored on file.
‘AMT’ The same as ‘NUM’ but the number of decimal places is taken from the
ledger definition rather than from character 45.
‘QTY’ The same as ‘NUM’ but the number of decimal places is taken from the
BD=Business Definition rather than from character 45. The BD=Business
Definition states whether quantities are integer or not. Integer quantities
have no decimal places, non-integer quantities are always three decimal
places.
‘RDI’ Record delete inhibit. If the field is spaces, the record can be deleted. If the
field is non-spaces, record deletion is inhibited.
‘EXT’ This is perhaps the most complex special validation technique, but is very
flexible and allows you to write your own COBOL validation routine. The
routine must be written in the same version of COBOL as the version used
for the particular SunSystems implementation. The routine will be called by
the reference maintenance program when a field with a validation type of
‘EXT’ is encountered. The routine is called whenever the field is displayed or
accepted, so it is important for the routine to take note of the current update
mode. See the section User Hooks for more details on the user hook and
how to use this facility.

SunSystems 4 – Technical Reference Manual Page 77 of 455


Report Information
Character
4 line type = P
5-7 Heading number
001 = Heading-1 characters 1-66
002 = Heading-1 characters 67-132
003 = Heading-2 characters 1-66
004 = Heading-2 characters 67-132
005 = Heading-3 characters 1-66
006 = Heading-3 characters 67-132
007 = Heading-4 1-66
008 = Heading-4 67-132
009 = Heading-5 1-66
010 = Heading-5 67-132
011 = Heading-6 1-66
012 = eading-6 67-132
013 = Heading-7 1-66
014 = Heading-7 67-132
015 = Heading-8 1-66
016 = Heading-8 67-132
8-73 Heading text.
At least one and at most ten heading lines may be defined. Heading lines 3 to 10 will only be
printed if they are non-space.
Example
The following line is taken from the preceding layout file [Link]:
ITMI[072]02002Analysis Category 2 [03118047915] INC2
This line represents the following:

Value Char
ITM 1-3 Record Type
I 4 Line Type
[012] 5-7 Field Number on Template
02 8-9 Pop-up Window Number
002 10-12 Pop-up Window Action Number
Analysis Category 2 13-32 Field Name
02 33-34 Print Line (1-16)
128 35-37 Print Start Column (001-132)
252 38-41 Offset in Record
05 42-43 Field Length
SPACE 44 space
INC2 45+ Validation Parameters for Analysis Code I2

SunSystems 4 – Technical Reference Manual Page 78 of 455


Example
If a fax number was added to record type ACC, it would appear on SunSystems screens and
reports. It could be used by the operator’s own programs. However, apart from reference
maintenance, it would not be processed by SunSystems.
Such additions are useful if tailoring SunSystems for a particular industry-specific application.

SZLC
This program converts a reference maintenance layout file from 4.1.4 format to the current 4.2
version. This is a DOS program and it can be run from the DOS prompt or from a DOS window.
Before running SZLC, rename the 4.1.4+ reference maintenance layout file you wish to convert to:
[Link]
where:
s is the letter of the system of the file
nn is the language code
vvv is the version number of the file. For example 417 for version 4.1.7.
To run SZLC, enter the command:
SZLC
The following screen will be displayed:

When the program prompts for the System, type the two letter system prefix.
When the program prompts for the Source Language Code, type the language code of the file you
are converting.
Source Version is the version from which you want to convert the layout file. It will be the suffix of
the file you renamed previously.
Leave the Target Language as zero.

SunSystems 4 – Technical Reference Manual Page 79 of 455


SZLC will then run and the conversion process will produce two files:
[Link]
[Link]
where:
s is the letter of the system of the file
nn is the language code
ttt is the SZLC version number. For example 421 for version 4.2.1.
[Link] will contain the previous version reference maintenance layout file,
but in version 4.2 format.
[Link] is a print file of all the conversions or omissions SZLC has made from the previous
version.
This program can also be used to compare the layout files from a 4.1.4+ version to a 4.2 version.
The two versions have different layouts, but there may be a need to compare the difference
between the two versions of the layout files in SunSystems.
Before running SZLC, rename the 4.1.4+ version file as described previously for running SZLC in
conversion mode.
Then rename 4.2 reference maintenance layout file for comparison to:
[Link]
where:
s is the letter of the system of the file
nn is the language code
ttt is the SZLC version number. For example 421 for version 4.2.1.
The differences will be written to a file called [Link].

Reference Transfer
This feature enables reference records to be I-Imported and E-Exported to and from SunSystems
(Transfer in or out). Since reference Transfer is an option on most of the reference maintenance
screens, the facility is described in the section Actions in both the SunAccount and SunBusiness
Reference Manuals.
The transfer file contains only one record type, relating to the reference maintenance screen used
for I-Import and E-Export. The transfer format in which reference data is transferred is selected by
the operator. Any of the available transfer formats can be used. These are discussed in the
section Actions in both the SunAccount and SunBusiness Reference Manuals.
The layout of records in the transfer file is very similar to the layout of the actual reference record
being transferred. These layouts are listed in the appendices to this manual. The transfer file
layout is the same, except that the first three characters (record type) are omitted. An example of
this is shown next, where the transfer layout for the CA=Chart of Accounts record is described,
with examples of a transfer record in:
NDF format
CDF format.

SunSystems 4 – Technical Reference Manual Page 80 of 455


Note that the field before the LOOKUP code is always the reference lookup Id and must contain the
correct three-character code for that particular record type. The field after the Lookup Code is
Date of Last Update, and is actually defined as a filler on the reference record layout. Compare
this example with the record layout for CA=Chart of Accounts in the appendices to this manual.
Note that the fields called ‘Filler’ in the following example are required only on NDF and FLF
formats.
The exception to this is any field called ‘Filler’ that is described as ‘Date Last Updated’. This must
be included, though the value may be zero, as it will be overwritten with the system date when the
import is performed.
Field Position Length
Account Code 0001 10
Filler 0011 51 value SPACES
Reference Lookup Id 0062 03 value ‘ACC’
Lookup Code 0065 10
Date of Last Update 0075 08 format YYYYMMDD
Account Name 0083 30
A/c Type(D/C/T/P/B/M) 0113 01
[Link]/[Link](B/O) 0114 01
Account Status 0115 01
Conversion Code Ctrl 0116 01
Conversion Code 0117 05
Suppress Revaluation 0122 01
Commitment Check Account 0123 15
Comments 0138 20
Permission 0158 01
Enter Anal Code T0 0159 01
Enter Anal Code T1 0160 01
Enter Anal Code T2 0161 01
Enter Anal Code T3 0162 01
Enter Anal Code T4 0163 01
Enter Anal Code T5 0164 01
Enter Anal Code T6 0165 01
Enter Anal Code T7 0166 01
Enter Anal Code T8 0167 01
Enter Anal Code T9 0168 01
Address Code 0169 10
Direct Debit 0179 01
Priority 0180 01
Pay Method(C/B/S/) 0181 01
Credit Limit 0182 10
Payment Days 0192 03
Payment Terms 0195 01
Discount Days 0196 03
Discount % 0199 05
Discount Days 2 0204 03
Discount % 2 0207 05
Last Transaction 0212 08 format YYYYMMDD
Transactions Present 0220 01
Account Balance 0221 19

SunSystems 4 – Technical Reference Manual Page 81 of 455


Acc. Order Balance 0240 19
Allocation in Progress 0259 01
User Area 0260 30
Tax Code 0290 20
Analysis Category A0 0310 15
Analysis Category A1 0325 15
Analysis Category A2 0340 15
Analysis Category A3 0355 15
Analysis Category A4 0370 15
Analysis Category A5 0385 15
Analysis Category A6 0400 15
Analysis Category A7 0415 15
Analysis Category A8 0430 15
Analysis Category A9 0445 15
Filler 0460 64 value SPACES
Operator Group Mask 0524 5
Filler 0529 05
Settlement 0534 01
Link Account 0535 10
Def Bank Account Code 0545 05

Example A) NDF
64001 ACCPECKED
19961022Pecked Poultry
ProductsDO 64001 1
0000300000030 015030000000000019910228Y-000000000089188420-000000000165689000
US1 W JP-EC R
00000

Example B) CDF
64001,ACC,PECKED,19961022,Pecked Poultry
Products,D,O,,,,,,,64001,,1,,300000,30,,15,3000,,,19910228,Y,-
000000000089188420,-000000000165689000,,,,US1,W,JP-EC,,,R,,,,,,,,

Note: Most fields on the transfer record are not validated during import. Therefore you are
advised to initialise numeric fields; in other words, do not leave them blank or leave any
non-numeric data in them. This will ensure that there are no problems later with invalid
decimal data.
Note: When using NDF, the record terminates after the last non-space character, i.e. it is
variable length. When using other formats, such as CDF, the record terminates after the
delimiter on the last field, i.e. all fields must be included.

Remember also that alphanumeric fields are not validated during import, and no left or right
alignment is done; they are simply written to the reference file as they appear on the import file.
This is important with regard to analysis codes – you may be using numeric values for analysis
codes, but as these are actually alphanumeric fields, you must ensure that the alignment is
consistent.

SunSystems 4 – Technical Reference Manual Page 82 of 455


Technical Reference Manual
Printed Output

SunSystems reports can be printed immediately or stored on disk. In the latter case, the report
can be printed later, or the file transferred to another software package.
Reference report headings are held in the layout files:
[Link]
where x represents the system, and nn represents the language code. Other reports (for example
IT=Inventory Status) and those produced as part of another function (for example GP=Generate
Payments or JI=Journal Import), take their headings from the headings files.
You can also design your own documents in SunSystems. These include SunAccount debtor
statements, creditor remittances, and cheques. SunBusiness documents include forms such as
quotations, invoices, picking lists, etc. The definitions for these documents are held in the report
format file. Similarly, the definitions for AL=Account Listing, JL=Journal Listing and DB=Daybook
Listing reports are held in the report format file.

Report Heading File


Like the message file described in the section Screens and Menus, this is a file that can be
tailored to an operator’s requirements by editing it using a word processor.
The report heading file is called SxnnHEAD, where x represents the system and nn represents
the language code.
SunSystems report headings and other report text are retrieved via calls to the report handler
program SSRH.
Each report title or other line is shown in full as it will appear when printed. The maximum length
of a line is 132 characters, plus the line number. If amending the text, do not assume that you can
use all 132 characters on any line. The length of line printed is governed by the print program in
each case. You can normally assume that all of the line up to the last text character can be used.
If a delimiter of ‘//’ two slashes is shown, that marks the end of available space. If a series of
exclamation marks is shown, this means that a data item is printed in that space, so it should not
be used for headings. The line number should not be amended.
Some reports in SunAccount have two formats: single-currency and multi-currency. A separate
set of headings is given for each. Note that some reports occur in both SAnnHEAD for LA=Ledger
Accounting and SFnnHEAD for AR=Fixed Asset Register.

SunSystems 4 – Technical Reference Manual Page 83 of 455


The default column headings for reports are held towards the end of each report heading file.
These headings are printed over columns of ten characters and can be centred or aligned as
required. Part of the SunAccount report heading file is shown here:
015Account Balance
016Report Balance
017Brought Forward
018Period Total
019END OF REPORT
020 TRIAL
BALANCE
022Account Account Name Account
Opening Peri
023 Code Type
Balance Debi
024Total @@@@@@@@@@
025Ledger Total
@@@@@@@@@@@@@@@@@@@@ @
026DEBTOR //
027CREDITOR //
028PROFIT & LOSS //
029BALANCE SHEET //
030Summary //
031
032Account Code: Priority: Base Date:
033 To: To:
034 Date Reference Description
035 Alloc Due After Due
Due
036 Withhold Alloc Due Due
Due
037Withhold Payment
038Payment
040Account Total //
041Discount Days:
042Report Total //
043AGED DEBTOR ANALYSIS
/044AGED CREDITOR ANALYSIS

SunSystems 4 – Technical Reference Manual Page 84 of 455


Technical Reference Manual
User Hooks

Several SunSystems programs include a ‘user hook’ facility. This means that at certain points in
the program a sub-program can be called. The sub-program is written externally, usually to carry
out special validation, and is written for a specific operator. At the start of the SunSystems
program, it checks for the existence of the user hook, which is done by actually calling the sub-
program.
If a sub-program is present, then the main program calls it at the appropriate times. Otherwise, it
ignores any user hook processing.
On returning to the main program, the content of relevant fields is checked, and the program will
act accordingly. For example, it might display a message set up by the user hook program.
The programs that offer this facility are:
AA=Account Allocation
AQ=Account Inquiry
JE=Journal Entry
JI=Journal Import
GP=Generate Payments
GD=Generate Debits
Reference Maintenance
Reference Maintenance Special Edit
SE=Sales Order Entry
SI=Sales Order Import
PE=Purchase Order Entry
PI=Purchase Import
VE=Purchase Invoice Entry
VM=Purchase Invoice Matching
Each is discussed in detail in this section.
Note for VAX/VMS users: The sub-program should be linked with the other
SunSystems object programs in [Link].

SunSystems 4 – Technical Reference Manual Page 85 of 455


Reference Maintenance User Hook SSRUEXT
The user hook facility is available when you are updating reference records which have been
defined by the relevant reference layout files, and a field has a special validation parameter of
EXT. See the section Reference Maintenance. On entering that field, the reference maintenance
program (SSRU) will call the user hook program. This program must be called SSRUEXT. It can
be used to perform additional validation for that field, and can instruct SSRU to display a message
and/or re-accept that field, or to continue on to the next.
The following linkage section is used to transfer data to and from the routine:
01 EXTERNAL-EDIT-DATA.
03 EXTERNAL-RECORD-ID PIC X(03).
03 EXTERNAL-ITEM-NO PIC 9(03).
03 EXTERNAL-UPDATE-MODE PIC X(01).
03 EXTERNAL-ERROR-MESSAGE PIC X(79).
03 EXTERNAL-REENTER PIC X(01).
03 EXTERNAL-ITEM PIC X(30).
03 EXTERNAL-PRIOR-ITEM PIC X(30).
where:
EXTERNAL-RECORD-ID Is the reference record type.
EXTERNAL-ITEM-NO Is the current field number.
EXTERNAL-UPDATE-MODE Is the reference maintenance update mode. This can be
any of the valid selection box entries. For example, C-
Create or A-Amend. Note that this action will vary if other
language versions are in use.
EXTERNAL-ERROR-MESSAGE Is an error message returned from the external routine.
This message will be displayed by the reference
maintenance program if it is not spaces.
EXTERNAL-REENTER This is returned by the external routine. ‘Y’ indicates that
the field was in error and must be re-accepted. ‘N’ or a
space indicates that the field was valid and so the next
field can be accepted.
EXTERNAL-ITEM This is the data typed in the field to be handed to the
external routine.
EXTERNAL-PRIOR-ITEM This is the content of the field before being changed by
operator input.
In addition, the standard SunSystems linkage area is available.
The format of the call statement from SSRU is:
CALL EXTERNAL-EDIT-PROG USING EXTERNAL-EDIT-DATA,
LINK-RECORD
The reference maintenance program will redisplay the field immediately on return so that any
changes made to the data by SSRUEXT are shown.

SunSystems 4 – Technical Reference Manual Page 86 of 455


Report Formatter Amount in Words Hook SSRF??EX
The indicator on report definition, which defines the language to be used in word sentence
construction, currently allows settings of 1 through to 4, but this has been expanded to accept the
standard numeric language codes supported by SunSystems. The two types of word sentences
that can be passed are amount in words and date in words.
When word sentence construction is requested, the language code will be checked and, if set to
anything other than English (01), will result in a call to a user hook for the appropriate language
code (i.e. SSRFnnEX where nn is the language code), to construct the word sentence.
The following linkage section is used to transfer data to and from the routine:
01 WS-USER-AREA.
03 WS-USER-DEFAULT-DEC-PL PIC 9.
03 WS-USER-DATE-FORMAT PIC X.
03 WS-USER-SENTENCE-AMOUNT PIC 9(10)V9(3).
03 WS-USER-SENTENCE-DATE PIC 9(8).
03 WS-USER-SENTENCES.
05 WS-USER-SENTENCE1 PIC X(80).
05 WS-USER-SENTENCE2 PIC X(80).
05 WS-USER-SENTENCE3 PIC X(80).
05 WS-USER-SENTENCE4 PIC X(80).
03 WS-USER-SENTENCE REDEFINES WS-USER-SENTENCES PIC X(80) OCCURS 4.
03 WS-USER-SENTENCE-LENGTHS.
05 WS-USER-SENTENCE1-LGTH PIC 99.
05 WS-USER-SENTENCE2-LGTH PIC 99.
05 WS-USER-SENTENCE3-LGTH PIC 99.
05 WS-USER-SENTENCE4-LGTH PIC 99.
03 WS-USER-SENTENCE-LGTH REDEFINES WS-USER-SENTENCE-LENGTHS PIC 99 OCCURS 4.
03 WS-USER-ERROR-IND PIC XX.
where:
WS-USER-DEFAULT-DEC-PL The number of decimal places in the amount passed.
WS-USER-DATE-FORMAT The date format required.

SunSystems 4 – Technical Reference Manual Page 87 of 455


Valid date formats are:
1 = 03 November 1995
2 = 3 November, 1995
3 = November 3, 1995
4 = 3-Nov-1995
5 = November 95
6 = Nov, 95
7 = 3rd November 1995
8 = November 3rd 1995
A = mm/dd/yyyy
B = dd/mm/yyyy
C = yyyy/mm/dd
WS-USER-SENTENCE-AMOUNT Amount to be converted to words from the report
formatter.
WS-USER-SENTENCE-DATE Date to be converted to words from the report formatter.
WS-USER-SENTENCES Area to return the amount in words from the user hook.
There are four areas of 80 bytes each.
WS-USER-SENTENCE-LENGTHS The lengths from the report formatter of the amount in
words in the four areas of linkage.
WS-USER-ERROR-IND The user hook should set this to Y if the amount or date in
words is too long for the area defined.
In addition, the standard SunSystems linkage area, report formatter linkage area and report
format layout are available. The format of the call statement is:
CALL EXTERNAL-EDIT-PROG USING WS-USER-AREA
RFLINK-COMMON-RECORD
LINK-RECORD
REPFMT-ITEM-RECORD.

SunSystems 4 – Technical Reference Manual Page 88 of 455


Journal Entry/Import User Hook SAJEEXT/SAJIEXT
The user hook program for JE=Journal Entry must be called SAJEEXT. If this program exists, the
JE=Journal Entry function calls it after each line created or amended on the journal, so the hook
program can be used for extra validation.
The fields passed to the sub-program are:
01 WS-USER-RECORD PIC X(512).
01 WS-USER-LINK-AREA.
03 WS-USER-DATABASE-CODE PIC X(3).
03 WS-USER-OPERATOR-ID PIC X(3).
03 WS-USER-ACC-RECORD PIC 1024.
03 WS-USER-TRANS-LINE-NO PIC 9(03) .
03 FILLER PIC X(03).
01 WS-USER-STATUS PIC X(1).
01 WS-USER-MESSAGE PIC X(80).
where:
WS-USER-RECORD Holds the current transaction line in SAF (ledger backup)
format.
WS-USER-DATABASE-CODE Holds the current database code.
WS-USER-OPERATOR-ID Holds the operator Id.
WS-USER-ACC-RECORD Holds the CA=Charts of Accounts record for the account
currently being processed.
WS-USER-TRANS-LINE-NO Holds the line number of the journal about to be posted.
This field is only valid in SAJE.
In addition, the standard SunSystems linkage area is available. The format of the call statement
is:
CALL WS-USER-PROG USING WS-USER-RECORD,
WS-USER-LINK-AREA,
WS-USER-STATUS,
WS-USER-MESSAGE,
LINK-RECORD.
On returning to JE=Journal Entry, if WS-USER-MESSAGE is not spaces, then it will be displayed
on the JE=Journal Entry screen. If WS-USER-STATUS is ‘E’, then JE=Journal Entry assumes the
current line is invalid and goes back to the period box ready to accept that line again. If at the
posting stage, then posting will not take place.
WS-USER-STATUS may also be set to A’, which means the hook program has changed the
content of the current transaction record and JE=Journal Entry must reset its own fields
accordingly, or it may be ‘F’, which means the hook program has changed the content of the
record but there is an error, so the line must be re-entered (as with ‘E’).

SunSystems 4 – Technical Reference Manual Page 89 of 455


There is also an initial ‘start-of-session’ call, an ‘end-of-journal’ call and an ‘end-of-session’ call.
See the following for details of the content of the linkage fields for each of these calls to the sub-
program, and whether JE=Journal Entry will take heed of the content of WS-USER-STATUS and
WS-USER-MESSAGE when control is passed back to it. This facility is also available with
JI=Journal Import, where the program would be called SAJIEXT. In this case, if the user hook
returns a status of ‘E’ or ‘F’ during the validation of transactions phase, then the transaction is
rejected. If the message is not blank, then the first ten characters of the message will be printed
on the journal import report next to the relevant transaction.
When amending data on the journal line, only the following fields can be amended:
Line Description
Line Due Date
Line Allocation
Line Allocation Date
Line Allocation Period
Line Allocation Reference
Line Transaction on Analysis Codes.

Call Contents of Contents of WS-USER- Responds to


WS-USER- LINK- AREA STATUS and
RECORD MESSAGE
1. Start of JE/JI session SPACES DATABASE-CODE and NO
OPERATOR-ID
2. Start of Journal ALL ‘S’ DATABASE-CODE and NO
OPERATOR-ID
3. End of Journal line CURRENT DATABASE-CODE, YES
TRANSACTIO OPERATOR-ID and
N ACCOUNT-RECORD
4. End of Journal (post) ALL ‘E’ DATABASE-CODE and YES
OPERATOR-ID
5. End of session ALL ‘Z’ SPACES NO

SunSystems 4 – Technical Reference Manual Page 90 of 455


Account Allocation User Hook SAAREXT
The user hook program for AA=Account Allocation must be called SAAREXT. If this program
exists, the AA=Account Allocation function calls it just before a ledger transaction is either
amended or created. This user hook is a read only program and will not update the transactions
being posted. The fields passed to the sub-program are:
01 WS-USER-RECORD PIC X(512).
01 WS-USER-LINK-AREA.
03 WS-USER-SPLIT PIC X(1).
03 WS-USER-AMEND PIC X(1).
03 WS-USER-ALLOC PIC X(1).
03 WS-USER-GENERATE PIC X(1).
WS-USER-RECORD Holds the current transaction line in SAF (ledger backup)
format.
WS-USER-SPLIT Is set to ‘Y’ if the transaction was created because of asplit
transaction in account allocation.
WS-USER-AMEND Is set to ‘Y’ if the transaction was amended in account
allocation.
WS-USER-ALLOC Is set to ‘Y’ if the transaction was allocated in account
allocation.
WS-USER-GENERATE Is set to ‘Y’ if the transaction was created by a generated
journal in account allocation.
In addition, the standard SunSystems linkage area is available. The format of the call statement
is:
CALL WS-USER-PROG USING WS-USER-RECORD
WS-USER-LINK-AREA
LINK-RECORD

Account Allocation User Hook SAAREXT2


The user hook program for account allocation/inquiry must be called SAAREXT2. If this program
exists, the AA=Account Allocation or AQ=Account Inquiry function calls it if the operator has
entered the F5 key when the cursor is in the selection box. This user hook is a read only program
and will not update any records passed to it. The fields passed to the sub-program are:
01 WS-USER-ACCOUNT-RECORD PIC 1024.
WS-USER-ACCOUNT-RECORD
Holds the account record for the account currently being processed or queried.
In addition, the standard SunSystems linkage area is available. The format of the call statement
is:
CALL WS-USER-PROG-2 USING WS-USER-ACCOUNT-RECORD
LINK-RECORD

SunSystems 4 – Technical Reference Manual Page 91 of 455


Generate Payments/Debits User Hook SAGPEX
The user hook is not called directly by the generate payments/debits functions, rather it is called
after the GP=Generate Payments or GD=Generate Debits functions have completed processing.
This user hook can then read and amend the payment file before print remittances processes and
then deletes the payment file.
Generate payments/debits takes note of two new ‘process modes’. For instructions on how to set
up the process mode for on the MM01 Selection Menu see the section Screens and Menus. So
the following are valid process modes for calling the generate payments/debits program (SAGP)
and how that program will handle those codes:
0 = Generate Payments, No Call to User Hook
1 = Generate Debits, No Call to User Hook
2 = Generate Payments, Call to User Hook
3 = Generate Debits, Call to User Hook
If the process mode is set to 2 or 3, the program, on completing successfully, will pass control to
program SAGPEX.
Depending on the setting of the force journal listing indicator, generate payments may pass
control to journal listing prior to print remittance. If the process mode is set to 2 or 3, this link will
be by-passed, therefore this link will need to set up by the user hook program (SAGPEX).
The processing to determine which program is called next will remain in generate payments and if
the user hook is called next, will be reflected in the value assigned to the LINK-PROCESS-MODE
indicator.
The LINK-PROCESS-MODE will be set to one of the following values when control is passed to
SAGPEX:
2 = from Generate Payments, no link to Journal Listing required
3 = from Generate Debits, no link to Journal Listing required
4 = from Generate Payments, link on to Journal Listing (Direct Print)
5 = from Generate Debits, link on to Journal Listing (Direct Print)
6 = from Generate Payments, link on to Journal Listing (Store Print)
7 = from Generate Debits, link on to Journal Listing (Store Print)
The user hook will need to set the following linkage area depending on the LINKPROCESS-
MODE. To link to journal listing set LINK-SUBSEQUENT-PROG to “SAAS” and LINK-NEXT-
PROGRAM-ID to “SAJL”. The LINK-PROCESSMODE is set to 2 if printing direct and to 3 if
storing to disk.
If linking directly to print remittance, LINK-PROCESS-MODE should be set to 2, and LINK-NEXT-
PROGRAM-ID to “SAAS”.

SunSystems 4 – Technical Reference Manual Page 92 of 455


Sales Order Entry/Import User Hook SBTDEXT
The user hook program for SE=Sales Order Entry and SI=Sales Order Import must be called
SBTDEXT. If this program exists, the sales order entry program will call the user hook after each
calculation code and item code, before the calculation code designated as the inventory quantity,
for each line created or amended on the SE=Sales Order Entry, Items screen. There is also an
initial call and a final call to the sub-program. SI=Sales Order Import behaves in the same way
except you will not be amending lines, just creating them.
The user hook can be used to amend the following values on an SE=Sales Order detail line:
calculation codes, analysis codes (M-codes), inventory quantity, and also the account code. It can
also write new description records.
The following linkage section is used to transfer data to and from the routine:
01 WS-USER-RECORD PIC X(769).
*
* Record Layout for Order Detail Record (Backup Form)
01 FILLER REDEFINES WS-USER-RECORD.
03 WS-USER-KEY.
05 WS-USER-TRANS-TYPE PIC X(01).
* Type “D”, Order detail record.
* Type “E”, Quotation detail record.
05 FILLER PIC X(05).
05 WS-USER-TRANS-REF.
07 WS-USER-TRANS-PREF PIC X(04).
07 WS-USER-TRANS-SUFF PIC X(06).
05 WS-USER-TRANS-LINE-NO.
07 WS-USER-TRANS-LINE-NUMBER PIC 9(03).
07 WS-USER-TRANS-LINE-SUFF.
09 WS-USER-TRANS-LINE-SUFF-A PIC X(01).
09 WS-USER-TRANS-LINE-SUFF-B PIC X(01).
03 WS-USER-ALTERNATE-KEY.
05 WS-USER-KEY-ID PIC X(01).
05 WS-USER-LOCATION PIC X(05).
05 WS-USER-ITEM-CODE.
07 WS-USER-ITEM-CODE-1 PIC X(01).
07 FILLER PIC X(14).
05 WS-USER-TRANS-DATE-X.
07 WS-USER-TRANS-DATE PIC 9(8).
05 WS-USER-SEQUENCE-X.
07 WS-USER-SEQUENCE PIC 9(4).
03 WS-USER-DATA.
05 WS-USER-STATUS.
07 WS-USER-STATUS-1 PIC 9(01).
07 WS-USER-STATUS-2 PIC 9(01).
05 WS-USER-TRANS-CD PIC X(01).
05 WS-USER-ITEM-DESCRIPTION PIC X(030)
* Calculation code values
07 FILLER OCCURS 20.
09 WS-USER-VALUE PIC S9(13)V9(5) SIGN LEADING SEPARATE.

SunSystems 4 – Technical Reference Manual Page 93 of 455


05 WS-USER-VALUES-R REDEFINES WS-USER-VALUES.
07 WS-USER-VALUE-1 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-2 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-3 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-4 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-5 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-6 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-7 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-8 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-9 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-10 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-11 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-12 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-13 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-14 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-15 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-16 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-17 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-18 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-19 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
07 WS-USER-VALUE-20 PIC S9(13)V9(5) SIGN LEADING SEPARATE.
05 WS-USER-VALUEXS REDEFINES WS-USER-VALUES.
07 FILLER OCCURS 20.
09 WS-USER-VALUEX PIC X(19).
05 WS-USER-VALUEXS-R REDEFINES WS-USER-VALUES.
07 WS-USER-VALUEX-1 PIC X(19).
07 WS-USER-VALUEX-2 PIC X(19).
07 WS-USER-VALUEX-3 PIC X(19).
07 WS-USER-VALUEX-4 PIC X(19).
07 WS-USER-VALUEX-5 PIC X(19).
07 WS-USER-VALUEX-6 PIC X(19).
07 WS-USER-VALUEX-7 PIC X(19).
07 WS-USER-VALUEX-8 PIC X(19).
07 WS-USER-VALUEX-9 PIC X(19).
07 WS-USER-VALUEX-10 PIC X(19).
07 WS-USER-VALUEX-11 PIC X(19).
07 WS-USER-VALUEX-12 PIC X(19).
07 WS-USER-VALUEX-13 PIC X(19).
07 WS-USER-VALUEX-14 PIC X(19).
07 WS-USER-VALUEX-15 PIC X(19).
07 WS-USER-VALUEX-16 PIC X(19).
07 WS-USER-VALUEX-17 PIC X(19).
07 WS-USER-VALUEX-18 PIC X(19).
07 WS-USER-VALUEX-19 PIC X(19).
07 WS-USER-VALUEX-20 PIC X(19).

SunSystems 4 – Technical Reference Manual Page 94 of 455


05 WS-USER-MISC-DATA.
07 WS-USER-TRANS-CODE PIC X(05).
07 WS-USER-DATE-DELIVERED PIC 9(08).
07 WS-USER-DATE-INVOICED PIC 9(08).
07 WS-USER-PERIOD-ORDERED PIC 9(07).
07 WS-USER-PERIOD-INVOICED PIC 9(07).
07 WS-USER-UNIT-SALE PIC X(05).
07 WS-USER-INVOICE-NO PIC X(15).
07 WS-USER-ACK-PRINT PIC X(01).
07 WS-USER-MISC-PRINT PIC X(01).
05 WS-USER-ALLOCATION-REF PIC X(19).
05 WS-USER-RECPT-REF PIC X(15).
05 WS-USER-LINE-ANAL-IND PIC X(01).
05 WS-USER-ACCOUNT-CODE PIC X(15).
05 WS-USER-ASSET-CODE PIC X(10).
05 WS-USER-ASSET-SUB-CODE PIC X(5).
05 WS-USER-ASSET-IND PIC X(01).
05 WS-USER-ID-ENTERED PIC XXX.
05 WS-USER-ID-INVOICED PIC XXX.
05 WS-USER-LINKED-TEXT PIC X(01).
05 WS-USER-ANALYSIS-CODES.
07 WS-USER-ANALYSIS-CODE PIC X(15) OCCURS 10.
05 WS-USER-ANALYSIS-CODES-R REDEFINES WS-USER-ANALYSIS-CODES.
07 WS-USER-ANALYSIS-CODE-1 PIC X(15).
07 WS-USER-ANALYSIS-CODE-2 PIC X(15).
07 WS-USER-ANALYSIS-CODE-3 PIC X(15).
07 WS-USER-ANALYSIS-CODE-4 PIC X(15).
07 WS-USER-ANALYSIS-CODE-5 PIC X(15).
07 WS-USER-ANALYSIS-CODE-6 PIC X(15).
07 WS-USER-ANALYSIS-CODE-7 PIC X(15).
07 WS-USER-ANALYSIS-CODE-8 PIC X(15).
07 WS-USER-ANALYSIS-CODE-9 PIC X(15).
07 WS-USER-ANALYSIS-CODE-10 PIC X(15).
05 WS-USER-ASSEMBLY-IND PIC X(01).
05 WS-USER-ASSEMBLY-DESC-IND PIC X(01).
05 WS-USER-ASSEMBLY-LEVEL-IND PIC X(01).
05 WS-USER-PRICE-BOOK PIC X(05).
05 WS-USER-SALES-QTY-VALUE PIC 9(2).
05 WS-USER-STOCK-QTY-VALUE PIC 9(2).
05 WS-USER-TOTAL-VALUE PIC 9(2).
05 WS-USER-DISPLAY-VALUES.
07 WS-USER-DISPLAY-VALUE-1 PIC 9(2).
07 WS-USER-DISPLAY-VALUE-2 PIC 9(2).
07 WS-USER-DISPLAY-VALUE-3 PIC 9(2).
05 FILLER REDEFINES WS-USER-DISPLAY-VALUES.
07 WS-USER-DISPLAY-VALUE OCCURS 3 PIC 9(2).
05 FILLER PIC X(2).

SunSystems 4 – Technical Reference Manual Page 95 of 455


*
* User Hook Order Header record
*
01 WS-USER-LINK-AREA.
*
03 WS-ACTION PIC 99 VALUE 99.
*
03 WS-CALLING-FLAGS PIC X(50).
03 WS-CALCULATION-CODE PIC X(3).
03 WS-CALCULATION-NUMBER PIC 99.
03 WS-RECORDS-ADDED PIC 99.
03 WS-USER-MESSAGE.
04 WS-MESS-PART1 PIC X(40).
01 FILLER REDEFINES WS-USER-HEADER.
03 WS-USER-H-KEY.
05 WS-USER-H-TRANS-TYPE PIC X(01).
* Type “O” - Order header record
* Type “I” - Invoice header record
* Type “Q” - Quotation header record
05 FILLER PIC X(05).
05 WS-USER-H-TRANS-REF.
07 WS-USER-H-TRANS-PREF PIC X(04).
07 WS-USER-H-TRANS-SUFF PIC X(06).
05 FILLER PIC X(05).
03 WS-USER-H-ALTERNATE-KEY.
05 WS-USER-H-KEY-ID PIC X(01).
* Id = “H”
* Id = “Q”
05 WS-USER-H-CUSTOMER-CODE PIC X(10).
05 WS-USER-H-TRANS-DATE PIC 9(08).
05 FILLER PIC X(14).
03 WS-USER-H-DATA.
05 WS-USER-H-STATUS.
07 WS-USER-H-STATUS-1 PIC 9(01).
* Status-1: 0 = Awaiting Picking,
* 3 = Awaiting Despatch,
* 7 = Awaiting Invoice,
* 8 = Complete
07 WS-USER-H-STATUS-2 PIC 9(01).
* Status-2: 1 = Order Held
05 WS-USER-H-TRANS-CD PIC X(01).
05 WS-USER-H-TRANS-CODE PIC X(05).
05 FILLER PIC X(05).
05 WS-USER-H-ORDER-NO PIC X(10).
05 WS-USER-H-D-NOTE-NO PIC X(15).
05 WS-USER-H-DELIVERY-CODE PIC X(10).
05 WS-USER-H-DATE-ORDER PIC 9(08).
05 WS-USER-H-DATE-ACKNOWLEDGED PIC 9(08).
05 WS-USER-H-DATE-PICKED PIC 9(08).

SunSystems 4 – Technical Reference Manual Page 96 of 455


05 WS-USER-H-DATE-DELIVERED PIC 9(08).
05 WS-USER-H-DATE-INVOICED PIC 9(08).
05 WS-USER-H-PERIOD-INVOICEDPIC 9(07).
05 WS-USER-H-CUSTOMER-REF PIC X(025).
05 WS-USER-H-COMMENTS PIC X(025).
05 WS-USER-H-TRANS-VALUE PIC S9(13)V9(5) SIGN LEADING SEPARATE.
05 WS-USER-H-PAYMENT-DUE-DATE PIC X(8).
05 WS-USER-H-ANALYSIS-ADDRESS PIC X(01).
05 WS-USER-H-LINKED-TEXT PIC X(01).
05 WS-USER-H-ANALYSIS-CODES.
07 WS-USER-H-ANALYSIS-CODE PIC X(15) OCCURS 10.
05 WS-USER-H-ANALYSIS-CODES-R REDEFINES WS-USER-H-ANALYSIS-CODES.
07 WS-USER-H-ANALYSIS-CODE-1 PIC X(15).
07 WS-USER-H-ANALYSIS-CODE-2 PIC X(15).
07 WS-USER-H-ANALYSIS-CODE-3 PIC X(15).
07 WS-USER-H-ANALYSIS-CODE-4 PIC X(15).
07 WS-USER-H-ANALYSIS-CODE-5 PIC X(15).
07 WS-USER-H-ANALYSIS-CODE-6 PIC X(15).
07 WS-USER-H-ANALYSIS-CODE-7 PIC X(15).
07 WS-USER-H-ANALYSIS-CODE-8 PIC X(15).
07 WS-USER-H-ANALYSIS-CODE-9 PIC X(15).
07 WS-USER-H-ANALYSIS-CODE-10 PIC X(15).
05 WS-USER-H-QUOTE-CONVERT PIC X(01).
05 WS-USER-H-QUOTE-PRINT PIC X(01).
05 WS-USER-H-QUOTE-EXPIRY-DATE PIC 9(8).
05 WS-USER-H-PERIOD-QUOTED PIC 9(7).
05 FILLER PIC X(5).
05 WS-USER-H-QUOTATION-REF PIC X(10).
05 WS-USER-H-DATE-QUOTED PIC 9(8).
05 FILLER PIC X(351).

where:
WS-USER-RECORD Is the current order detail record in backup format.
WS-ACTION Indicates what stage in the processing the SE=Sales
Order Entry, SI=Sales Order Import program is at when it
calls the user hook:
00 - Initialisation
01 - Creation of detail line
02 - Amendment of detail line (SE only),
09 - Termination of sales entry items/sales import
98 - Last call to user hook before termination of user
hook
99 - Test if the user hook is present.
Other values should be ignored by the hook program.

SunSystems 4 – Technical Reference Manual Page 97 of 455


WS-CALLING-FLAGS Indicate to the calling program when to call the sub-
program. These fields must be set to Y or blank by the
user hook during the initialisation call.
Characters 1 to 20 correspond to the 20 calculation codes,
and should be set to Y if the user hook is to be called after
that calculation code.
Characters 21 to 30 are not currently used.
Character 31 indicates whether the user hook should be
called directly after the item code has been entered.
Character 32 indicates whether the user hook should be
called prior to entering the inventory quantity in SE=Sales
Order Entry.
The quantity returned by the user hook will be displayed
on the screen and, unless the operator amends it on the
screen, this quantity will be used for all further
calculations.
Character 33 is not currently used.
Character 34 indicates whether the user hook should be
called just prior to writing or rewriting the detail record.
Characters 35 to 50 are not defined.
WS-CALCULATION-CODE Contains the calculation code currently being processed.
WS-CALCULATION-NUMBER Contains the sequence number of the calculation code
being processed at the time, i.e. 1 to 20, or 34 for end-
record processing.
WS-RECORDS-ADDED Contains the number of description records added by the
user hook.
WS-USER-MESSAGE Contains a message passed by the user hook to the
calling program after the end-processing call to the user
hook. The calling program will display/print the message
providing WS-USERLINK- STATUS is set to E or W.
WS-USER-LINK-STATUS Indicates whether or not an error has occurred in the hook
prior to returning from the end-record processing hook:
E An error has occurred. WS-USER-MESSAGE will be displayed on return from the hook
and the current line is assumed to be invalid.
W A discrepancy has occurred. WS-USER-MESSAGE will be displayed on return from the
hook and normal processing will continue.
Blank Normal processing will continue.
WS-USER-HEADER Is the current order header in backup format.
Nothing in the order header may be updated by the user hook.
CALL WS-USER-PROG USING WS-USER-RECORD,
WS-USER-LINK-AREA,
WS-USER-LINK-STATUS,
WS-USER-HEADER
LINK-RECORD

SunSystems 4 – Technical Reference Manual Page 98 of 455


Purchase Order Entry/Import User Hook SPPDEXT
The user hook program for PE=Purchase Order Entry and PI=Purchase Import must be called
SPPDEXT. If this function exists, the purchase order entry program will call the user hook after
each calculation code and item code, before the purchase and inventory quantities for each line
created or amended on the PE=Purchase Order Entry, Items screen. There is also an initial call
and a final call to the sub-program.
The user hook can be used to amend the following values on a PE=Purchase Order Entry detail
line: the purchase and inventory quantities, the calculation codes, analysis codes (M-codes),
account code, asset code and asset subcode. It can also write new description records.
The format of the call statement is:
The following linkage section is used to transfer data to and from the routine:
01 WS-USER-RECORD PIC X(1024).
* Record Layout for Purchase Order Detail Record (Backup Form)
01 FILLER REDEFINES WS-USER-RECORD.
03 WS-USER-KEY.
05 WS-USER-REC-TYPE PIC X(01).
05 FILLER PIC X(05).
05 WS-USER-REFERENCE-LINE.
07 WS-USER-REFERENCE.
09 WS-USER-REF-PREFIX PIC X(04).
09 WS-USER-REF-SUFFIX PIC 9(06).
07 WS-USER-LINE-NO.
09 WS-USER-LINE-NO-A PIC 9(03).
09 WS-USER-LINE-NO-B PIC X(01).
03 WS-USER-DATA.
05 WS-USER-ALTERNATE-KEY-1.
07 WS-USER-KEY-1-ID PIC X(01).
07 WS-USER-LOCATION PIC X(05).
07 WS-USER-ITEM-CODE PIC X(15).
07 WS-USER-DEL-DATE PIC 9(08).
07 WS-USER-SEQUENCE PIC 9(04).
05 WS-USER-ALTERNATE-KEY-2.
07 WS-USER-KEY-2-ID PIC X(01).
07 FILLER PIC X(05).
07 WS-USER-HIGHEST-REFERENCE PIC X(10).
05 WS-USER-REST-OF-DATA.
07 WS-USER-ORDER-STATUS.
09 WS-USER-ORDER-STATUS-1 PIC 9(01).
09 WS-USER-ORDER-STATUS-2 PIC 9(01).
07 WS-USER-GRN-STATUS.
09 WS-USER-GRN-STATUS-1 PIC 9(01).
09 WS-USER-GRN-STATUS-2 PIC 9(01).
07 WS-USER-INVOICE-STATUS.
09 WS-USER-INVOICE-STATUS-1 PIC 9(01).
09 WS-USER-INVOICE-STATUS-2 PIC 9(01).
07 WS-USER-CD PIC X(01).
07 WS-USER-LINKED-TEXT PIC X(01).
07 WS-USER-ID-ORDER PIC X(03).

SunSystems 4 – Technical Reference Manual Page 99 of 455


07 WS-USER-ID-GRN PIC X(03).
07 WS-USER-ID-INVOICED PIC X(03).
07 WS-USER-SUPP-ITEM-DESC PIC X(30).
07 WS-USER-SUPP-ITEM-CODE PIC X(15).
07 WS-USER-PURCH-QTY PIC S9(13)V9(05) SIGN LEADING SEPARATE.
07 WS-USER-PURCH-UNIT PIC X(05).
07 WS-USER-STOCK-QTY PIC S9(13)V9(05) SIGN LEADING SEPARATE.
07 WS-USER-BASE-COST PIC S9(13)V9(05) SIGN LEADING SEPARATE.
07 WS-USER-CALC-VALUES.
09 WS-USER-CALC-VALUE-1 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-2 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-3 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-4 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-5 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-6 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-7 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-8 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-9 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-10 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-11 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-12 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-13 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-14 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-15 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-16 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
09 WS-USER-CALC-VALUE-17 PIC S9(13)V9(05) SIGN LEADING SEPARATE.
07 WS-USER-CALC-VALUE REDEFINES WS-USER-CALC-VALUES PIC
S9(13)V9(05)
SIGN LEADING SEPARATE OCCURS 17
07 FILLER PIC X(20).
07 WS-USER-GRN-REFERENCE PIC X(10).
07 WS-USER-GRN-DATE PIC 9(08).
07 WS-USER-DEL-ADVISED PIC X(01).
07 WS-USER-INV-DATE PIC 9(08).
07 WS-USER-INV-PERIOD PIC 9(07).
07 WS-USER-INV-APPROV-DATE PIC 9(08).
07 WS-USER-TRANS-TYPE PIC X(05).
07 WS-USER-STOCK-UPDATED PIC X(01).
07 WS-USER-REASON-CODE PIC X(01).
07 WS-USER-LINE-VALUE PIC 9(02).
07 WS-USER-MATCH-VALUE PIC 9(02).
07 WS-USER-COST-VALUE PIC 9(02).
07 WS-USER-ACCOUNT-CODE PIC X(15).
07 WS-USER-ASSET-CODE PIC X(10).
07 WS-USER-ASSET-SUB-CODE PIC X(05).
07 WS-USER-ASSET-IND PIC X(01).
07 WS-USER-RECEIPT-REF PIC X(15).
07 WS-USER-AUDIT-DATE PIC 9(08).

SunSystems 4 – Technical Reference Manual Page 100 of 455


07 WS-USER-ANAL-CODES.
09 WS-USER-ANAL-CODE-0 PIC X(15).
09 WS-USER-ANAL-CODE-1 PIC X(15).
09 WS-USER-ANAL-CODE-2 PIC X(15).
09 WS-USER-ANAL-CODE-3 PIC X(15).
09 WS-USER-ANAL-CODE-4 PIC X(15).
09 WS-USER-ANAL-CODE-5 PIC X(15).
09 WS-USER-ANAL-CODE-6 PIC X(15).
09 WS-USER-ANAL-CODE-7 PIC X(15).
09 WS-USER-ANAL-CODE-8 PIC X(15).
09 WS-USER-ANAL-CODE-9 PIC X(15).
07 WS-USER-ANAL-CODE REDEFINES WS-USER-ANAL-CODES PIC X(15) OCCURS 10.
07 WS-USER-UNAPP-PERIOD-POSTED PIC 9(7).
07 WS-USER-ORDER-DATE PIC 9(8).
07 WS-USER-STOCK-PERIOD-POSTED PIC 9(7).
07 WS-USER-PERIOD-ORDERED PIC 9(7).
07 WS-USER-AMEND-DATE PIC 9(8).
07 WS-USER-ORIG-LINE-NO-X.
09 WS-USER-ORIG-LINE-NO-A PIC 999.
09 WS-USER-ORIG-LINE-NO-B PIC X.
07 WS-USER-MVT-VALUE PIC S9(13)V9(5).
07 WS-USER-BCHECK-VALUE PIC 99.
07 WS-USER-EXPEND-VALUE PIC 99.
07 FILLER PIC X(166).
01 WS-USER-LINK-AREA.
03 WS-ACTION PIC 99 VALUE 99.
03 WS-CALLING-FLAGS PIC X(50).
03 WS-CALCULATION-CODE PIC X(03).
03 WS-CALCULATION-NUMBER PIC 9(02).
03 WS-RECORDS-ADDED PIC 9(02).
03 WS-USER-MESSAGE PIC X(80).
01 WS-USER-LINK-STATUS PIC X(01).
01 WS-USER-HEADER.
03 WS-USER-HEADER-ORDER PIC X(700).
03 WS-USER-HEADER-INVOICE PIC X(700).
01 WS-USER-J-RECORD.
* Purchase Order Header Record.
03 WS-USER-J-KEY.
05 WS-USER-J-REC-TYPE PIC X(01).
* Record Type = “J”.
05 FILLER PIC X(05).
05 WS-USER-J-REFERENCE.
07 WS-USER-J-REF-PREFIX PIC X(04).
07 WS-USER-J-REF-SUFFIX PIC 9(06).
05 FILLER PIC X(04).
03 WS-USER-J-DATA.
05 WS-USER-J-ALTERNATE-KEY-1.
07 WS-USER-J-KEY-1-ID PIC X(01).
07 WS-USER-J-SUPP-ADDRESS PIC X(10).

SunSystems 4 – Technical Reference Manual Page 101 of 455


07 WS-USER-J-ORDER-DATE PIC 9(08).
07 FILLER PIC X(14).
05 WS-USER-J-ALTERNATE-KEY-2.
07 WS-USER-J-KEY-2-ID PIC X(01).
07 WS-USER-J-SECOND-REF PIC X(15).
05 WS-USER-J-REST-OF-DATA.
07 WS-USER-J-STATUS.
09 WS-USER-J-STATUS-1 PIC 9(01).
09 WS-USER-J-STATUS-2 PIC 9(01).
07 WS-USER-J-CD PIC X(01).
07 WS-USER-J-TRANS-TYPE PIC X(05).
07 WS-USER-J-DEL-ADDRESS PIC X(10).
07 WS-USER-J-COMMENTS PIC X(25).
07 WS-USER-J-ACK-REF PIC X(15).
07 WS-USER-J-ACK-DATE PIC 9(08).
07 WS-USER-J-DEL-DATE PIC 9(08).
07 WS-USER-J-DEL-ADVISED PIC X(01).
07 WS-USER-J-ORDER-VALUE PIC S9(13)V9(05) SIGN LEADING SEPARATE.
07 WS-USER-J-ORDER-QUANTITY PIC S9(13)V9(05) SIGN LEADING SEPARATE.
07 WS-USER-J-ORDER-PERIOD PIC 9(7).
07 WS-USER-J-LINKED-TEXT PIC X(01).
07 WS-USER-J-ANAL-CODES.
09 WS-USER-J-ANAL-CODE-0 PIC X(15).
09 WS-USER-J-ANAL-CODE-1 PIC X(15).
09 WS-USER-J-ANAL-CODE-2 PIC X(15).
09 WS-USER-J-ANAL-CODE-3 PIC X(15).
09 WS-USER-J-ANAL-CODE-4 PIC X(15).
09 WS-USER-J-ANAL-CODE-5 PIC X(15).
09 WS-USER-J-ANAL-CODE-6 PIC X(15).
09 WS-USER-J-ANAL-CODE-7 PIC X(15).
09 WS-USER-J-ANAL-CODE-8 PIC X(15).
09 WS-USER-J-ANAL-CODE-9 PIC X(15).
07 WS-USER-J-ANAL-CODE REDEFINES WS-USER-J-ANAL-CODES PIC X(15)
OCCURS 10.
07 WS-USER-J-DOC-ISSUE-DATE PIC 9(08).
07 WS-USER-J-GRN-IND PIC X(01).
07 WS-USER-J-ID-RELEASED PIC X(03).
07 WS-USER-J-POST-UNAPP-GRN PIC X(01).
07 FILLER PIC X(348).
01 WS-USER-L-RECORD.
* Invoice Header Record.
03 WS-USER-L-KEY.
05 WS-USER-L-REC-TYPE PIC X(01).
*Record Type = “L”.
05 FILLER PIC X(05).
05 WS-USER-L-REFERENCE.
07 WS-USER-L-REF-PREFIX PIC X(04).
07 WS-USER-L-REF-SUFFIX PIC 9(06).
05 FILLER PIC X(04).

SunSystems 4 – Technical Reference Manual Page 102 of 455


03 WS-USER-L-DATA.
05 WS-USER-L-ALTERNATE-KEY-1.
07 WS-USER-L-KEY-1-ID PIC X(01).
07 WS-USER-L-SUPP-ADDRESS PIC X(10).
07 WS-USER-L-INV-DATE PIC 9(08).
07 FILLER PIC X(14).
05 WS-USER-L-ALTERNATE-KEY-2.
07 WS-USER-L-KEY-2-ID PIC X(01).
07 WS-USER-L-SUPP-INV-REF PIC X(15).
05 WS-USER-L-REST-OF-DATA.
07 WS-USER-L-STATUS.
09 WS-USER-L-STATUS-1 PIC 9(01).
09 WS-USER-L-STATUS-2 PIC 9(01).
07 WS-USER-L-CD PIC X(01).
07 WS-USER-L-TRANS-TYPE PIC X(05).
07 FILLER PIC X(10).
07 WS-USER-L-COMMENTS PIC X(25).
07 WS-USER-L-PAY-DATE PIC 9(08).
07 WS-USER-L-MATCHED-TOT-QTY PIC S9(13)V9(05) SIGN LEADING SEPARATE.
07 WS-USER-L-MATCHED-TOT-VAL PIC S9(13)V9(05) SIGN LEADING SEPARATE.
07 WS-USER-L-INV-PERIOD PIC 9(7).
07 WS-USER-L-INV-TOT-QTY PIC S9(13)V9(05) SIGN LEADING SEPARATE.
07 WS-USER-L-INV-TOT-VAL PIC S9(13)V9(05) SIGN LEADING SEPARATE.
07 FILLER PIC X(05).
07 WS-USER-L-ORDER-REFERENCE PIC X(10).
07 WS-USER-L-LINKED-TEXT PIC X(01).
07 WS-USER-L-ANAL-CODES.
09 WS-USER-L-ANAL-CODE-0 PIC X(15).
09 WS-USER-L-ANAL-CODE-1 PIC X(15).
09 WS-USER-L-ANAL-CODE-2 PIC X(15).
09 WS-USER-L-ANAL-CODE-3 PIC X(15).
09 WS-USER-L-ANAL-CODE-4 PIC X(15).
09 WS-USER-L-ANAL-CODE-5 PIC X(15).
09 WS-USER-L-ANAL-CODE-6 PIC X(15).
09 WS-USER-L-ANAL-CODE-7 PIC X(15).
09 WS-USER-L-ANAL-CODE-8 PIC X(15).
09 WS-USER-L-ANAL-CODE-9 PIC X(15).
07 WS-USER-L-ANAL-CODE REDEFINES WS-USER-L-ANAL-CODES PIC X(15)
OCCURS 10.
07 WS-USER-L-ID-RELEASED PIC X(03).
07 FILLER PIC X(212).

SunSystems 4 – Technical Reference Manual Page 103 of 455


where:
WS-USER-RECORD Is the current order detail record in backup format.
WS-ACTION Indicates what stage in the processing the PE=Purchase
Order Entry program is at when it calls the user hook:
00 - Initialisation
01 - Creation of detail line
02 - Amendment of detail line
09 - Termination of purchase order entry items/
purchase import
98 - Last call to user hook before termination of user
hook
99 Test if the user hook is present
Other values should be ignored by the hook program.
WS-CALLING-FLAGS Indicate to the calling program when to call the Journal line
sub-program. These fields must be set to Y or blank by the
user hook during the initialisation call.
Characters 1 to 17 correspond to the 17 calculation codes,
and should be set to Y if the user hook is to be called for
that calculation code.
Characters 18 to 30 are not currently used.
Character 31 indicates whether the user hook should be
called directly after the item code has been entered.
Character 32 indicates whether the user hook should be
called prior to entering the purchase order quantity in
PE=Purchase Order Entry.
The quantity returned by the user hook will be displayed
on the screen and, unless the operator amends it on the
screen, this quantity will be used for all further
calculations.
Character 33 indicates the user program should be called
just prior to accepting the inventory quantity in
PE=Purchase Order Entry.
The quantity returned by the user hook will be displayed
on the screen and, unless the operator amends it on the
screen, this quantity will be used for all further
calculations.
Character 34 indicates whether the user hook should be
called just prior to writing or rewriting the detail record.
Characters 35 to 50 are not defined.
WS-CALCULATION-CODE Contains the calculation code currently being processed.
WS-CALCULATION-NUMBER Contains the number of the flag being processed at the
time.

SunSystems 4 – Technical Reference Manual Page 104 of 455


WS-RECORDS-ADDED Contains the number of description records added to the
order by the user hook.
WS-USER-MESSAGE Contains a message passed by the user hook to the
calling program after the end-record processing call to the
user hook. The calling program will display the message
providing WS-USER-LINK-STATUS is set to E or W.
WS-USER-LINK-STATUS Indicates whether or not an error has occurred in the hook
prior to returning from the end-processing call to the user
hook.
E An error has occurred. WS-USERMESSAGE will
be displayed on return from the hook and the
current detail line is assumed to be invalid.
W A discrepancy has occurred. WSUSER-
MESSAGE will be displayed on return from the
hook and the calling program will continue normal
processing.
Blank Normal processing will continue.
WS-USER-HEADER Is the current order and invoice headers in backup format.
If both order and invoice headers are present, then they
will both be in linkage.
Nothing in the order or invoice header may be updated by the user hook.
The format of the call statement is:
CALL WS-USER-PROG USING WS-USER-RECORD,
WS-USER-LINK-AREA,
WS-USER-LINK-STATUS,
WS-USER-HEADER
LINK-RECORD
Note: The account code can only be amended using end-record processing.

Link to Journal Import


It is possible to run JI=Journal Import on exiting from another program without actually entering
the JI=Journal Import screen in the usual way.
The program that links to the JI=Journal Import module in this case must be a SunAccount
program, accessible from the LA=Ledger Accounting, AR=Fixed Asset Register or CO=Corporate
Allocations menus, and should have a prefix of SA, SF or SC accordingly. It must use the
standard SunSystems linkage copy member as part of its linkage section.
Prior to exiting the user program, the following linkage parameters must be set:
LINK-NEXT-PROGRAM-ID SATF (JI=Journal Import program name).
LINK-SUBSEQUENT-PROG User program name, if it is required to return to the user
module.
LINK-PROCESS-MODE ‘1’ for batch mode.
LINK-ALLOCATIONS-AREA Spaces (group field).
LINK-JI-SUCCESS-CODE Zeros.

SunSystems 4 – Technical Reference Manual Page 105 of 455


LINK-JI-JOURNAL-NUMBER-FROM Zeros.
LINK-JI-JOURNAL-NUMBER-TO Zeros.
LINK-JI-NUMBER-LINES Zeros.
LINK-JI-TOTAL-AMOUNT Zeros.
LINK-JI-DATABASE-CODE Database code of database to which the journal should be
posted. This field is mandatory and must be set even if the
database code required is the same as the current
database.
LINK-JI-AB A (Actuals), which is the default, or B-K (Budgets). This
field is mandatory.
LINK-JI-IMPORT-FILE-NAME The name of the file to be imported by the JI=Journal
Import program (mandatory).
LINK-JI-PRINT-OR-STORE P-Print Report, S-Store on Disk (default) the journal import
report.
LINK-JI-POST-TRANSACTIONS N to validate only (default), or a space to post if there are
no errors.
LINK-JI-PROCESS-ROUGH Spaces or Y (in English) if the journals posted are to be
rough and rough book processing is defined.
LINK-JI-ALLOW-BAL-TRANS Y or N.
LINK-JI-SUSPENSE-AC Spaces or account code.
JI=Journal Import will validate and post the import transactions according to the preceding link
parameters settings. A JL=Journal Listing will be done in the usual way if Force Journal List is set
on the LD=Ledger Definition.
If LINK-SUBSEQUENT-PROGRAM is set to the user program name, then control will be passed
back to the top of that program on exiting from JI=Journal Import. If this is the case, then the
following parameters will be set for the user program to use:
LINK-JI-SUCCESS-CODE Zero if link/posting procedure was successful.
LINK-JI-JOURNAL-NUMBER-FROM First journal number of journal posted, if any.
LINK-JI-JOURNAL-NUMBER-TO Last journal posted. There may be multiple journals
because of rough book processing.
LINK-JI-NUMBER-LINES Number of lines posted, if any.
LINK-JI-TOTAL-AMOUNT Total amount posted, if any.

SunSystems 4 – Technical Reference Manual Page 106 of 455


File Backup User Hook SSFBEXT
The user hook program for file backup must be called SSFBEXT. If this program exists, the
FB=File Backup/Restore function will call the user hook just before writing any record to any
SunSystems backup file.
The following linkage section is used to transfer data to and from the routine:
01 WS-EXTERNAL-FILE-CODE PIC X(03).
01 WS-EXTERNAL-RECORD PIC X(800).
where:
WS-EXTERNAL-FILE-CODE Is the three character mnemonic for the file the operator is
backing up. These can be found in [Link].
WS-EXTERNAL-RECORD Is the record passed to the user hook. The user hook may
amend any record, but the backup program will not
validate the amendment.
The format of the call statement is:
CALL WS-USER-PROG USING WS-EXTERNAL-FILE-CODE
WS-EXTERNAL-RECORD.

SunSystems 4 – Technical Reference Manual Page 107 of 455


Technical Reference Manual
Concealed System Features

There are hidden functions in addition to those appearing on the SunSystems menus. They are
directed towards systems managers rather than operators, or they are only intended to be used
under direction. This is why they do not appear on the menus or in the manuals.
The section Screens and Menus describes how a screen will validate routing instructions against
a list of permissible options. For example, JL=Journal Listing is a routing instruction to invoke
program AJL1. Thus, these concealed features can only be selected from certain screens. They
each have an associated two character code.
Each of the concealed features is described here.
Backup Indexed BI
This feature is available only from within the function FB=File Backup/Restore.
This produces a backup file in indexed, rather than random, sequence. If the backup file is to be
edited by a word processor, an indexed backup will make it easier to find the required records.
However, the indexed backup does take longer than a regular backup.
Restore Append RA
This feature is available only from within the function FB=File Backup/Restore.
This allows a file restore to take place without wiping out the original indexed file. Records being
restored are merged with the existing indexed data file. If a restored record already exists on the
indexed file the operator is prompted to ignore the duplicate, or abandon the restore append.
Create Suppress CS
CS=Create Suppress may only be used from within the JE=Journal Entry screen in SunAccount
and the ME=Movement Entry screen in SunBusiness. It allows a new journal or movement
transaction line to be created without using any of the presets that are defined in JP=Journal
Presets or MP=Movement Presets.
Benchmarking Log ZB
This is accessed by typing ZB in the selection box. The system will write to a file called
[Link], the start time, end time and program being executed.
Here is an example of what this file might look like:
ZB SSSF H SUN 12 41 20.59 12 41 20.65 0.06
ZB SSSF K SUN 12 41 20.65 12 41 20.70 0.05
X SSSF B SUN 12 41 29.22 12 41 29.27 0.05
ZB SSSF H DEM 12 41 48.50 12 41 48.50
ZB SSSF K DEM 12 41 48.55 12 41 48.61 0.06
LA SSSF 1 DEM 12 41 51.30 12 41 54.21 2.91
LA SSSF 6 DEM 12 41 54.37 12 41 54.59 0.22
LA SSSF E DEM 12 41 54.65 12 41 54.65
LA SSSF K DEM 12 41 54.81 12 41 54.98 0.17
JE SAJE 0 DEM 12 42 02.45 12 43 03.69 61.24
X SSSF E DEM 12 43 03.74 12 43 03.80 0.06
X SSSF K DEM 12 43 03.96 12 43 04.02 0.06
ZB SSSF K DEM 12 43 09.62 12 43 09.73 0.11
ZB SSSF H DEM 12 43 09.73 12 43 09.73

SunSystems 4 – Technical Reference Manual Page 108 of 455


The following uses a line from the file to explain what each indicator means.
JE SAJE 0 DEM 12 42 02.45 12 43 03.69 61.24
JE The last two letter selection mnemonic entered on the screen. In this case it is
JE=Journal Entry
SAJE The program executed. In this case Journal Entry
0 Process Mode. This has no meaning here, but in the case of program SAAR,
which executes both AQ=Account Inquiry and AA=Account Allocation, it would be
0 and 1 respectively.
DEM The Operator Id using the process
12 42 02.45 The start time of the process
12 43 03.69 The termination time of the process
61.24 The elapse time of the process.
Clear Users ZC
This feature is used to clear (log out) a single operator Id or all SunSystems users who are
currently logged in to the system, or to revalidate an Operator Id after a password violation has
occurred. Only the SuperUser SUN may clear all users who are currently logged in to the system
or revalidate an Id. Normal operators may clear individual users one at a time, provided the
operator has permission to do so.
Form Feed ZF
This option is available from all screens.
When ZF=Form Feed is selected, the printer performs a form feed. In most cases SunSystems
print routines perform a form feed before printing. The exception is when printing formatted
documents which could be printed on special stationery that has been carefully aligned.
This feature may be used after formatted documents have been printed.
Also, if SunSystems is being used in conjunction with software that does not perform a form feed
before printing, ZF may be used.
The feature is particularly useful when printers are sited remotely.
File Log ZL
This feature is available from the SunSystems menu/screens.
It is used to switch on and off the file handler activity log, [Link] (where ooo is the
Operator Id of the User running this session of SunSystems) which records all the main file
activities. It can be useful when trouble shooting but should not be used under normal running
since the logging process will degrade performance and the resulting log file can be very large.

SunSystems 4 – Technical Reference Manual Page 109 of 455


The following is an example of the records that might appear in this Log:
FILE LOG
RF RD 23 11 17 36.28 11 17 36.28 ACC1101
RF RD 00 11 17 39.47 11 17 39.47 ACC110
RF RD 00 11 18 07.48 11 18 07.54 0.06 ANVT1
RF RD 00 11 18 09.79 11 18 09.79 ANVT24
RF RD 23 11 18 13.41 11 18 13.41 ANVT5e
RF RD 00 11 18 15.50 11 18 15.50 ANVT5E
RF SG 00 11 18 15.56 11 18 15.56 BCD
RF RN 00 11 18 15.61 11 18 15.61 BCD310
To use the first line of the example here:
RF RD 23 11 17 36.28 11 17 36.28 ACC1101
The first two characters define which file is being processed. In this case RF indicated the
reference file (or tables in the case of a SQL Server system). Other valid values that can appear
in that column are:
File File Characters
Installation File IN
Data Dictionary DD
Reference File RF
Reference Audit File RA
Format File FO
Report Format File RE
Asset File AF
Ledger File LF
Allocations File LC
Hold File QF
Payment File PY
Debit File DB
Transfer File TR
Ledger Archive File LH
Balance File LB
Sales Order File OF
Purchase Order File PF
Movement File MF
Serial Tracking File SF
Stock Take File KF
Sales Order History File HF
Purchase Order History File PU

SunSystems 4 – Technical Reference Manual Page 110 of 455


The second two characters are the file handler process performed on the file. In the example
above RD represents a normal file read. Here is a list of possible file handles and their associated
two characters:
File Handle Handle Characters
Call SQL CS
Exits FX
Clear FC
Name Request NM
Error Request ER
Close CL
Close Cursor CC
Commit CO
Delete DL
Open Extend OE
Open Input OI
Open Output OO
OPEN I O O
Open Lock OL
Rollback RB
Read RD
Read Lock RL
Read Nend RN
Read Balance BR
Rewrite RW
Start Equal SE
Start Greater SG
Start Not Less SN
Start SQL QS
Write WR
Write Page WB
Write Balance BW
Unlock All UA
Unlock One UO
Creation CF

SunSystems 4 – Technical Reference Manual Page 111 of 455


The third set of characters are numbers, and they represent the return code from the file handler.
If the file handler was successful, then the return code will be 00.
In the case of the example above the 23 indicates that the file was not found. Here is a list of
possible first digits of the return codes and what they might mean:

Return Code Meaning


0 Operation successful
1 End of file
2 Record not found or duplicate key
9 Disastrous operation. The system
should stop and display an error
message

To explain the following time indicators, please refer to the following example:
RF RD 00 11 18 07.48 11 18 07.54 0.06 ANVT1
The next set of numbers is 11 18 07.48, the start time of the particular file process.
This process started at 11:18 am 07.48 represent 7 seconds and 48 hundredth’s seconds in that
minute.
After that is the time that the file handle terminated 11 18 07.54
The last of the time indicators is the elapse time of the file handler. It is merely the difference
between the start and termination time of the file handle process.
The last indicator on the log is:
• The key of the record being processed
• The smart or direct statement that was built into the file handle in the application program
Installation Parameters ZP
This feature is only available from the main SunSystems menu and you must be logged in as
SuperUser SUN. It allows you to set the following installation parameters:
Pick
Y/blank
Enter Y-Yes, to specify that the picking program will pick a sales order detail irrespective of the
stock balance (then it will allow the stock to go negative).
Keyboard
Y/blank
Enter Y-Yes to specify that the keyboard can be scanned during batch processes, such as
printing reports and using FREEFORMAT to enable pausing or abandoning.
This is not available in all environments.
Close
Y/blank
Enter Y-Yes, to force the main data files to be closed after each menu screen selection. This is
only useful if data is not being written to disk correctly.

SunSystems 4 – Technical Reference Manual Page 112 of 455


Date
Y/A/blank
If Y-Yes is entered, the operating system date is read when logging into SunSystems and
becomes Today’s Date. Enter A-Automatic to have the operating system date automatically used
for all operators without allowing the opportunity to change it.
Progs
0-9
This parameter controls the number of SunSystems program modules which may remain loaded
in addition to the current module. The default for this parameter is 0 and this indicates that no
additional modules should remain loaded. If the user selects 3, then three additional program
modules will remain loaded simultaneously.
The facility gives slight performance improvements on some machines when some functions are
repeatedly used.
Note: In some operating environments, where there is insufficient memory for the
requested number of modules to be loaded into memory, SunSystems may page in and
out some of its modules, causing a dramatic drop in performance.
Archive
B/Y/blank
Enter Y-Yes for records deleted by the SunBusiness PC=Period Cleardown functions to be written
to an archive file. The SunBusiness archive file is in the format as the backup of the same file.
See the subsection Data File Naming for information regarding file naming.
The valid settings for the parameter are:
Y or B Archive SunBusiness transactions
Blank No archiving of SunBusiness transactions.
To write deleted SunAccount transactions to an archive file, set Ledger Archiving to Y-Yes in the
LD=Ledger Definition for that database. See the section Ledger Definition in the SunAccount
Reference Manual.
Sort
Y/blank
This field has no effect unless SunAccount FA=Financial Analysis reports transactions. Enter Y-
Yes and a COBOL sort is used rather than writing to an indexed file. In some environments this
causes a performance improvement.
VAT
V/blank
Enter V-Vat to prevent VAT transactions in SunAccount having settlement discount applied to
them. VAT lines are identified by analysis code T5 being set to ‘V’.
Remove Journal In Use Flag ZR
This is accessed from the View Held Journals option in JE=Journal Entry. ZR allows you to
remove the message journal in use, and access that journal.

SunSystems 4 – Technical Reference Manual Page 113 of 455


Serialisation ZS
This feature is used to make system issues.
When invoked, it displays the serialisation screen into which details of the system are entered.
The details for serialisation are provided by your supplier. You must be logged in as SuperUser
SUN in order to access this function.

The Update Code provided by your supplier varies according to the screen settings.
The serialisation is only accepted with a valid update code.
This method is used to convert a system from the demonstration version to a full working version,
or to add modules, increase the number of permitted users, or to clear time-fusing.
Unbalanced Journal ZU
ZU enables you to Post journals in SunAccount which do not balance. This may be required,
especially to correct a file corruption which has occurred as a result of hardware failure.
In SunAccount, the ZU feature may be used from within JE=Journal Entry, and AA=Account
Allocation. When used in JL=Journal Listing, a report of unbalanced journals is produced. A
JL=Journal Listing showing unbalanced journals may be produced using the unbalanced journal
listing report format supplied with your system.
Note: After a journal has been subject to a PC=Period Cleardown, parts of the journal, but
not necessarily all, will have been deleted. Consequently, these journals no longer
balance.
This feature is not described in the manuals. It should only be used when absolutely necessary.

SunSystems 4 – Technical Reference Manual Page 114 of 455


Technical Reference Manual
Data Dictionary and Report Definition

Introduction
This section describes how to modify and create record types in the data dictionary.
This is the master file, common to both SunAccount and SunBusiness, which stores record
information to be reported by RD=Report Definition.
You might want to modify or create data dictionary records in the following circumstances:
• When undertaking a translation of SunSystems to another language
• When adding fields to an existing reference record
• When adding new record types to the reference file.
• When writing a report driver for RD=Report Definition.
If you add new fields or new record types, they will not be accessed by SunSystems.
However, SunSystems reference maintenance functions can update, report, audit, and transfer
such records. You can access them directly from your COBOL programs or through reference
transfer, and then from other software packages.
Thus, SunSystems can be used to update the new data for you, and you can then access it in
your own software.
Although the data dictionary is a separate file from the reference file, it is processed by the same
program that processes the reference file (SSRU). The only difference is that the reference
maintenance layout file record information record is slightly different. In order to get SSRU to
process the data dictionary, [Link], and [Link], the file type on the record
information record for each data dictionary file Id must be ‘DD’, for the data dictionary.
For more information on the information record and the file Id, refer to the Reference Maintenance
section.
Although the templates to amend each record type exist in the template file, there are no routing
selections on the SSMM01 menu to select these templates. This prevents users from accidentally
modifying the data dictionary. To add these selections to the SSMM01 menu, use SZTE. For
more information on how to add menu selections see the Screens and Menus section.
Listed with data dictionary maintenance function are the template Id’s and record Id’s needed to
add the selections to the SSMM01 menu.

SunSystems 4 – Technical Reference Manual Page 115 of 455


Maintain Report Types
Template Id SSRU32
Record Id DDS

For each language code and report type combination in RD=Report Definition there is a report
type record.
Language Code
2 digits
Enter a two digit language code. This must be defined on the installation file.
Report types in RD=Report Definition are language specific.
Report Type
maximum 3 characters
Enter a three letter code to identify this report type. You must not use the codes ‘XX’, ‘Y’ and ‘YY’
in this box.
System
SA/SB/blank
Leave this box blank for all systems. Enter SA for SunAccount only or SB for SunBusiness only.
Description
maximum 30 characters
Enter a description for the report type. This appears in the Report Type box on the
Control Parameters screen in RD=Report Definition when the Report Type is selected.

SunSystems 4 – Technical Reference Manual Page 116 of 455


File Code
2 characters
Enter the file Id of the location in which the report record is stored. For example, enter RF for the
Reference File. These are defined in the data dictionary maintenance function, Maintain Data-
Record Descriptions, described later in this section.
Record Type
maximum 5 characters
This is the Record Type as it appears on the file to be read. If it is a reference maintenance record
it is one of the three letter record Id’s described in the section Reference Maintenance. Otherwise
it is the record type on the record of the file. For valid record types for different SunSystems files,
see the subsection Maintain Data-Record Descriptions.
Occurrence
1 character
A record type may appear more than once in a report. If, for example, two different address
records a delivery address and a billing address, appear on a report, these have the same file
code and record type combination. Enter a different occurrence number to differentiate between
the two.
Record Code
3 characters
Enter the code that is displayed for this record in RD=Report Definition under the heading Type in
the Record Types window. If you leave this box blank the data record type defined on the Data-
Record Descriptions record is displayed in RD=Report Definition.
Record Description
maximum 20 characters
Enter the description that appears in RD=Report Definition in the Record Types window. Leave
blank to display the default description defined on the Data-Record Descriptions record.
Up to 20 records can be listed on the Report Type Record. After you have entered 15, a window
appears to accept the remaining five.

SunSystems 4 – Technical Reference Manual Page 117 of 455


This screen shows how the Report Type Record information is displayed in RD=Report Definition.
When selecting record information to appear on a report, the Record Types window displays
when F5 is pressed in the Data Items window. The record types are also displayed after using F5
in the Only If box in the Data Items window.
Two record types appear on every report definition. They are COMMON FIELDS and
SELECTION FIELDS. These record types are discussed later in this section. These are not
defined in this function.
The remaining records that appear in this window appear in the order that they are entered in the
Maintain Report Types screen.
The record description comes from the default file code defined on the Data-Records Description
record discussed later in this section. If a description for that record is defined on the Report
Types Record, that description is displayed instead.
Note: Analysis Category and Analysis Codes records are automatically expanded.
RD=Report Definition does this when the letter of the analysis category is appended to
either of these record types.

Maintain Data-Record Descriptions


Template Id SSRU30
Record Id DDR

For each combination of language code, file code, and data record type there is a Data-Record
Description record.
Language Code
2 digits
Enter a two digit language code. This must be defined on the installation file. Report types in
RD=Report Definition are language specific.

SunSystems 4 – Technical Reference Manual Page 118 of 455


File Code
2 characters
Enter the file Id of the location in which the record is stored. For example, enter RF for the
Reference File.
There are additionally two special file codes that may be used:
XX For COMMON FIELDS that may appear on all reports in Report Definition. These
are Time, Date, Page Number, etc.
YY For SELECTION FIELDS. These may be fields typed into the report driver
selection screen by the user, or data that is generated by the report driver at
runtime.
Data Record Type
maximum 5 characters
This is the record type as it appears on the file to be read. If it is a reference maintenance record
it is one of the three letter record Id’s described in the section Reference Maintenance. Otherwise,
it is the record type on the record of the file.
For valid record types in the different SunSystems files see the subsection Maintain Report
Types.
Description
maximum 30 characters
This description appears in the record description window on the Format Details screen in
RD=Report Definition. To display the Record Descriptions window press F5 when prompted in the
Data Item window or press F5 on the Only If box in Data Items.

SunSystems 4 – Technical Reference Manual Page 119 of 455


Maintain Data-Item Definitions
Template Id SSRU28
Record Id DDD

For each file code, data record type, and item number combination there is a Data Record
Description record. These records describe the individual field that can be found on each Data
Record.
File Code
2 digits
Enter the file Id for the location in which the record is held. For example, enter RF for the
Reference File.
Data Record Type
maximum 5 characters
This is the Record Type as it appears on the file to be read. If it is a reference maintenance record
it is one of the three letter record Id’s described in the section Reference Maintenance. Otherwise
it is the record type on the record of the file.
For valid record types in the different SunSystems files, see the appendices.
Item Number
maximum 999
This is a unique item number for each individual entry on each data item record. It is used by
RD=Report Definition to display each data item in a particular order.
Item Name
This is for the SQL Data Names. This is not currently used.

SunSystems 4 – Technical Reference Manual Page 120 of 455


Entity ID
maximum 999999
This is used by RD=Report Definition to read the entity definition for this data item. Maintain Entity
Definition is described later in this section.
Offset
maximum 9999
This records the start position of the field on the record.
COBOL Name
This is the COBOL data name from the file layout copy.
Omit From Query
1/blank
Enter 1 in this box for the data item not to be displayed for selection in RD=Report Definition.
135 Data Dictionary and Report Definition

Note: The Data Items for the Chart of Accounts Record Type display in the same order as
they appear in the query on Data Item Records.
The Item Description, Type, and Length displayed come from the following Data Dictionary
Maintenance Functions.

SunSystems 4 – Technical Reference Manual Page 121 of 455


Maintain Data-Item Descriptions
Template Id SSRU29
Record Id DDT

For each language code, file code, data record type, and item number combination there is a
Data-Item Description Record. These are used to display the language description of each data
item in RD=Report Definition.
Language Code
2 characters
Enter a two digit language code. This must be defined on the installation file. Report types in
RD=Report Definition are language specific.
File Code
2 characters
Enter the two letter file Id for the location in which the record is stored. For example, enter RF for
the Reference File.
Data Record Type
maximum 5 characters
This is the Record Type as it appears on the file to be read. If it is a reference maintenance record
then it is one of the three letter record Id’s described in the section Reference Maintenance.
Otherwise it is the record type on the record of the file. For valid record types in the different
SunSystems files, refer to the appendices.
Item Number
maximum 3 characters
This is a unique number for each individual field on each data record. It is used by RD=Report
Definition to read the description on each data item description record.

SunSystems 4 – Technical Reference Manual Page 122 of 455


Description
maximum 30 characters
This is displayed in RD=Report Definition, in the Data Items selection window.
Long Heading
Not currently used.
Short Heading
Not currently used.
Lookup Description
This is displayed once a data record is selected from the available list and more than one key
definition exists for that file code/data record type combination. Key definitions are explained in
the subsection Maintain Key Definitions.

Maintain Entity Definitions


Template Id SSRU25
Record Id DDE

For each Database Code/Entity Id combination there is an Entity Definition. These records define
attributes of particular field types.
Database Code
maximum 3 characters
This is used for Analysis Categories and Codes. Since the length of entities are defined on this
record, and analysis code lengths are unique for each database, these records must be entered
by database code. If the entity has no relation to analysis category lengths, this box will be blank.

SunSystems 4 – Technical Reference Manual Page 123 of 455


Entity Id
maximum 999999
This is a six digit code assigned to the unique physical properties of a data item. Numbers 1 to
99999 are reserved for the use of entities that have been defined by Systems Union. Numbers
above 100000 are reserved for external developers.
There are ranges of the entity Ids that group similar entity types together. These ranges are:
10000 - Codes
20000 - Dates and Periods
30000 - Amounts and Quantities
40000 - Numbers
50000 - Flags
60000 - Text
70000 - RunTime
80000 - Report Selections
90000 - Words
The Entity Description is displayed beside the entered Id.
Length on File
maximum 999
Enter the length of the item on the file. Packed Data Items will have the number of packed bytes.
Input/Output Length
maximum 999
The number of characters that this Entity should take up on a screen or report.
Data Type
01/02/03/04/10-19
Enter one of the following valid attribute indicator:
01 - Alphanumeric
02 - Period
03 - Date
04 - Password
10-19 - Numeric, where the second digit is the number of decimal places
Numeric Type
0/1/2
Enter one of the following COBOL numeric storage types:
0 - Display
1 - Comp (Binary)
2 - Comp-3 (Packed)

SunSystems 4 – Technical Reference Manual Page 124 of 455


Numeric Sign
0/1/2
You can enter one of the following parameters for a numeric sign:
0 - Unsigned
1 - Signed
2 - Leading Sign Separate
Justification
0/1/2
Enter one the following for justification:
0 - No Justification
1 - Left Justification
2 - Right Justification
Case Conversion
0/1
Valid parameters are:
0 - No Conversion
1 - Upper Case Conversion

SunSystems 4 – Technical Reference Manual Page 125 of 455


Maintain Entity Descriptions
Template Id SSRU26
Record Id DDL

For each Language Code/Entity Id combination there will be an Entity Description Record. These
records define language description of each entity.
Language Code
2 characters
Enter a two digit language code. This must be defined on the installation file. Report types in
RD=Report Definition are language specific.
Entity Id
maximum 999999
Is a six digit code that is assigned to the unique physical properties of a Data Item. See the
subsection Maintain Entity Definitions for valid entity ranges.
Description
maximum 30 characters
This displays the English description on the Maintain Entity Definition screen which appears once
the entity code is entered. This is not used elsewhere in the system.
Long Heading
Not currently used.
Short Heading
Not currently used.

SunSystems 4 – Technical Reference Manual Page 126 of 455


Maintain Sub-Headings and Sub-Footings
Template Id SSRU34
Record Id DDF

For each language code and report type combination there is a sub-headings and footing record.
These records define logical breaks within the report format and may appear as headings or
footings. A logical break would be a change of account or period. Both sub-headings and sub-
footings are dependent on the report driver.
These records define heading and footing text that may appear at the beginning or end of a report
section in a report generated in RD=Report Definition.
Language Code
2 characters
Enter a two digit language code. This must be defined on the installation file. Report types in
RD=Report Definition are language specific.
Report Type
maximum 3 characters
Enter a three letter code that uniquely identifies this record type. XX, Y and YY should not be
used in this box.

SunSystems 4 – Technical Reference Manual Page 127 of 455


Sub-Headings and Sub-Footings
These are what can be selected and can appear on a report created in RD=Report Definition. The
selection screen for sub-headings is as follows:

The selection screen for sub-footings is as follows:

SunSystems 4 – Technical Reference Manual Page 128 of 455


Maintain Key Definitions
Template Id SSRU27
Record Id DDK

For each report type, a maximum of 13 records may be directly read by the report driver program.
An additional seven records may be read by the report formatter (SSRF), and thus be available to
the report type if a key definition is defined for those additional records. Each key definition
defines the data elements to build the key for the addition records to be read.
File Code
2 characters
Enter the file Id to define which record is to be read by the report formatter. Enter either RF for the
reference file, or IN for installation file.
Data Record Type
maximum 3 characters
Enter the record type of the file to be read. This is a three letter Id of the installation or reference
record described in the section Reference Maintenance.
Relationship Number
maximum 999
Enter a three digit number used to identify each file code and data record type combination. A file
code and data record type combination is defined by many keys, and this unique relationship
number is used to build the key.
Element Data
This defines the data item for this key definition.

SunSystems 4 – Technical Reference Manual Page 129 of 455


File Code
maximum 2 characters
Enter the two letter file Id of the file where the data item used to build the key is held. For
example, enter RF for the Reference File.
Record Type
maximum 5 characters
This is the data record type on the file from which the key data item is selected. If it is a reference
maintenance record it is one of the three letter record Id’s described in the section Reference
Maintenance. Otherwise, it is the record type on the record of the file. For valid record types for
the different SunSystems files, refer to the appendices.
Item Number
maximum 999
This is the data item number on the record. This is used in conjunction with the record type to
build the key for the report formatter to read this record.
For each file code, data record type, and item number combination, a Lookup Description should
be entered in the Maintain Data-Items Description function for each language code. These
descriptions will appear in the record selection window of RD=Report Definition, as in the
following:

SunSystems 4 – Technical Reference Manual Page 130 of 455


Technical Reference Manual
Appendix A: Using SunSystems Data Files

The file definitions given in these appendices will enable you to establish interfaces to
SunSystems. The appendices do not provide definitions for all SunSystems data files, merely
those files for which it is suitable to establish interfaces.
The files described in these appendices are:

File Name Description


[Link] SunSystems Reference File
[Link] SunAccount Ledger File
[Link] SunAccount Asset File
[Link] SunAccount Budget File
[Link] SunAccount Archive File
[Link] SunBusiness Stock Take File
[Link] SunBusiness Movement File
[Link] SunBusiness Serial Number Tracking File
[Link] SunBusiness Sales History File
[Link] SunBusiness Sales Order File
[Link] SunBusiness Purchase History File
[Link] SunBusiness Purchase Order File
[Link] SunBusiness Transfer File
[Link] SunBusiness Commitment Transfer File
[Link] SunAccount Payment File
[Link] SunAccount Journal Hold File
[Link] SunAccount Bank Payments File
[Link] SunSystems Reference Audit File
[Link] SunSystems Reference Backup File
[Link] SunAccount Ledger Backup File
[Link] SunBusiness Stock Take Backup File
[Link] SunBusiness Movement Backup File
[Link] SunBusiness Sales History Backup File
[Link] SunBusiness Sales Order Backup File
[Link] SunBusiness Purchase History Backup File
[Link] SunBusiness Purchase Order Backup File
[Link] SunAccount Journal Hold Backup File

where
x is the Budget Code
yy is the year
ddd is Database Code
nnn is the Bank Identity Code
ttt is the Reference Record Type.

SunSystems 4 – Technical Reference Manual Page 131 of 455


Most of the master Data files are indexed-sequential files, and can vary in format between
different version of SunSystems and different operating systems. In most environments a master
data file consists of a data file and separate index file (see the subsection Data File Naming, in
the section Naming Conventions). In SQL environments, the data is stored in tables in the SQL
database. Normally, each record type within a file has its own table defined, though some data is
stored in ‘miscellaneous’ tables.
The Backup files are text files which may be edited using any standard editor, such as edit or vi. If
data contains foreign punctuation, make sure the editor you use can cope with it. These files can
be transported across different environments and will be compatible with SunSystems on each
environment.
It is recommended that interfaces are based upon Backup files rather than Data files. Moreover,
when enhancing the product, the authors are likely to change the data file formats, but will
endeavour to keep Backup file formats compatible.
For each file the following information is given:
• A file description, in words
• A summary of record types
• The COBOL select...assign statements (for the indexed files only)
• The COBOL file description (FD) (for the indexed files only)
• A table showing the COBOL data names, the position of the fields in the record, SQL
table names, column names, field sizes and types, and a brief description of the fields.
Please consider the following points when using the file layouts below:
• The FIELD TYPE column is to describe what sort of field it is, and is taken from the
COBOL PICTURE clause. There are alphanumeric fields (type X), unsigned numeric
fields (type N) and signed numeric fields (type S). In some cases, for the numeric fields
(types S and N), the number of decimal places is specified. If it is not, then assume zero
decimal places. Also assume that the fields are stored in ASCII format (COBOL USAGE
DISPLAY) unless specified otherwise in the Comments column. If setting up new data,
ensure that any numeric fields are initialised to zero if they do not contain a value
• Assume all FILLER fields and fields ‘Not used ...’ are set to spaces unless specified
otherwise in the Comments column. Likewise, if creating new data, ensure such fields are
initialised
• Dates and Periods are stored in internal format, that is, CCYYMMDD and CCYYPPP
format respectively.
In some cases fields are defined for the COBOL data files but not in the SQL tables, and vice
versa. A ‘-’ hyphen in the tables below indicates where something is not relevant. You may see
that in the COBOL definitions, some fields are redefined by others, but not in the SQL table. In
this case, the application itself will handle the redefinition of the data, so there is no need to have
the extra columns in the SQL table.
The COBOL examples for the SELECT statements and File Definitions (FD’s) have L and V flags
in the margin. These depict the different types of COBOL used: M=MicroFocus Cobol/2, V=Vax
Cobol.
ddd = Database Code.

SunSystems 4 – Technical Reference Manual Page 132 of 455


Technical Reference Manual
Appendix B: Master Data Files

The Reference File


Description
The Reference File holds the static data for both SunAccount and SunBusiness. There are many
different types of static data held. For example, customer addresses, items of stock, analysis
codes.
Summary of Record Types
For each type of static data there is a corresponding record type. The record types on the file are
defined on the Reference Layout Files - see the Reference Maintenance section of this manual.
Each is a three character code and is always found in the first three characters of the record.
There is a list, in the Reference Maintenance section of this manual, detailing all the reference
record types at version 4.2. Each record type is defined in a separate COBOL copy file, and each
one is simply a redefinition of the Reference
File master record, type ‘REF’, which does not actually exist on the data file. The COBOL record
layout is listed below.
Cobol Select...Assign Statement
SELECT REF-FILE ASSIGN
M REF-FILE-NAME
V* “SSRF_DEM.DAT”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY REF-KEY
MV ALTERNATE RECORD KEY REF-LOOKUP-KEY WITH DUPLICATES
M LOCK MODE MANUAL
V* BLOCK CONTAINS 1024 CHARACTERS
V* RESERVE 8 AREAS
STATUS REF-FILE-STATUS.
*
*
Cobol File Description (FD)
M FDREF-FILE.
V* FDREF-FILE VALUE OF ID IS REF-FILE-NAME.
01 REF-RECORD.
03 REF-KEY.
05 REF-RECORD-ID PIC X(003).
05 REF-KEY-2 PIC X(028).
05 REF-KEY-CONT PIC X(001).
05 FILLER PIC X(032).
03 REF-LOOKUP-KEY.
05 REF-LOOKUP-ID PIC X(003).
05 REF-LOOKUP-CODE PIC X(010).
03 REF-DATA.
05 REF-DATA-1 PIC X(723).
05 FILLER PIC X(032).

SunSystems 4 – Technical Reference Manual Page 133 of 455


The physical record length on disk (800 bytes) is less than the logical record length within the
programs (1024 bytes):
Logical Record bytes
Physical Record
Primary Key 64
Alternate Key 13
Date Last Updated 8
Data 715
-----
Total Physical 800
Filler 224
-----
Total Logical 1024

Reference File Record Descriptions


Note that each Reference record type does not have its own SQL table, though some do. If the
SQL definitions are not included for a particular Reference record layout below, then there is no
specific SQL table for that Reference record type. The Reference data will be stored in the
miscellaneous table called SSRFMSC. This table is defined as follows:

SQL Field Name SQL Field Type Description


SUN_DB char(3) Database Code
SUN_TB char(3) Table Code
KEY_FIELDS char(61) Key Fields
LOOKUP char(10) Lookup Code
UPDATED char(8) Date Last Updated
DATA_1 char(200) Composite Data
DATA_2 varchar(247) Composite Data
DATA_3 varchar(246) Composite Data
DATA_4 varchar(246) Composite Data

SunSystems 4 – Technical Reference Manual Page 134 of 455


Account Balance Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘ACB’, mandatory
R-ACB-ACCOUNT 004 015 X - Account Code Mandatory
R-ACB-ANAL-CAT1 019 002 X - Analysis Definition 1
R-ACB-ANAL-MASK1 021 001 X - Analysis Mask 1
R-ACB-ANAL-CODE1 022 015 X - Analysis Code 1
R-ACB-ANAL-CAT2 037 002 X - Analysis Definition 2
R-ACB-ANAL-MASK2 039 001 X - Analysis Mask 2
R-ACB-ANAL-CODE2 040 015 X - Analysis Code 2
FILLER - 010 X - -
R-ACB-LOOKUP-ID 065 003 X - Lookup Id
FILLER 068 018 X - -
R-ACB-ACT-BAL 086 019 S 3 Actual Balance
R-ACB-BUD-BAL 105 019 S 3 Budget Balance
R-ACB-COM-BAL 124 019 S 3 Commitment Balance
R-ACB-BUDGET-TYPE 143 001 X - Budget Type
FILLER 144 657 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 135 of 455


Chart of Accounts Record, [Link], SQL Table Name SSRFACC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
- - - - - SUN_DB char(3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value ‘ACC’,
mandatory
R-AC 004 015 X - ACCNT_CODE char(15) Account Code Mandatory
FILLER 019 046 X - - - -
R-AC-LOOKUP-ID 065 003 X - - - Lookup Id
R-AC-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - UPDATED char(8) Date Last Updated
R-AC-NAME 086 030 X - ACCNT_NAME char(30) Account Name Mandatory
R-AT 116 001 X - ACCNT_TYPE char(1) Account Type Mandatory
R-BAL-OPEN 117 001 X - BALNCE_OPN char(1) Open Item or Bal/Fwd Mandatory
R-AC-SUSPEND 118 001 X - SUSPEND char(1) Account Status
R-CONV-CODE-CONTROL 119 001 X - CONV_CNTRL char(1) Conv. Code Control
R-AC-CONV-CODE 120 005 X - CONV_CODE char(5) Conversion Code
R-AC-SUPP-REVAL 125 001 X - SUPP_REVAL char(1) Suppress Revaluation
R-COMMITMENT-CHECK-ACCOUNT 126 015 X - COMMIT_ACC char(15) Commitment Check Account
R-AC-COMMENT 141 020 X - COMMENTS char(20) Comment
FILLER 161 001 X - - - -
R-ACC-ENTER-ANAL-INDS 162 010 X - ENTER_ANAL char(10) Enter Analysis Codes One
for each T-code, T0 - T9
R-AC-ADD 172 010 X - ADD_CODE char(10) Address Code
R-DIRECT-DEBIT 182 001 X - DIRECT_DB char(1) Direct Debit Indicator
R-PRIORITY 183 001 X - PRIORITY char(1) Account Priority
R-PAY-METHOD 184 001 X - PAY_METHOD char(1) Payment Method
R-CREDIT-LIMIT 185 010 N 0 CREDIT_LIM numeric Credit Limit
R-PAYMENT-DAYS 195 003 N 0 PAYMNT_DAY smallint Payment Days
R-PAYMENT-TERMS 198 001 X - PAYMNT_TRM char(1) Payment Terms
R-DISCOUNT-DAYS 199 003 N 0 DISC_DAYS smallint Discount Days 1
R-DISCOUNT 202 005 N 3 DISCOUNT numeric Discount Percent 1
R-DISCOUNT-DAYS-2 207 003 N 0 DISC_DAYS2 smallint Discount Days 2
R-DISCOUNT-2 210 005 N 3 DISCOUNT_2 numeric Discount Percent 2
R-LATEST-TRANS 215 008 X - LAST_TRANS char(8) Last Transaction Date
R-TRANS-PRESENT 223 001 X - TRANS_PRES char(1) Transactions Present
Ind’r
R-AC-BALANCE 224 019 S 3 ACC_BALNCE numeric Account Balance
R-AC-ORDER-BALANCE 243 019 S 3 ORD_BALNCE numeric On-Order Balance
R-ALLOC-IN-PROGRESS 262 001 X - ALLOC_PROG char(1) Allocation-in-Progress
Ind’r
R-USER-AREA 263 030 X - USER_AREA char(30) Area not used by
SunSystems

SunSystems 4 – Technical Reference Manual Page 136 of 455


Chart of Accounts Record, [Link], SQL Table Name SSRFACC – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
R-TAX-CODE 293 020 X - TAX_CODE char(20) Tax Code
R-AN-0 313 015 X - ANAL_A0 char(15) Account Analysis Code 0
R-AN-1 328 015 X - ANAL_A1 char(15) Account Analysis Code 1
R-AN-2 343 015 X - ANAL_A2 char(15) Account Analysis Code 2
R-AN-3 358 015 X - ANAL_A3 char(15) Account Analysis Code 3
R-AN-4 373 015 X - ANAL_A4 char(15) Account Analysis Code 4
R-AN-5 388 015 X - ANAL_A5 char(15) Account Analysis Code 5
R-AN-6 403 015 X - ANAL_A6 char(15) Account Analysis Code 6
R-AN-7 418 015 X - ANAL_A7 char(15) Account Analysis Code 7
R-AN-8 433 015 X - ANAL_A8 char(15) Account Analysis Code 8
R-AN-9 448 015 X - ANAL_A9 char(15) Account Analysis Code 9
FILLER 463 064 X - - - -
R-AC-GRP-MASK 527 005 X - DATA_1 char(5) Operator Group Mask
FILLER 532 005 X - - - -
R-SETTLEMENT 537 001 X - SETTLEMENT char(1) Settlement Account
R-AC-LINK-ACCOUNT 538 010 X - LINK_ACC char(10) Linked Account
R-AC-DEF-BANK-CODE 548 005 X - DEF_BANK_CODE char(5) Default Bank Code
R-ACC-DAYS-OVERRIDE-IND 553 001 X - OVER_TOL_IND char(1) Override Days Tolerance
from Journal Definition
R-ACC-DAYS-TO-APPLY 554 002 N - TOL_DAYS smallint Days to apply
R-ALLOC-USER-ID 556 003 X - ALLOC_USER char(3) Allocation In Progress
User ID
FILLER 559 242 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 137 of 455


Address Analysis Record, [Link], SQL Table Name SSRFADB

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
- - - - - SUN_DB char(3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value ‘ADB’,
mandatory
R-ADB 004 010 X - ADB_CODE char(10) Address Code Mandatory
FILLER 014 051 X - - -
R-ADB-LOOKUP-ID 065 003 X - - - Lookup Id
R-ADB-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - UPDATED char(8) Date Last Updated
R-ADD-ACCOUNT-CODE 086 015 X - ACCNT_CODE char(15) Account Code Mandatory
R-ADD-ANAL-ADDR 101 001 X - ANAL_ADDR char(1) Address Analysis Ind’r
R-ADD-PICK-METHOD 102 001 X - PICK_METH char(1) Pick Method
R-ADD-PRIORITY 103 001 X - PRIORITY char(1) Priority
R-ADD-MIN-ORDER-VALUE 104 018 N 5 MIN_ORDER numeric Minimum Order Value
R-ADD-LAST-TRANS 122 008 X - LAST_TRAN char(8) Last Transaction Date
R-ADD-TRANS-PRESENT 130 001 X - TRAN_PRES char(1) Transactions Present
Ind’r
R-ADD-AN-0 131 015 X - ANAL_C0 char(15) Address Analysis Code 0
R-ADD-AN-1 146 015 X - ANAL_C1 char(15) Address Analysis Code 1
R-ADD-AN-2 161 015 X - ANAL_C2 char(15) Address Analysis Code 2
R-ADD-AN-3 176 015 X - ANAL_C3 char(15) Address Analysis Code 3
R-ADD-AN-4 191 015 X - ANAL_C4 char(15) Address Analysis Code 4
R-ADD-AN-5 206 015 X - ANAL_C5 char(15) Address Analysis Code 5
R-ADD-AN-6 221 015 X - ANAL_C6 char(15) Address Analysis Code 6
R-ADD-AN-7 236 015 X - ANAL_C7 char(15) Address Analysis Code 7
R-ADD-AN-8 251 015 X - ANAL_C8 char(15) Address Analysis Code 8
R-ADD-AN-9 266 015 X - ANAL_C9 char(15) Address Analysis Code 9
R-ADD-CRED-LIM-BLOCK 281 1 X - CRED_LIM_BLOCK char(1) SOP Credit limit
blocking flag
R-ADD-DEF-POD-TYPE 282 005 X - DEF_POD_TYPE char(5) Default Purchase Order
Type
FILLER 287 514 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 138 of 455


Names and Addresses Record, [Link], SQL Table Name SSRFADD

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
- - - - - SUN_DB char(3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value ‘ADD’,
mandatory
R-ADD 004 010 X - ADD_CODE char(10) Address Code Mandatory
FILLER 014 051 X - - -
R-ADD-LOOKUP-ID 065 003 X - - - Lookup Id
R-ADD-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - UPDATED char(8) Date Last Updated
R-ADD-LINE-1 086 035 X - ADDRESS_1 char(35) Address Line 1 Mandatory
R-ADD-LINE-2 121 035 X - ADDRESS_2 char(35) Address Line 2
R-ADD-LINE-3 156 035 X - ADDRESS_3 char(35) Address Line 3
R-ADD-LINE-4 191 035 X - ADDRESS_4 char(35) Address Line 4
R-ADD-LINE-5 226 035 X - ADDRESS _5 char(35) Address Line 5
R-ADD-LINE-6 261 035 X - ADDRESS_6 char(35) Address Line 6
R-ADD-COMMENT-1 296 015 X - TELEPHONE char(15) Telephone Number
R-ADD-COMMENT-2 311 015 X - CONTACT char(15) Contact
R-ADD-TELEX 326 015 X - TELEX char(15) Telex Number
R-ADD-COMMENT-3 341 030 X - COMMENT_1 char(30) Comment
R-ADD-USER-AREA 371 003 X - USER_AREA char(03) Area unused by
SunSystems
R-ADD-COMMENT-4 374 030 X - COMMENT_2 char(30) Comment
FILLER 404 397 X - - -
FILLER 801 224 X - - -
R-ADD-EMAIL-ADDRESS 404 124 X - E_MAIL char(124) Email Address
R-ADD-WEB-PAGE-ADDRESS 528 124 X - WEB_PAGE char(124) Web Page Address
FILLER 652 149 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 139 of 455


Journal Definitions Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘AJD’, mandatory
R-AJD-JOURNAL-TYPE 004 005 X - Journal Type Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-AJD-LOOKUP-ID 065 003 X - Lookup Id
R-AJD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-AJD-JOURNAL-NAME 086 025 X - Journal Name
R-AJD-PRESET-CODE 111 005 X - Journal Preset Code
R-AJD-ANAL-CAT1 116 002 X - Analysis Category 1
R-AJD-ANAL-CAT2 118 002 X - Analysis Category 2
R-AJD-ANAL-CAT3 120 002 X - Analysis Category 3
R-AJD-ANAL-CAT4 122 002 X - Analysis Category 4
R-AJD-ANAL-CAT5 124 002 X - Analysis Category 5
R-AJD-ANAL-CAT6 126 002 X - Analysis Category 6
R-AJD-ANAL-CAT7 128 002 X - Analysis Category 7
R-AJD-ANAL-CAT8 130 002 X - Analysis Category 8
R-AJD-ANAL-CAT9 132 002 X - Analysis Category 9
R-AJD-ANAL-CAT10 134 002 X - Analysis Category 10
R-AJD-SUPPRESS-AGEING 136 001 X - Suppress Ageing
R-AJD-DESC-PER-LINE 137 001 X - Description per Line
R-AJD-FORCE-WITHHOLD 138 001 X - Allocation Marker
R-AJD-NEXT-PERIOD-REVERSAL 139 001 X - Next Period Reversal
R-AJD-DUE-DATE-ENTRY 140 001 X - Due Date Entry
R-AJD-UNIQUE-REFERENCES 141 001 X - Unique References
R-AJD-CREATE-WITHOUT-PAUSE 142 001 X - Create Without Pause
R-AJD-CONVERSION 143 001 X - Conversion
R-AJD-ASSET-ENTRY 144 001 X - Asset Details Entry
R-AJD-SUPPRESS-JE 145 001 X - Suppress Journal Entry
R-AJD-SUPPRESS-JI 146 001 X - Suppress Journal Import
R-AJD-SUPPRESS-AA 147 001 X - Suppress Account Allocation
R-AJD-SEQ-CODE 148 005 X - Sequence Code
R-AJD-TRANS-SEQ 153 001 X - Transaction Sequence
R-AJD-INPUT-DISC-ACC 154 015 X - Input Discount Account
R-AJD-OUTPUT-DISC-ACC 169 015 X - Output Discount Account
R-AJD-DISC-TOL-PERC 184 011 N 2 Discount Tolerance Percent
R-AJD-DISC-TOL-VAL 195 012 N 3 Discount Tolerance Value
R-AJD-AUTO-TAX-IND 207 001 X - Automatic Tax Indicator
R-AJD-TAX-ACC-IND-CR 208 001 X - Tax Ind Creditors
R-AJD-TAX-ACC-IND-DB 209 001 X - Tax Ind Debtors

SunSystems 4 – Technical Reference Manual Page 140 of 455


Journal Definitions Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-AJD-TAX-ACC-IND-CT 210 001 X - Tax Ind Clients
R-AJD-TAX-ACC-IND-MEM 211 001 X - Tax Ind Members
R-AJD-TAX-ACC-IND-PL 212 001 X - Tax Ind Profit & Loss
R-AJD-TAX-ACC-IND-BAL 213 001 X - Tax Ind Balance
R-AJD-STP-ACC-IND-CR 214 001 X - Stoppage Tax Creditors
R-AJD-STP-ACC-IND-DB 215 001 X - Stoppage Tax Debtors
R-AJD-STP-ACC-IND-CT 216 001 X - Stoppage Tax Clients
R-AJD-STP-ACC-IND-MEM 217 001 X - Stoppage Tax Members
R-AJD-STP-ACC-IND-PL 218 001 X - Stoppage Tax Profit & Loss
R-AJD-STP-ACC-IND-BAL 219 001 X - Stoppage Tax Balance
R-AJD-AUTO-TAX-ACC 220 001 X - Input/Output Tax Ind
R-AJD-EUR-TO-OV 221 001 X - Zero Tol Flag for Euro
R-AJD-OTHER-AMT-BAL-OV 222 001 X - Other Amount Balance Override
R-AJD-DISC-TOL-DAYS 223 002 N - Discount Tol Days
R-AJD-DISCOUNT-OVERRIDE 225 001 X - Discount Override
FILLER 226 301 X -
R-AJD-GRP-MASK 527 005 X - Operator Group Mask
FILLER 532 069 X -
FILLER 601 200 X -
FILLER 801 224 X -

SunSystems 4 – Technical Reference Manual Page 141 of 455


Journal Presets Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘AJP’, mandatory
R-AJP-PRESET-CODE 004 005 X - Preset Code Mandatory
R-AJP-LINE-NO 009 003 N - Transaction Line Number Mandatory
FILLER 012 021 X -
FILLER 033 032 X -
R-AJP-LOOKUP-ID 065 003 X - Lookup Id
R-AJP-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-AJP-LINE-PROMPT 086 025 X - Line Prompt
R-AJP-BASE-LINE-NO 111 003 N - Base Line Number
R-AJP-ACC-PERIOD 114 008 X - Accounting Period
R-AJP-TRANSACTION-DATE 122 010 X - Transaction Date
R-AJP-DUE-DATE 132 010 X - Due Date
R-AJP-DESCRIPTION 142 025 X - Description
R-AJP-ACC-CODE 167 015 X - Account Code
R-AJP-ACC-TYPE 182 001 X - Account Type
R-AJP-ASSET-CODE 183 010 X - Asset Code
R-AJP-ASSET-SUBCODE 193 005 X - Asset Sub Code
R-AJP-VD 198 001 X - Value/Depreciation Marker
R-AJP-CONV-CODE 199 005 X - Conversion Code
R-AJP-OTHER-AM 204 016 X - Transaction Other Amount
R-AJP-CONV-RATE 220 019 X - Conversion Rate
R-AJP-AM 239 016 X - Transaction Amount
R-AJP-DC 255 001 X - Debit/Credit
R-AJP-ANAL-1 256 015 X - Preset Analysis Code 1
R-AJP-ANAL-2 271 015 X - Preset Analysis Code 2
R-AJP-ANAL-3 286 015 X - Preset Analysis Code 3
R-AJP-ANAL-4 301 015 X - Preset Analysis Code 4
R-AJP-ANAL-5 316 015 X - Preset Analysis Code 5
R-AJP-ANAL-6 331 015 X - Preset Analysis Code 6
R-AJP-ANAL-7 346 015 X - Preset Analysis Code 7
R-AJP-ANAL-8 361 015 X - Preset Analysis Code 8
R-AJP-ANAL-9 376 015 X - Preset Analysis Code 9
R-AJP-ANAL-10 391 015 X - Preset Analysis Code 10
R-AJP-AUTO-ONLINE-ALLOC 406 001 X - Automatic Online Allocation
R-AJP-FORCE-PRESET 407 001 X - Force Preset
R-AJP-2ND-ACC-TYPE 408 001 X - 2nd Account Type
FILLER 409 124 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 142 of 455


Calendar Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘ALC’, mandatory
ALC-PERIOD 004 007 N - Calendar Month Mandatory
FILLER 011 022 X - -
FILLER 033 032 X - -
ALC-LOOKUP-ID 065 003 X - Lookup Id
ALC-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
ALC-EXCL-DAY(1) 086 001 X - Exclude date 1
ALC-PER-START(1) 087 003 N - Period Start 1
ALC-EXCL-DAY(2) 090 001 X - Exclude date 2
ALC-PER-START(2) 091 003 N - Period Start 2
ALC-EXCL-DAY(3) 094 001 X - Exclude date 3
ALC-PER-START(3) 095 003 N - Period Start 3
ALC-EXCL-DAY(4) 098 001 X - Exclude date 4
ALC-PER-START(4) 099 003 N - Period Start 4
ALC-EXCL-DAY(5) 102 001 X - Exclude date 5
ALC-PER-START(5) 103 003 N - Period Start 5
ALC-EXCL-DAY(6) 106 001 X - Exclude date 6
ALC-PER-START(6) 107 003 N - Period Start 6
ALC-EXCL-DAY(7) 110 001 X - Exclude date 7
ALC-PER-START(7) 111 003 N - Period Start 7
ALC-EXCL-DAY(8) 114 001 X - Exclude date 8
ALC-PER-START(8) 115 003 N - Period Start 8
ALC-EXCL-DAY(9) 118 001 X - Exclude date 9
ALC-PER-START(9) 119 003 N - Period Start 9
ALC-EXCL-DAY(10) 122 001 X - Exclude date 10
ALC-PER-START(10) 123 003 N - Period Start 10
ALC-EXCL-DAY(11) 126 001 X - Exclude date 11
ALC-PER-START(11) 127 003 N - Period Start 11
ALC-EXCL-DAY(12) 130 001 X - Exclude date 12
ALC-PER-START(12) 131 003 N - Period Start 12
ALC-EXCL-DAY(13) 134 001 X - Exclude date 13
ALC-PER-START(13) 135 003 N - Period Start 13
ALC-EXCL-DAY(14) 138 001 X - Exclude date 14
ALC-PER-START(14) 139 003 N - Period Start 14
ALC-EXCL-DAY(15) 142 001 X - Exclude date 15
ALC-PER-START(15) 143 003 N - Period Start 15
ALC-EXCL-DAY(16) 146 001 X - Exclude date 16
ALC-PER-START(16) 147 003 N - Period Start 16
ALC-EXCL-DAY(17) 150 001 X - Exclude date 17
ALC-PER-START(17) 151 003 N - Period Start 17
ALC-EXCL-DAY(18) 154 001 X - Exclude date 18

SunSystems 4 – Technical Reference Manual Page 143 of 455


Calendar Definition Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
ALC-PER-START(18) 155 003 N - Period Start 18
ALC-EXCL-DAY(19) 158 001 X - Exclude date 19
ALC-PER-START(19) 159 003 N - Period Start 19
ALC-EXCL-DAY(20) 162 001 X - Exclude date 20
ALC-PER-START (20) 163 003 N - Period Start 20
ALC-EXCL-DAY(21) 166 001 X - Exclude date 21
ALC-PER-START(21) 167 003 N - Period Start 21
ALC-EXCL-DAY(22) 170 001 X - Exclude date 22
ALC-PER-START(22) 171 003 N - Period Start 22
ALC-EXCL-DAY(23) 174 001 X - Exclude date 23
ALC-PER-START(23) 175 003 N - Period Start 23
ALC-EXCL-DAY(24) 178 001 X - Exclude date 24
ALC-PER-START(24) 179 003 N - Period Start 24
ALC-EXCL-DAY(25) 182 001 X - Exclude date 25
ALC-PER-START(25) 183 003 N - Period Start 25
ALC-EXCL-DAY(26) 186 001 X - Exclude date 26
ALC-PER-START(26) 187 003 N - Period Start 26
ALC-EXCL-DAY(27) 190 001 X - Exclude date 27
ALC-PER-START(27) 191 003 N - Period Start 27
ALC-EXCL-DAY(28) 194 001 X - Exclude date 28
ALC-PER-START(28) 195 003 N - Period Start 28
ALC-EXCL-DAY(29) 198 001 X - Exclude date 29
ALC-PER-START(29) 199 003 N - Period Start 29
ALC-EXCL-DAY(30) 202 001 X - Exclude date 30
ALC-PER-START(30) 203 003 N - Period Start 30
ALC-EXCL-DAY(31) 206 001 X - Exclude date 31
ALC-PER-START(31) 207 003 N - Period Start 31
FILLER 210 323 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 144 of 455


Allocation Definitions Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘ALD’, mandatory
ALD-DEFINITION-CODE 004 005 X - Alloc’n Definition Code Mandatory
ALD-SEQ-NO 009 005 X - Alloc’n Sequence Number Mandatory
FILLER 014 019 X - -
FILLER 033 032 X - -
ALD-LOOKUP-ID 065 003 X - Lookup Id
ALD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
ALD-NAME 086 025 X - Alloc’n Definition Name Mandatory
ALD-TYPE 111 001 X - Allocation Type Mandatory
ALD-SOURCE-CODE 112 005 X - Alloc’n Source Code
ALD-TARGET-CODE 117 005 X - Alloc’n Target Code
ALD-RATIO-CODE 122 005 X - Alloc’n Ration Code
ALD-TRNSFR-PER-FROM 127 005 X - Transfer Period From
ALD-TRNSFR-PER-TO 132 005 X - Transfer Period To
ALD-JOURNAL-TYPE 137 005 X - Alloc’n Journal Type Mandatory
ALD-SOURCE-DB-POSTING 142 001 X - Source Database Posting Mandatory
ALD-TARGET-DB-POSTING 143 001 X - Target Database Posting Mandatory
ALD-BASE-AMT 144 001 X - Alloc’n Base Amount
ALD-OTHER-AMT 145 001 X - Alloc’n Other Amount
ALD-AMOUNT-REVERSAL 146 001 X - Alloc’n Amount Reversal
ALD-UPDATE-ASSETS 147 001 X - Update Assets
ALD-TL-TARGET 148 001 X - Target and Source Reversal
ALD-TL-OFFSET 149 001 X - Include Offset
ALD-RETAIN-JOURNAL-TYPE 150 001 X - Retain Journal Type
ALD-RETAIN-JOURNAL-SOURCE 151 001 X - Retain Journal Source
FILLER 152 381 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 145 of 455


Allocation Ratio Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘ALR’, mandatory
ALR-RATIO-CODE 004 005 X - Allocation Ratio Code Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
ALR-LOOKUP-ID 065 003 X - Lookup Id
ALR-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
ALR-NAME 086 025 X - Allocation Ratio Name Mandatory
ALR-ACCT-FROM(1) 111 015 X - Ratio Account From 1 Mandatory
ALR-ACCT-TO(1) 126 015 X - Ratio Account To 1
ALR-ACCT-FROM(2) 141 015 X - Ratio Account From 2
ALR-ACCT-TO(2) 156 015 X - Ratio Account To 2
ALR-ACCT-FROM(3) 071 015 X - Ratio Account From 3
ALR-ACCT-TO(3) 186 015 X - Ratio Account To 3
ALR-ACCT-FROM(4) 201 015 X - Ratio Account From 4
ALR-ACCT-TO(4) 216 015 X - Ratio Account To 4
ALR-ACCT-FROM(5) 231 015 X - Ratio Account From 5
ALR-ACCT-TO(5) 246 015 X - Ratio Account To 5
ALR-AN-CODE(1) 261 002 X - Ratio Analysis Code 1
ALR-AN-CODE-FROM(1) 263 015 X - Ratio Analysis Code From 1
ALR-AN-CODE-TO(1) 278 015 X - Ratio Analysis Code To 1
ALR-AN-CODE(2) 293 002 X - Ratio Analysis Code 2
ALR-AN-CODE-FROM(2) 295 015 X - Ratio Analysis Code From 2
ALR-AN-CODE-TO(2) 310 015 X - Ratio Analysis Code To 2
ALR-AN-CODE(3) 325 002 X - Ratio Analysis Code 3
ALR-AN-CODE-FROM(3) 327 015 X - Ratio Analysis Code From 3
ALR-AN-CODE-TO(3) 342 015 X - Ratio Analysis Code To 3
ALR-AMT 357 001 X - Ratio Amount Mandatory
ALR-ACT-BUD 358 001 X - Ratio Actual/Budget Mandatory
ALR-BASIS 359 001 X - Ratio Basis Mandatory
FILLER 360 173 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 146 of 455


Allocation Source Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘ALS’, mandatory
ALS-SOURCE-CODE 004 005 X - Allocation Source Code Mandatory
ALS-CONTINUE 009 001 X - Alloc’n Source Continuation
FILLER 010 023 X - -
FILLER 033 032 X - -
ALS-LOOKUP-ID 065 003 X - Lookup Id
ALS-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
ALS-NAME 086 025 X - Allocation Source Name Mandatory
ALS-ACCT-FROM 111 015 X - Account Code From Mandatory
ALS-ACCT-TO 126 015 X - Account Code To
ALS-AN-CODE(1) 141 002 X - Selection Code 1
ALS-AN-CODE-FROM(1) 143 015 X - Selection Code From 1
ALS-AN-CODE-TO(1) 158 015 X - Selection Code To 1
ALS-AN-CODE(2) 173 002 X - Selection Code 2
ALS-AN-CODE-FROM(2) 175 015 X - Selection Code From 2
ALS-AN-CODE-TO(2) 190 015 X - Selection Code To 2
ALS-AN-CODE(3) 205 002 X - Selection Code 3
ALS-AN-CODE-FROM(3) 207 015 X - Selection Code From 3
ALS-AN-CODE-TO(3) 222 015 X - Selection Code To 3
ALS-OFFSET-ACCT 237 015 X - Offset Account
ALS-OFFSET-AN 252 010 X - Offset Account Consol’n Table, 10 x
1 byte
ALS-AMT 262 001 X - Source Amount
ALS-ACT-BUD 263 001 X - Actual/Budget
ALS-THRESHOLD-FROM 264 018 N 3 Threshold From
ALS-THRESHOLD-FROM-DC 282 001 X - Threshold From D/C
ALS-THRESHOLD-TO 283 018 N 3 Threshold To
ALS-THRESHOLD-TO-DC 301 001 X - Threshold To D/C
ALS-SOURCE-REVERSE-AN-CODE 302 010 X - Source Reversal Consol’n Table, 10 x
1 byte
ALS-RETAIN-SOURCE-PERIOD 312 001 X - Retain Source Period
FILLER 313 220 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 147 of 455


Allocation Target Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘ALT’, mandatory
ALT-TARGET-CODE 004 005 X - Target Code Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
ALT-LOOKUP-ID 065 003 X - Lookup Id
ALT-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
ALT-NAME 086 025 X - Target Name Mandatory
ALT-DBASE-AN-CODE 111 002 X - Target D’base Analysis Code
ALT-DBASE-DBASE-CODE 113 003 X - Target Database Code
ALT-ACT-BUD 116 001 X - Actual/Budget Mandatory
ALT-ACCT 117 015 X - Target Account
ALT-ACCT-AN-CODE 132 010 X - Target A/c Analysis One for each T-
code, T0-T9
ALT-OFFSET 142 015 X - Offset
ALT-OFFSET-AN-CODE 157 010 X - Offset A/c Analysis One for each T-
code, T0-T9
ALT-ASSET-CODE 167 010 X - Asset Code
ALT-ASSET-SUB-CODE 177 005 X - Asset Sub Code
ALT-ASSET-IND 182 001 X - Asset Indicator
FILLER 183 350 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 148 of 455


Analysis Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘AND’, mandatory
R-AND-CODE 004 002 X - Analysis Category Mandatory
R-AND-MASK-ID 006 001 X - Analysis Sub Category
FILLER 007 058 X - -
R-AND-LOOKUP-ID 065 003 X - Lookup Id
R-AND-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-AND-DESCR 086 020 X - Analysis Heading Mandatory
R-AND-SHORT-DESCR 106 005 X - Short Heading Mandatory
R-AND-MASK 111 015 X - Sub Category Mask
R-AND-NON-VALIDATE-CODE 126 001 X - Non Validate Code
R-AND-AMEND-CODE 127 001 X - Amend Code
FILLER 128 673 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 149 of 455


Analysis Code Record, [Link], SQL Table Name SSRFANV

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
- - - - - SUN_DB char(3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value ‘ANV’,
mandatory
R-ANV-CODE 004 002 X - CATEGORY char(2) Analysis Category Mandatory
R-ANV-VALUE 006 015 X - CODE char(15) Analysis Code SQL - not null
FILLER 021 044 X - - - -
R-ANV-LOOKUP-ID 065 003 X - - - Lookup Id
R-ANV-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - UPDATED char(8) Date Last Updated
R-ANV-NAME 086 030 X - NAME char(30) Analysis Code Name Mandatory
R-ANV-PROHIBIT-POSTING 116 001 X - PROHB_POST char(1) Prohibit Posting
R-ANV-BUDGET-CHECK 117 001 X - BUDGET_CHECK char(1) PO Budget Check Flag
R-ANV-BUDGET-STOP 118 001 X - BUDGET_STOP char(1) PO Stop Flag
FILLER 119 408 X - - - -
R-ANV-GRP-MASK 527 005 X - DATA_1 char(5) Operator Group Mask
FILLER 532 269 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 150 of 455


Assembly Structure Record, [Link], (SQL Table Name SSRFAST)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
- - - - - SUN_DB Char(3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value ‘AST’,
mandatory
R-AS-ITEM 004 015 X - ITEM_CODE Char(15) Item Code Mandatory
R-AS-PAGE 019 002 N 0 PAGE Smallint Page Number Mandatory
FILLER 021 012 X - - - - -
FILLER 033 032 X - - - - -
R-AS-LOOKUP-ID 065 003 X - - - Lookup ID
R-AS-LOOKUP-CODE 068 010 X - - - Lookup Code
FILLER 078 008 X - - - -
R-AS-ITEM-CODE-1 086 015 X - ITEM_CODE_L1 Char(15) Item Code 1
R-AS-LOCATION-1 101 005 X - LOCATION_L1 Char(5) Location 1
R-AS-QUANTITY-1 106 018 N 5 QUANTITY_L1 Numeric Quantity 1
R-AS-ITEM-CODE-2 124 015 X - ITEM_CODE_L2 Char(15) Item Code 2
R-AS-LOCATION-2 139 005 X - LOCATION_L2 Char(5) Location 2
R-AS-QUANTITY-2 144 018 N 5 QUANTITY_L2 Numeric Quantity 2
R-AS-ITEM-CODE-3 162 015 X - ITEM_CODE_L3 Char(15) Item Code-3
R-AS-LOCATION-3 177 005 X - LOCATION_L3 Char(5) Location 3
R-AS-QUANTITY-3 182 018 N 5 QUANTITY_L3 Numeric Quantity 3
R-AS-ITEM-CODE-4 200 015 X - ITEM_CODE_L4 Char(15) Item Code 4
R-AS-LOCATION-4 215 005 X - LOCATION_L4 Char(5) Location 4
R-AS-QUANTITY-4 220 018 N 5 QUANTITY_L4 Numeric Quantity 4
R-AS-ITEM-CODE-5 238 015 X - ITEM_CODE_L5 Char(15) Item Code 5
R-AS-LOCATION-5 253 005 X - LOCATION_L5 Char(5) Location 5
R-AS-QUANTITY-5 258 018 N 5 QUANTITY_L5 Numeric Quantity 5
R-AS-ITEM-CODE-6 276 015 X - ITEM_CODE_L6 Char(15) Item Code 6
R-AS-LOCATION-6 291 005 X - LOCATION_L6 Char(5) Location 6
R-AS-QUANTITY-6 296 018 N 5 QUANTITY_L6 Numeric Quantity 6
R-AS-ITEM-CODE-7 314 015 X - ITEM_CODE_L7 Char(15) Item Code 7
R-AS-LOCATION-7 329 005 X - LOCATION_L7 Char(5) Location 7
R-AS-QUANTITY-7 334 018 N 5 QUANTITY_L7 Numeric Quantity 7
R-AS-ITEM-CODE-8 352 015 X - ITEM_CODE_L8 Char(15) Item Code 8
R-AS-LOCATION-8 367 005 X - LOCATION_L8 Char(5) Location 8
R-AS-QUANTITY-8 372 018 N 5 QUANTITY_L8 Numeric Quantity 8
R-AS-ITEM-CODE-9 390 015 X - ITEM_CODE_L9 Char(15) Item Code 9
R-AS-LOCATION-9 405 005 X - LOCATION_L9 Char(5) Location 9
R-AS-QUANTITY-9 410 018 N 5 QUANTITY_L9 Numeric Quantity 9
R-AS-SUB-TOTALS 428 001 X - SUB_TOTALS Char(1) Subtotals Flag
FILLER 429 372 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 151 of 455


Budget Check Definitions Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-BCD-REC-TYPE 001 003 X - Reference Record Type Value ‘BCD’, Mandatory
R-BCD-ACCOUNT-FROM 004 015 X - Budget Account From Mandatory
R-BCD-ACCOUNT-TO 019 015 X - Budget Account To
FILLER 034 031 X - - -
R-BCD-LOOKUP-ID 065 003 X - Lookup ID
FILLER 068 018 X - - -
R-BCD-B-CHK-ACCOUNT 086 015 X - Budget Check Account
R-BCD-CAT1 101 002 X - 1st Analysis Category
R-BCD-SUBCAT1 103 001 X - 1st Analysis Sub Category
R-BCD-CAT2 104 002 X - 2nd Analysis Category
R-BCD-SUBCAT2 106 001 X - 2nd Analysis Sub Category
R-BCD-BUDGET-TYPE 107 001 X - Budget Type
FILLER 108 693 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 152 of 455


Bank Details Record, [Link], (SQL miscellaneous table SSRFBKA)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
- - - - - SUN_DB char(3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value ‘BKA’,
mandatory
R-BKA-CODE 004 015 X - BANK_CODE char(15) Account Code Mandatory
R-BKA-BANK-CODE 019 005 X - BANK_SEQUENCE - -
FILLER 024 009 X - - - -
FILLER 033 032 X - - -
R-BKA-LOOKUP-ID 065 003 X - - - Lookup Id
R-BKA-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - - - -
R-BKA-BANK 086 025 X - BANK char(25) Bank Name Mandatory
R-BKA-BRANCH 111 025 X - BRANCH char(25) Bank Branch Mandatory
R-BKA-SORT-CODE 136 015 X - SORT_CODE char(15) Bank Sort Code Mandatory
R-BKA-ACC-NAME 151 035 X - ACC_NAME char(35) Bank Account Name Mandatory
FILLER 186 001 X - UPDATED - -
R-BKA-ACC-NUM 187 34 X - ACC_NUM char(34) Bank Account Number Mandatory
R-BKA-TRANS-LIMIT 221 018 N - TRANS_LIMIT numeric Transaction Limit
R-BKA-TRANS-REF 239 018 X - TRANS_REF char(18) Transaction Reference
R-BKA-FIRST-PAYMENT 257 001 X - FIRST__PAYMENT char(1) First Payment
R-BKA-COMMENTS 258 015 X - COMMENTS char(15) Comments
R-BKA-ADDRESS-CODE 273 010 X - ADDRESS_CODE char(10) Address Code
FILLER 283 250 X - - - -
FILLER 533 268 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 153 of 455


Budget Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’BUD’, mandatory
R-BUD-BUDGET-CODE 004 001 X - Budget Code Mandatory
FILLER 005 028 X - -
FILLER 033 032 X - -
R-BUD-LOOKUP-ID 065 003 X - Lookup Id
R-BUD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-BUD-BUDGET-NAME 086 015 X - Budget Name Mandatory
R-BUD-ROUGH-BOOK 101 001 X - RoughBook
FILLER 102 425 X - -
R-BUD-GRP-MASK 527 005 X - Operator Group Mask
FILLER 532 001 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 154 of 455


Business Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’LDG’, mandatory
BUS-CODE 004 003 X - Database Code Mandatory
FILLER 007 058 X - -
BUS-LOOKUP-ID 065 003 X - Lookup Id
BUS-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
FILLER 086 030 X - -
BUS-CURRENT-PERIOD 116 008 X - Current Period Mandatory
BUS-MAX-PERIODS 124 003 N - Maximum Periods in Year Mandatory
BUS-OPEN-PERIOD-FROM 127 008 X - Open Period From
BUS-OPEN-PERIOD-TO 135 008 X - Open Period To
BUS-OPEN-DATE-FROM 143 010 X - Open Date From
BUS-OPEN-DATE-TO 153 010 X - Open Date To
FILLER 163 005 X - -
BUS-OVER-EXPEND-CHECK 168 001 X - Over Expend Check
BUS-FIXED-EUR-RATE 169 018 N 9 Euro Rate
FILLER 187 019 X - - Spare for SB expansion
FILLER 206 080 X - - Used by SA Ledger/Register
Definition
BUS-NEXT-ORDER-NO 286 006 N - Next Order Number
BUS-NEXT-INVOICE-NO 292 006 N - Next Invoice Number
BUS-NEXT-CR-NOTE-NO 298 006 N - Next Credit Note Number
BUS-NEXT-P-ORDER-NO 304 006 N - Next Purchase Order Number
BUS-ANAL-CAT0 310 002 X - LI Analysis Catergory 0
BUS-ANAL-CAT1 312 002 X - LI Analysis Catergory 1
BUS-ANAL-CAT2 314 002 X - LI Analysis Catergory 2
BUS-ANAL-CAT3 316 002 X - LI Analysis Catergory 3
BUS-ANAL-CAT4 318 002 X - LI Analysis Catergory 4
BUS-ANAL-CAT5 320 002 X - LI Analysis Catergory 5
BUS-ANAL-CAT6 322 002 X - LI Analysis Catergory 6
BUS-ANAL-CAT7 324 002 X - LI Analysis Catergory 7
BUS-ANAL-CAT8 326 002 X - LI Analysis Catergory 8
BUS-ANAL-CAT9 328 002 X - LI Analysis Catergory 9
BUS-CURR-CODE-CAT 330 002 X - Conversion Code
BUS-ORDERS-AS-COMMITMENTS 332 001 X - All Orders as Commitments
BUS-OMIT-P-ORDERS 333 001 X - Omit Purchase Orders
BUS-P-VAL-BALANCING 334 001 X - Purchase Value Balancing
BUS-P-QTY-BALANCING 335 001 X - Purchase Quantity Balancing
BUS-ALLOC-TYPE 336 001 X - Allocation Type
BUS-AUTO-SALES-REF 337 001 X - Auto Order References
BUS-INT-QTY 338 001 X - Integer Quantities
BUS-SERIAL-TRACKING 339 001 X - Serial Number Tracking

SunSystems 4 – Technical Reference Manual Page 155 of 455


Business Definition Record, [Link], (SQL miscellaneous table SSRFMSC) - continued

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
BUS-AUDIT-AS-EXPIRY 340 001 X - Audit Date Expiry
BUS-STOCK-TAKE-PER-YEAR 341 003 N 0 Stock Takes per Year
BUS-STOCK-TAKE-DEFAULT 344 003 N 0 Default Stock Take Cycle
BUS-STOCK-TAKE-TOLERANCE 347 005 N 3 Stock Take Tolerance
BUS-STOCK-TAKE-APPROVAL 352 001 X - Stock Take Approval
BUS-CONV-CODE-C2 353 005 X - Conversion Code C2
BUS-CONV-CODE-C3 358 005 X - Conversion Code C3
BUS-NEXT-QUOTE-NO 363 006 N 0 Next Quote Number
BUS-PICK-ALLOCATION 369 001 X - Pick Allocation
BUS-POST-UNAPP-GRN 370 001 X - Post Unapproved At GRN
BUS-APP-PER-UNAPP 371 001 X - Approved Period-Unapp/Current
BUS-CRED-LIM-BLOCK 372 001 X - Credit Limit Block
BUS-ALLOC-OVERLAY 373 001 X - Allocation Overlay
BUS-INV-PAGE-CTRL 374 001 X - Invoice Page Control
BUS-EXCL-DESC-LINES 375 001 X - Exclude Invoice Description Lines
BUS-MULTI-COUNTER 376 001 X - Multiple Invoice Number Counters
BUS-LOC-COST 377 001 X - Location Cost
BUS-LOC-LOCK 378 001 X - Location Lock
BUS-MULTI-DESP-DOCS 379 001 X - Multiple Despatch Counters
BUS-EXCL-DESP-DESC-LINES 380 001 X - Exclude Despatch Description Lines
BUS-LOT-NO-VALIDATION 381 001 X - Lot Number Validation
BUS-AUTO-GENERATE 382 001 X - Auto Generate Item Entry Records
Flag
FILLER 383 202 X
BUS-ANAL1 585 002 X - Invoice Prefix Anal 1
BUS-ANAL2 587 002 X - Invoice Prefix Anal 2
BUS-ANAL3 589 002 X - Invoice Prefix Anal 3
BUS-ANAL4 591 002 X - Invoice Prefix Anal 4
BUS-D-ANAL1 593 002 X - Despatch Prefix Anal 1
BUS-D-ANAL2 595 002 X - Despatch Prefix Anal 2
BUS-D-ANAL3 597 002 X - Despatch Prefix Anal 3
BUS-D-ANAL4 599 002 X - Despatch Prefix Anal 4
BUS-VOID-NUMBER 601 001 X - Void Unused Number
BUS-VOID-ADDRESS 602 010 X - Address Code for voiding
BUS-VOID-ORDER-TYPE 612 005 X - Order Type for voiding
BUS-IGR-M-CODE-0 617 001 X - Multiple Inventory References M Code
0
BUS-IGR-M-CODE-1 618 001 X - Multiple Inventory References M Code
1
BUS-IGR-M-CODE-2 619 001 X - Multiple Inventory References M Code
2

SunSystems 4 – Technical Reference Manual Page 156 of 455


Business Definition Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
BUS-IGR-M-CODE-3 620 001 X - Multiple Inventory References M Code
3
BUS-IGR-M-CODE-4 621 001 X - Multiple Inventory References M Code
4
BUS-IGR-M-CODE-5 622 001 X - Multiple Inventory References M Code
5
BUS-IGR-M-CODE-6 623 001 X - Multiple Inventory References M Code
6
BUS-IGR-M-CODE-7 624 001 X - Multiple Inventory References M Code
7
BUS-IGR-M-CODE-8 625 001 X - Multiple Inventory References M Code
8
BUS-IGR-M-CODE-9 626 001 X - Multiple Inventory References M Code
9
BUS-DEFAULT-LEAD-DAYS 627 003 N 0 Lead Time (days)
BUS-LEAD-ANAL-1 630 002 X - Lead Anal 1
BUS-LEAD-ANAL-2 632 002 X - Lead Anal 2
FILLER 634 018 X -
BUS-VCF-TEMP 652 002 N 0 Temperature Accounting temperature
BUS-VCF-I-CODE 654 001 N 0 I Code to be used for Temperature
Accounting
FILLER 655 145 X -
FILLER 800 225 X -

SunSystems 4 – Technical Reference Manual Page 157 of 455


Calculation Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’CAD’, mandatory
R-CAD-CODE 004 003 X - Calculation Code Mandatory
FILLER 007 026 X - -
FILLER 033 032 X - -
R-CAD-LOOKUP-ID 065 003 X - Lookup Id
R-CAD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-CAD-DESCRIPTION 086 030 X - Description Mandatory
R-CAD-SHORT-DESC 116 010 X - Short Description
R-CAD-ID1 126 003 X - Base Value Code
R-CAD-CONSTANT1 129 018 N 5 Constant 1
R-CAD-OP1 147 001 X - Operator 1
R-CAD-ID2 148 003 X - Value Code 2
R-CAD-CONSTANT2 151 018 N 5 Constant 2
R-CAD-OP2 169 001 X - Operator 2
R-CAD-ID3 170 003 X - Value Code 3
R-CAD-CONSTANT3 173 018 N 5 Constant 3
R-CAD-OP3 191 001 X - Operator 3
R-CAD-ID4 192 003 X - Value Code 4
R-CAD-ACCM-SIGN 195 001 X - Accumulator Sign
R-CAD-ACCM 196 003 X - Accumulator Code
R-CAD-TABLE-NAME 199 005 X - Table Code
R-CAD-TABLE-CAT1 204 002 X - Analysis Category 1
R-CAD-TABLE-CAT2 206 002 X - Analysis Category 2
R-CAD-ITEM-PROCESS 208 001 X - Item Process
FILLER 209 001 X - -
R-CAD-DEC-PL 210 001 X - Decimal Places
R-CAD-QTY-RELATED 211 001 X - Quantity Related Indicator
R-CAD-SPLIT-VALUE 212 001 X - Suppress Split Values
R-CAD-CONVERSION-RATE 213 001 X - Conversion Rate Override
R-CAD-PRICR-BOOK-CODE 214 005 X - Price Book Code
FILLER 219 582 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 158 of 455


Calculation Table Record, [Link], SQL Table Name SSRFCAT

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
- - - - - SUN_DB char(3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value’CAT’,mandator
y
R-CAT-NAME 004 005 X - NAME char (5) Table Code SQL-not null
R-CAT-ANCAT1 009 002 X - CATEGORY_1 char (2) Analysis Category1 SQL-not null
R-CAT-ANCODE1 011 015 X - CODE_1 char(15) Analysis Code 1 SQL-not null
R-CAT-ANCAT2 026 002 X - CATEGORY_2 char (2) Analysis Category 2 SQL-not null
R-CAT-ANCODE2 028 015 X - CODE_2 char(15) Analysis Code 2 SQL-not null
FILLER 043 022 X - - - -
R-CAT-LOOKUP-ID 065 003 X - - - Lookup Id
R-CAT-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - UPDATED char (8) Date Last Updated
R-CAT-THRESHOLD(1) 086 013 N 0 THRESH_1 numeric Range From/To Value 1 Mandatory
R-CAT-THRESHOLD(2) 099 013 N 0 THRESH_2 numeric Range From/To Value 2
R-CAT-THRESHOLD(3) 112 013 N 0 THRESH_3 numeric Range From/To Value 3
R-CAT-THRESHOLD(4) 125 013 N 0 THRESH_4 numeric Range From/To Value 4
R-CAT-THRESHOLD(5) 138 013 N 0 THRESH_5 numeric Range From/To Value 5
R-CAT-THRESHOLD(6) 151 013 N 0 THRESH_6 numeric Range From/To Value 6
R-CAT-THRESHOLD(7) 164 013 N 0 THRESH_7 numeric Range From/To Value 7
R-CAT-THRESHOLD(8) 177 013 N 0 THRESH_8 numeric Range From/To Value 8
R-CAT-VALUE(1) 190 018 N 5 VALUE_1 numeric Value 1 Mandatory
R-CAT-VALUE(2) 208 018 N 5 VALUE_2 numeric Value 2
R-CAT-VALUE(3) 226 018 N 5 VALUE_3 numeric Value 3
R-CAT-VALUE(4) 244 018 N 5 VALUE_4 numeric Value 4
R-CAT-VALUE(5) 262 018 N 5 VALUE_5 numeric Value 5
R-CAT-VALUE(6) 280 018 N 5 VALUE_6 numeric Value 6
R-CAT-VALUE(7) 298 018 N 5 VALUE_7 numeric Value 7
R-CAT-VALUE(8) 316 018 N 5 VALUE_8 numeric Value 8
R-CAT-DESCRIPTION 334 030 X - DESCRIPTN char(30) Description
R-CAT-RANGE-CODE 364 003 X - RANGE_OF char (3) Ranges of Calc ’n Code Mandatory
R-CAT-PRA(1) 367 001 X - PRA_1 char (1) %, Rate or Amount 1 Mandatory
R-CAT-PRA(2) 368 001 X - PRA_2 char (1) %, Rate or Amount 2
R-CAT-PRA(3) 369 001 X - PRA_3 char (1) %, Rate or Amount 3
R-CAT-PRA(4) 370 001 X - PRA_4 char (1) %, Rate or Amount 4
R-CAT-PRA(5) 371 001 X - PRA_5 char (1) %, Rate or Amount 5
R-CAT-PRA(6) 372 001 X - PRA_6 char (1) %, Rate or Amount 6
R- CAT-PRA(7) 373 001 X - PRA_7 char (1) %, Rate or Amount 7
R-CAT-PRA(8) 374 001 X - PRA_8 char (1) %, Rate or Amount 8
FILLER 375 426 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 159 of 455


Conversion Table Record, [Link], SQL Table Name SSRFCNV

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
- - - - - SUN_DB char( 3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value ’CNV’,
mandatory
R-CNV-CODE 004 005 X - CODE char (5) Conversion Code Mandatory
FILLER 009 001 X - - - -
R-CNV-PERIOD 010 007 X - PERIOD int Accounting Period SQL - not null
R-CNV-AC-FROM 017 015 X - FROM_ACCT char(15) Account Code From SQL - not null
FILLER 032 033 X - - - -
R-CNV-LOOKUP-ID 065 003 X - - - Lookup Id
R-CNV-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - UPDATED char (8) -
R-CNV-AC-TO 086 015 X - TO_ACCT char(15) Account Code To
R-CNV-NAME 101 030 X - NAME char(30) Conversion Name Mandatory
R-CNV-OPERATOR 131 001 X - OPERATOR char (1) Multiply or Divide Mandatory
R-CNV-CONV-RATE 132 018 N 9 RATE numeric Primary Conv’n Rate
R-CNV-DEC-PLACES 150 001 X - DEC_PLACES char (1) Decimal Places
R-CNV-NET-ACCOUNT 151 015 X - NET_ACCT_REAL char(15) Net Account Code
R-CNV-LOSS-ACCOUNT 166 015 X - LOSS_ACCT_REAL char(15) Losses Account Code
R-CNV-GAIN-ACCOUNT 181 015 X - GAIN_ACCT_REAL char(15) Gains Account Code
R-CNV-CONV-RATE-2 196 018 N 9 RATE_2 numeric Conversion Rate 2
R-CNV-CONV-RATE-3 214 018 N 9 RATE_3 numeric Conversion Rate 3
R-CNV-CONV-RATE-4 232 018 N 9 RATE_4 numeric Conversion Rate 4
R-CNV-CONV-RATE-5 250 018 N 9 RATE_5 numeric Conversion Rate 5
R-CNV-CONV-RATE-6 268 018 N 9 RATE_6 numeric Conversion Rate 6
FILLER 286 015 X - - - -
R-CNV-NET-ACC-NON-REAL 301 015 X - NET_ACCT_NON_REAL char(15) Account Code Net or Loss
R-CNV-LOSS-ACC-NON-REAL 316 015 X - LOSS_ACCT_NON_REAL char(15) -
R-CNV-GAIN-ACC-NON-REAL 331 015 X - GAIN_ACCT_NON_REAL char(15) Account Code Gain
R-CNV-EUR-RATE 346 018 N 9 EURO_RATE Numeric Euro Rate
FILLER 364 467 X - - - -
FILLER 831 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 160 of 455


Daily Conversion Rate Record, [Link], SQL Table Name SSRFCND

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
- - - - - SUN_DB char (3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value’CND’,mandatory
R-CND-CODE 004 005 X - CODE char (5) Conversion Code Mandatory
R-CND-DATE 009 008 N 0 CONV_DATE int Date Mandatory
R-CND-AC-FROM 017 015 X - FROM_ACCT char(15) Account Code From SQL not null
FILLER 032 033 X - - -
R-CND-LOOKUP-ID 065 003 X - - - Lookup Id
R-CND-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - UPDATED char (8)
R-CND-AC-TO 086 015 X - TO_ACCT char(15)
R-CND-NAME 101 030 X - NAME char(30) Conversion Name Mandatory
R-CND-OPERATOR 131 001 X - OPERATOR char(1) Multiply or Divide Mandatory
R-CND-CONV-RATE 132 018 N 9 RATE numeric Conversion Rate
R-CND-DEC-PLACES 150 001 X - DEC_PLACES char(1) Number of Decimal Places
R-CND-NET-ACCOUNT 151 015 X - NET_ACCT_REAL char(15) Net or Loss Account Code
R-CND-LOSS-ACCOUNT 166 015 X - LOSS_ACCT_REAL char(15) Losses Account Code
R-CND-GAIN-ACCOUNT 181 015 X - GAIN_ACCT_REAL char(15) Gain Account Code
R-CND-EUR-RATE 196 018 N 9 EURO_RATE Numeric Euro Rate
FILLER 214 587 X - - -
FILLER 816 224 X - - -

SunSystems 4 – Technical Reference Manual Page 161 of 455


Column Heading Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value’COL’, mandatory
R-COL-CODE 004 002 X - Column Code Mandatory
R-COL-BUDGET 006 001 X - Column Budget Code
R-COL-CONV 007 001 X - Other Amount
FILLER 008 025 X - -
FILLER 033 032 X - -
R-COL-LOOKUP-ID 065 003 X - Lookup Id
R-COL-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-COL-HEADING-1 086 010 X - Column Heading 1
R-COL-HEADING-2 096 010 X - Column Heading 2
R-COL-HEADING-3 106 010 X - Column Heading 3
R-COL-HEADING-4 116 010 X - Column Heading 4
R-COL-CALC 126 003 X - Column Calculation
FILLER 129 404 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 162 of 455


Daybook Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
DAY-REC-TYPE 001 003 X - Reference Record Type Value ‘DAY’, Mandatory
DAY-DBKEY 004 003 X - Database Code Mandatory
FILLER 007 058 X - - -
FILLER 065 013 X - - -
FILLER 078 008 X - - -
DAY-SQN-CODE 086 005 X - Sequence Code Mandatory
DAY-SEQUENCE-BY 091 001 X - Sequence By Mandatory
DAY-NUMBER-METH 092 001 X - Numbering Method Mandatory
DAY-UPDATE-OPEN 093 001 X - Update Open Date
DAY-LAST-PROC 094 008 X - Last Processed Date
FILLER 102 002 X - - -
DAY-NEXT-PAGE-NUM 104 010 N 0 Next Page Number
DAY-EX-JOURN-F 114 005 X - Exclude Journal From
DAY-EX-JOURN-T 119 005 X - Exclude Journal To
DAY-EX-ACCT-F 124 015 X - Exclude Account From
DAY-EX-ACCT-T 139 015 X - Exclude Account To
DAY-USED-DEFINITIVE 154 001 X - Definitive Request Flag
FILLER 155 646 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 163 of 455


Document Counter Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-DCC-REC-TYPE 001 003 X - Reference Record Type Value ‘DCC’, Mandatory
R-DCC-PREFIX 004 004 X - Prefix Mandatory
FILLER 008 057 X - - -
R-DCC-LOOKUP-ID 065 003 X - Lookup ID
R-DCC-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
R-DCC-DESCRIP 086 030 X - Description Mandatory
R-DCC-NEXT-NUM 116 006 N - Next Number Mandatory
R-DCC-LAST-DATE 122 008 N - Last Date Mandatory
R-DCC-DATE-CTRL 130 001 X - Document Date Control
R-DCC-STATUS 131 001 X - Status
R-DCC-SUPPRESS-NUM-OV 132 001 X - Suppress Number Override
R-DCC-LOCK 133 001 X - Lock
FILLER 134 393 X - -
R-DCC-GRP-MASK 527 005 X - Operator Group
FILLER 532 269 X - - -
FILLER 801 224 X - - -

SunSystems 4 – Technical Reference Manual Page 164 of 455


Despatch Counter Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
DCD-REC-TYPE 001 003 X - Reference Record Type Value ‘DCD’, Mandatory
DCD-CODE-1 004 015 X - Analysis Code Number 1
DCD-CODE-2 019 015 X - Analysis Code Number 2
DCD-CODE-3 034 015 X - Analysis Code Number 3
DCD-CODE-4 049 015 X - Analysis Code Number 4
FILLER 064 001 X - - -
FILLER 065 013 X - - -
FILLER 078 008 X - - -
DCD-COUNTER 086 004 X - Despatch Counter
FILLER 090 711 X - - -
FILLER 801 224 X - - -

SunSystems 4 – Technical Reference Manual Page 165 of 455


Depreciation Table Heading Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’DPH’, mandatory
R-DPH-TABLE-CODE 004 005 X - Table Code Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-DPH-LOOKUP-CODE 065 013 X - Lookup Id & Code
FILLER 078 008 X - -
R-DPH-HEADING-1 086 030 X - Description Line 1 Mandatory
R-DPH-HEADING-2 116 030 X - Description Line 2
R-DPH-HEADING-3 146 030 X - Description Line 3
R-DPH-HEADING-4 176 030 X - Description Line 4
R-DPH-HEADING-5 206 030 X - Description Line 5
R-DPH-HEADING-6 236 030 X - Description Line 6
FILLER 266 267 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 166 of 455


Depreciation Table Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’DPT’, mandatory
R-DPT-TABLE-CODE 004 005 X - Table Code Mandatory
R-DPT-TABLE-COLUMN 009 002 N 0 Table Column Mandatory
R-DPT-NTH-30-YEARS 011 001 N 0 Set of yrs (1/2...9) Mandatory
FILLER 012 021 X - -
FILLER 033 032 X - -
R-DPT-LOOKUP-CODE 065 013 X - Lookup Code
FILLER 078 008 X - -
R-DPT-HEADING 086 008 X - Heading
R-DPT-VALUE-01 094 005 N 3 Depcn. Percentage for Year 1
R-DPT-VALUE-02 099 005 N 3 Depcn. Percentage for Year 2
R-DPT-VALUE-03 104 005 N 3 Depcn. Percentage for Year 3
R-DPT-VALUE-04 109 005 N 3 Depcn. Percentage for Year 4
R-DPT-VALUE-05 114 005 N 3 Depcn. Percentage for Year 5
R-DPT-VALUE-06 119 005 N 3 Depcn. Percentage for Year 6
R-DPT-VALUE-07 124 005 N 3 Depcn. Percentage for Year 7
R-DPT-VALUE-08 129 005 N 3 Depcn. Percentage for Year 8
R-DPT-VALUE-09 134 005 N 3 Depcn. Percentage for Year 9
R-DPT-VALUE-10 139 005 N 3 Depcn. Percentage for Year 10
R-DPT-VALUE-11 144 005 N 3 Depcn. Percentage for Year 11
R-DPT-VALUE-12 149 005 N 3 Depcn. Percentage for Year 12
R-DPT-VALUE-13 154 005 N 3 Depcn. Percentage for Year 13
R-DPT-VALUE-14 159 005 N 3 Depcn. Percentage for Year 14
R-DPT-VALUE-15 164 005 N 3 Depcn. Percentage for Year 15
R-DPT-VALUE-16 169 005 N 3 Depcn. Percentage for Year 16
R-DPT-VALUE-17 174 005 N 3 Depcn. Percentage for Year 17
R-DPT-VALUE-18 179 005 N 3 Depcn. Percentage for Year 18
R-DPT-VALUE-19 184 005 N 3 Depcn. Percentage for Year 19
R-DPT-VALUE-20 189 005 N 3 Depcn. Percentage for Year 20
R-DPT-VALUE-21 194 005 N 3 Depcn. Percentage for Year 21
R-DPT-VALUE-22 199 005 N 3 Depcn. Percentage for Year 22
R-DPT-VALUE-23 204 005 N 3 Depcn. Percentage for Year 23
R-DPT-VALUE-24 209 005 N 3 Depcn. Percentage for Year 24
R-DPT-VALUE-25 214 005 N 3 Depcn. Percentage for Year 25
R-DPT-VALUE-26 219 005 N 3 Depcn. Percentage for Year 26
R-DPT-VALUE-27 224 005 N 3 Depcn. Percentage for Year 27
R-DPT-VALUE-28 229 005 N 3 Depcn. Percentage for Year 28
R-DPT-VALUE-29 234 005 N 3 Depcn. Percentage for Year 29
R-DPT-VALUE-30 239 005 N 3 Depcn. Percentage for Year 30
FILLER 244 289 - - -
FILLER 533 268 - - -
FILLER 801 224 - - -

SunSystems 4 – Technical Reference Manual Page 167 of 455


Payment Reference Details Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘ESR’, Mandatory
R-ESR-CODE 004 015 X - Account Code Mandatory
R-ESR-TRANS-REF 019 015 X - Transaction Reference Mandatory
R-ESR-JRNL-NO 034 007 N 0 Journal Number
R-ESR-JRNL-LINE-NO 041 007 N 0 Journal Line Number
FILLER 048 017 X -
R-ESR-LOOKUP-ID 065 003 X - Lookup ID
R-ESR-LOOKUP-CODE 068 010 X - Lookup Code
R-ESR-DATE-UPD 078 008 X - Date Last Updated
R-ESR-TEXT1 086 040 X - Text 1
R-ESR-TEXT1-FLAG 126 001 X - Text 1 Flag
R-ESR-TEXT2 127 040 X - Text 2
R-ESR-TEXT2-FLAG 167 001 X - Text 2 Flag
R-ESR-TEXT3 168 040 X - Text 3
R-ESR-TEXT3-FLAG 208 001 X - Text 3 Flag
R-ESR-TEXT4 209 040 X - Text 4
R-ESR-TEXT4-FLAG 249 001 X - Text 4 Flag
R-ESR-TEXT5 250 040 X - Text 5
R-ESR-TEXT5-FLAG 290 001 X - Text 5 Flag
R-ESR-TEXT6 291 040 X - Text 6
R-ESR-TEXT6-FLAG 331 001 X - Text 6 Flag
R-ESR-TEXT7 332 040 X - Text 7
R-ESR-TEXT7-FLAG 372 001 X - Text 7 Flag
R-ESR-TEXT8 373 040 X - Text 8
R-ESR-TEXT8-FLAG 413 001 X - Text 8 Flag
R-ESR-TEXT9 414 040 X - Text 9
R-ESR-TEXT9-FLAG 454 001 X - Text 9 Flag
R-ESR-AMOUNT1 455 019 S 3 Amount 1
R-ESR-AMOUNT1-CD 474 001 X - Amount 1 Credit/Debit Code
R-ESR-AMOUNT2 475 019 S 3 Amount 2
R-ESR-AMOUNT2-CD 494 001 X - Amount 2 Credit/Debit Code
R-ESR-AMOUNT3 495 019 S 3 Amount 3
R-ESR-AMOUNT3-CD 514 001 X - Amount 3 Credit/Debit Code
R-ESR-AMOUNT4 515 019 S 3 Amount 4
R-ESR-AMOUNT4-CD 534 001 X - Amount 4 Credit/Debit Code
R-ESR-AMOUNT5 535 019 S 3 Amount 5
R-ESR-AMOUNT5-CD 554 001 X - Amount 5 Credit/Debit Code
R-ESR-AMOUNT6 555 019 S 3 Amount 6
R-ESR-AMOUNT6-CD 574 001 X - Amount 6 Credit/Debit Code
R-ESR-CHECKSUM1 575 001 X - Checksum 1
R-ESR-CHECKSUM2 576 001 X - Checksum 2
R-ESR-CHECKSUM3 577 001 X - Checksum 3
R-ESR-CHECKSUM4 578 001 X - Checksum 4
R-ESR-CHECKSUM5 579 001 X - Checksum 5

SunSystems 4 – Technical Reference Manual Page 168 of 455


Payment Reference Details Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-ESR-CHECKSUM6 580 001 X - Checksum 6
R-ESR-CHECKSUM7 581 001 X - Checksum 7
R-ESR-CHECKSUM8 582 001 X - Checksum 8
R-ESR-CHECKSUM9 583 001 X - Checksum 9
R-ESR-CHECKSUM10 584 001 X - Checksum 10
R-ESR-COUNTRY-NAME1 585 010 X - Country Name 1
R-ESR-COUNTRY-CODE1 595 003 X - Country Code 1
R-ESR-COUNTRY-NAME2 598 010 X - Country Name 2
R-ESR-COUNTRY-CODE2 608 003 X - Coutnry Code 2
R-ESR-CURRENCY-CODE1 611 003 X - Currency Code 1
R-ESR-CURRENCY-CODE2 614 003 X - Currency Code 2
R-ESR-FLAG1 617 001 X - Currency Flag 1
R-ESR-FLAG2 618 001 X - Currency Flag 2
R-ESR-FLAG3 619 001 X - Currency Flag 3
R-ESR-FLAG4 620 001 X - Currency Flag 4
R-ESR-FLAG5 621 001 X - Currency Flag 5
R-ESR-FLAG6 622 001 X - Currency Flag 6
R-ESR-FLAG7 623 001 X - Currency Flag 7
R-ESR-FLAG8 624 001 X - Currency Flag 8
R-ESR-FLAG9 625 001 X - Currency Flag 9
R-ESR-FLAG10 626 001 X - Currency Flag 10
R-ESR-REF-NO1 627 030 X - Reference Number 1
R-ESR-REF-NO2 657 030 X - Reference Number 2
R-ESR-OTHER-DATE1 687 008 N 0 Other Date 1
R-ESR-OTHER-DATE2 695 008 N 0 Other Date 2
R-ESR-OTHER-DATE3 703 008 N 0 Other Date 3
R-ESR-OTHER-DATE4 711 008 N 0 Other Date 4
R-ESR-OTHER-DATE5 719 008 N 0 Other Date 5
R-ESR-OTHER-DATE6 727 008 N 0 Other Date 6
R-ESR-TRANS-PERIOD 735 008 N 0 Transaction Period Posted
R-ESR-TRANS-STATUS 743 002 X - Transaction Status
FILLER 745 280 X - -

SunSystems 4 – Technical Reference Manual Page 169 of 455


Asset Analysis Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’FAA’, mandatory
R-FAA-ASSET-CODE 004 010 X - Asset Code Mandatory
R-FAA-ASSET-SUB-CODE 014 005 X - Asset Sub Code
FILLER 019 014 X - -
FILLER 033 032 X - -
R-FAA-LOOKUP-ID 065 003 X - Lookup Id
R-FAA-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-FAA-DESC-1 086 030 X - Description
R-FAA-FACTOR 116 010 N 5 Factor
R-FAA-TEMPORARY 126 001 X - Temporary Record
R-FAA-DEPRCN 127 016 S 3 Base Depreciation
R-FAA-OTHER-DEPRCN 143 016 S 3 Other Depreciation
R-FAA-GROSS 159 016 S 3 Base Gross Value
R-FAA-NET 175 016 S 3 Base Net Value
R-FAA-OTHER-GROSS 191 016 S 3 Other Gross Value
R-FAA-OTHER-NET 207 016 S 3 Other Net Value
R-FAA-AN-0 223 015 X - Analysis Code 0
R-FAA-AN-1 238 015 X - Analysis Code 1
R-FAA-AN-2 253 015 X - Analysis Code 2
R-FAA-AN-3 268 015 X - Analysis Code 3
R-FAA-AN-4 283 015 X - Analysis Code 4
R-FAA-AN-5 298 015 X - Analysis Code 5
R-FAA-AN-6 313 015 X - Analysis Code 6
R-FAA-AN-7 328 015 X - Analysis Code 7
R-FAA-AN-8 343 015 X - Analysis Code 8
R-FAA-AN-9 358 015 X - Analysis Code 9
FILLER 373 160 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 170 of 455


Asset Budget Record, [Link], SQL Table Name SSRFFBR

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - SUN_DB char (3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value
’FBR’,
mandatory
R-FBR-ASSET-CODE 004 010 X - ASSET_CODE char(10) Asset Code Mandatory
R-FBR-BUDGET-CODE 014 001 X - BUDGET char (1) Budget Code Mandatory
FILLER 015 018 X - - - -
FILLER 033 032 X - - - -
R-FBR-LOOKUP-ID 065 003 X - - - Lookup Id
R-FBR-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - UPDATED char (8) Date Last Updated
FILLER 086 025 X - - - -
R-FBR-STATUS 111 001 X - STATUS char (1) Asset Status
R-FBR-START-PERIOD 112 008 X - START_PERD char (8) Start Period Deprec’n
R-FBR-END-PERIOD 120 008 X - END_PERD char (8) End Period Deprec’n
R-FBR-LAST-PERIOD 128 008 X - LAST_PERD char (8) Last Period Deprec’n
R-FBR-DISPOSAL-PERIOD 136 008 X - DISP_PERD char (8) Disposal Period
R-FBR-BS-AC 144 015 X - BS_AC char(15) Deprec’n Balance
Sheet Account
R-FBR-PL-AC 159 015 X - PL_AC char(15) Deprec’n P&L Account
R-FBR-ASSET-DISPOSED 174 001 X - DISPOSED char (1) Asset Disposed
R-FBR-TRANS-PRESENT 175 001 X - TRANS_PRES char (1) Transactions Present
R-FBR-LATEST-TRANS 176 008 X - LAST_TRANS char (8) Last Transaction
R-FBR-BASE-GROSS-VAL 184 019 S 3 BASE_GROSS numeric Base Gross Value
R-FBR-BASE-ACCUM-DEP 203 019 S 3 BASE_DEP numeric Base Accumulated
Deprec’n
R-FBR-BASE-NET-VAL 222 019 S 3 BASE_NET numeric Base Net Value
R-FBR-BASE-DEP-METHOD 241 001 X - BASE_METH char (1) Base Deprec’n Method
R-FBR-BASE-PERCENT 242 005 N 3 BASE_PERC numeric Base Deprec’n Percent
R-FBR-BASE-FINAL-VAL 247 018 N 3 BASE_FINAL numeric Base Final Value
R-FBR-TABLE-CODE 265 005 X - TABLE_CODE char (5) Deprec’n Table Code
R-FBR-TABLE-COLUMN 270 002 N 0 TABLE_COL char (2) Deprec’n Table Column
R-FBR-CONV-CODE 272 005 X - CONV_CODE char (5) Conversion Code
R-FBR-OTHER-GROSS-VAL 277 019 S 3 OTHER_GROS numeric Other Gross Value
R-FBR-OTHER-ACCUM-DEP 296 019 S 3 OTHER_DEP numeric Other Accumulated
Deprec’n
R-FBR-OTHER-NET-VAL 315 019 S 3 OTHER_NET numeric Other Net Value
R-FBR-OTHER-DEP-METHOD 334 001 X - OTHER_METH char (1) Other Deprec’n Method
R-FBR-OTHER-PERCENT 335 005 N 3 OTHER_PERC numeric Other Deprec’n
Percent
R-FBR-OTHER-FINAL-VAL 340 018 N 3 OTHER_FINL numeric Other Final Value

SunSystems 4 – Technical Reference Manual Page 171 of 455


Asset Budget Record, [Link], SQL Table Name SSRFFBR – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
R-FBR-OTHER-TABLE-CODE 358 005 X - OTHER_CODE char (5) Other Deprec’n Table
Code
R-FBR-OTHER-TABLE-COLUMN 363 002 N 0 OTHER_COL char (2) Other Deprec’n Table
Column
FILLER 365 184 X - - - -
R-FBR-EXC-FV-OVR 549 001 X - FV_OVER char (1) Final Value
Calculation Override
R-FBR-BASE-DAYS-FIRST- 550 003 N 0 BASE_DAYS_1ST_PD int Depreciation Base
PERIOD Days 1st period
R-FBR-BASE-ACTIVE-DAYS 553 003 N 0 BASE_ACTIVE_DAYS int Depreciation Active
Days
R-FBR-OTHER-DAYS-FIRST- 556 003 N 0 OTHER_DAYS_1ST_PD int Depreciation Other
PERIOD Days 1st Period
R-FBR-OTHER-ACTIVE-DAYS 559 003 N 0 OTHER_ACTIVE_DAYS int Depreciation Other
Active days
R-FBR-LAST-DEP-AM 562 019 S 3 FIELD LAST_DEP_AM numeric Last Depreciation
Amount
R-FBR-LAST-DEP-O-AM 581 019 S 3 FIELD numeric Last Depreciation
LAST_DEP_O_AM Other Amount
R-FBR-BASE-POST-FINAL-VAL 600 018 N 3 BASE_POST_FIN_VAL numeric Depreciation Base
Post final value
R-FBR-OTHER-POST-FINAL-VAL 618 018 N 3 OTHER_POST_FIN_VAL numeric Depreciation Other
Post final value
FILLER 636 389 X - - - -

SunSystems 4 – Technical Reference Manual Page 172 of 455


Asset Diary Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value’FDR’, mandatory
R-FDR-ASSET-CODE 004 010 X - Asset Code Mandatory
R-FDR-ASSET-DIARY-CODE 014 005 X - Asset Diary Code
FILLER 019 014 X - -
FILLER 033 032 X - -
R-FDR-LOOKUP-ID 065 003 X - Lookup Id
R-FDR-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-FDR-DESC-1 086 030 X - Description Line 1
R-FDR-DESC-2 116 030 X - Description Line 2
R-FDR-DESC-3 146 030 X - Description Line 3
R-FDR-DESC-4 176 030 X - Description Line 4
R-FDR-SERIAL-NO 206 030 X - Serial No
R-FDR-PUR-DATE 236 008 X - Purchase Date
R-FDR-PUR-PRICE 244 016 N 3 Purchase Price
R-FDR-COMM-DATE 260 008 X - Commission Date
R-FDR-INSURE-VAL 268 016 N 3 Insure Value
R-FDR-INSURE-DUE-PER 284 003 N 0 Insure Due Period
R-FDR-INSURE-DESC 287 015 X - Insure Description
R-FDR-DE-COMM-DATE 302 008 X - De-commission Date
R-FDR-DISPOSAL-DATE 310 008 X - Disposal Date
R-FDR-DISPOSAL-PRICE 318 016 N 3 Disposal Price
R-FDR-DISPOSAL-REF 334 015 X - Disposal Ref
R-FDR-MAINT-FREQ 349 005 X - Maintenance Freq
R-FDR-MAINT-DESC 354 015 X - Maintenance Descr
FILLER 369 164 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 173 of 455


Formatted Layout Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-FLT-KEY-TYPE 001 003 X - Reference Record Type Value ’FLT’, mandatory
R-FLT-CODE 004 005 X - Layout Code Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-FLT-LOOKUP-ID 065 003 X - Lookup Id
R-FLT-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-FLT-LAYOUT-NAME 086 025 X - Layout Name Mandatory
R-FLT-ACCOUNT-TYPE-1 111 001 X - Account Type 1 (Debtor)
R-FLT-ACCOUNT-TYPE-2 112 001 X - Account Type 2 (Creditor)
R-FLT-ACCOUNT-TYPE-3 113 001 X - Account Type 3 (Client)
R-FLT-ACCOUNT-TYPE-4 114 001 X - Account Type 4 (B/S)
R-FLT-ACCOUNT-TYPE-5 115 001 X - Account Type 5 (P/L)
R-FLT-ACCOUNT-TYPE-6 116 001 X - Account Type 6 (Memo)
R-FLT-SELECTION-CODE-1 117 002 X - Selection Code 1
R-FLT-SELECTION-CODE-2 119 002 X - Selection Code 2
R-FLT-SELECTION-CODE-3 121 002 X - Selection Code 3
R-FLT-SELECTION-CODE-4 123 002 X - Selection Code 4
R-FLT-SELECTION-CODE-5 125 002 X - Selection Code 5
R-FLT-SELECTION-FROM-1 127 015 X - Selection Code From 1
R-FLT-SELECTION-FROM-2 142 015 X - Selection Code From 2
R-FLT-SELECTION-FROM-3 157 015 X - Selection Code From 3
R-FLT-SELECTION-FROM-4 172 015 X - Selection Code From 4
R-FLT-SELECTION-FROM-5 187 015 X - Selection Code From 5
R-FLT-SELECTION-TO-1 202 015 X - Selection Code To 1
R-FLT-SELECTION-TO-2 217 015 X - Selection Code To 2
R-FLT-SELECTION-TO-3 232 015 X - Selection Code To 3
R-FLT-SELECTION-TO-4 247 015 X - Selection Code To 4
R-FLT-SELECTION-TO-5 262 015 X - Selection Code To 5
R-FLT-DATE-PERIOD-IND 277 001 X - Select by Date/Period Mandatory
R-FLT-REPORT-TRANSACTIONS 278 001 X - Report Transactions
R-FLT-FORMAT-CODE 279 005 X - Format Code Mandatory
R-FLT-INCLUDE-GP 284 001 X - Include group
FILLER 285 248 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 174 of 455


Format Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘FMT’,Mandatory
R-FMT-FORMAT-CODE 004 005 X - Format Code Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-FMT-LOOKUP-ID 065 003 X - Lookup Id
R-FMT-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-FMT-FORMAT-DESC 086 025 X - Format Description Mandatory
R-FMT-FORMATTER 111 005 X - Formatter Name Mandatory
R-FMT-FORMAT-TITLE 116 025 X - Format Title
R-FMT-CHEQUE-NO 141 010 N - Cheque Number
R-FMT-CHEQUE-OV 151 001 X - Suppress Cheque Number Override
R-FMT-ALLOCATION-FROM 152 001 X - Allocation Marker From
R-FMT-ALLOCATION-TO 153 001 X - Allocation Marker To
R-FMT-ALLOCATION-NEW 154 001 X - New Allocation Marker
R-FMT-ALLOC-SEQ 155 001 X - Allocation Sequence
R-FMT-ALLOC-CEILING 156 001 X - Allocation Marker Ceiling
FILLER 157 376 X - -
FILLER 533 268 X - -
FILLER 801 224 X -

SunSystems 4 – Technical Reference Manual Page 175 of 455


Financial Table Columns Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’FTC’, Mandatory
R-FTC-COL-CONTENT-CODE 004 005 X - Column Content Code Mandatory
R-FTC-COL-NUMBER 009 002 N - Column Number Mandatory
FILLER 011 022 X - -
FILLER 033 032 X - -
R-FTC-LOOKUP-ID 065 003 X - Lookup Id
R-FTC-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-FTC-COL-TYPE 086 001 X - Column Type Mandatory
R-FTC-BASIS 087 002 X - Column Basis
R-FTC-RANGE-FROM 089 015 X - Column Basis Range From
R-FTC-RANGE-TO 104 015 X - Column Basis Range To
R-FTC-PRINT-COL 119 002 X - Print Column
R-FTC-FORMAT 121 001 X - Format
R-FTC-HEADING-1 122 010 X - Heading Line 1
R-FTC-HEADING-2 132 010 X - Heading Line 2
R-FTC-HEADING-3 142 010 X - Heading Line 3
R-FTC-HEADING-4 152 010 X - Heading Line 4
R-FTC-COL-DATA 162 002 X - Column Data
R-FTC-ACTUAL-BUDGET 164 001 X - Actual/Budget
R-FTC-OTHER-AMOUNT 165 001 X - Other Amount
R-FTC-SUBSIDIARY 166 003 X - Subsidiary Ledger
R-FTC-SELECTION-1-CODE 169 002 X - Selection Category 1
R-FTC-SELECTION-1-FROM 171 015 X - Selection Code 1 From
R-FTC-SELECTION-1-TO 186 015 X - Selection Code 1 To
R-FTC-SELECTION-2-CODE 201 002 X - Selection Category 2
R-FTC-SELECTION-2-FROM 203 015 X - Selection Code 2 To
R-FTC-SELECTION-2-TO 218 015 X - Selection Code 2 From
R-FTC-SELECTION-3-CODE 233 002 X - Selection Category 3
R-FTC-SELECTION-3-FROM 235 015 X - Selection Code 3 To
R-FTC-SELECTION-3-TO 250 015 X - Selection Code 3 From
R-FTC-FIRST-ENTRY-CODE 265 002 N - Column Number 1
R-FTC-FIRST-ENTRY-TYPE 267 001 X - Row/Statistic 1
R-FTC-OPERATOR 268 001 X - Operator
R-FTC-SECOND-ENTRY-CODE 269 002 N - Column Number 2
R-FTC-SECOND-ENTRY-TYPE 271 001 X - Row/Statistic 2
R-FTC-REVALUE 272 001 X - Revalue from Other Amount
R-FTC-BRACKET-NEGATIVES 273 001 X - Bracket Negatives
R-FTC-SUPPRESS-AMOUNT 274 001 X - Suppress Amount
R-FTC-SUPPRESS-MATH-TOTAL 275 001 X - Suppress Math Total
R-FTC-COL-DEC-PL 276 001 X - Decimal Places
FILLER 277 256 X - -
FILLER 533 268 X - -
FILLER 801 224 - - -

SunSystems 4 – Technical Reference Manual Page 176 of 455


Financial Table Format Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’FTF’, Mandatory
R-FTF-TABLE-CODE 004 005 X - Table Code Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-FTF-LOOKUP-ID 065 003 X - Lookup Id
R-FTF-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-FTF-TABLE-NAME-1 086 030 X - Table Name Line 1 Mandatory
R-FTF-TABLE-NAME-2 116 030 X - Table Name Line 2
R-FTF-ROW-CONTENT-CODE 146 005 X - Row Content Code Mandatory
R-FTF-COL-CONTENT-CODE 151 005 X - Column Content Code Mandatory
R-FTF-LEVEL-2-CAT 156 002 X - Level Code 2 Category
R-FTF-LEVEL-2-SUBCAT 158 001 X - Level Code 2 Sub-Category
R-FTF-LEVEL-2-PRINT-CODE 159 001 X - Report Codes 2
R-FTF-LEVEL-1-CAT 160 002 X - Level Code 1 Category
R-FTF-LEVEL-1-SUBCAT 162 001 X - Level Code 1 Sub-Category
R-FTF-LEVEL-1-PRINT-CODE 163 001 X - Report Codes 1
R-FTF-BRACKET-NEGATIVES 164 001 X - Bracket Negatives
R-FTF-WIDE-COLUMNS 165 001 X - Wide Columns
R-FTF-HELD-JOURNALS 166 001 X - Held Journals
R-FTF-TRANSFER-FORMAT 167 005 X - Transfer Format
R-FTF-TRANSFER-INT-COLS 172 001 X - Transfer Internal Columns
R-FTF-ZERO-SUPPRESS 173 001 X - Row Zero Suppress
R-FTF-INCLUDE-ROUGH 174 001 X - Include Rough Book
R-FTF-SPREAD 175 001 X - Actuals Flag
R-FTF-PAGE-LEVEL 176 001 X - Page Throw
R-FTF-PRINTER-CODE 177 005 X - Printer Code
FILLER 182 345 X - -
R-FTF-GRP-MASK 527 005 X - Operator Group Mask
FILLER 532 001 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 177 of 455


Financial Table Row Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’FTR’, mandatory
R-FTR-ROW-CONTENT-CODE 004 005 X - Row Content Code Mandatory
R-FTR-ROW-LINE-NUMBER 009 005 N - Row Line Number Mandatory
FILLER 014 019 X - -
FILLER 033 032 X - -
R-FTR-LOOKUP-ID 065 003 X - Lookup Id
R-FTR-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-FTR-ROW-TYPE 086 002 X - Row Type Mandatory
R-FTR-ROW-NAME 088 030 X - Row Name
R-FTR-BASIS 118 002 X - Row Basis
R-FTR-RANGE-FROM 120 015 X - Row Basis Range From
R-FTR-RANGE-TO 135 015 X - Row Basis Range To
R-FTR-BREAK-OUT 150 001 X - Break Out Details
R-FTR-NORMAL-SIGN 151 001 X - Normal Sign
R-FTR-AMOUNT-REVERSE 152 001 X - Amount Reverse
R-FTR-SUPPRESS-ROW 153 001 X - Suppress Row
R-FTR-REPORT-CODE 154 001 X - Report Code
R-FTR-UNDERSCORE 155 001 X - Underscore
R-FTR-SELECTION-1-CODE 156 002 X - Selection 1 Code
R-FTR-SELECTION-1-FROM 158 015 X - Selection 1 Range From
R-FTR-SELECTION-1-TO 173 015 X - Selection 1 Range To
R-FTR-SELECTION-2-CODE 188 002 X - Selection 2 Code
R-FTR-SELECTION-2-FROM 190 015 X - Selection 2 Range From
R-FTR-SELECTION-2-TO 205 015 X - Selection 2 Range To
R-FTR-SELECTION-3-CODE 220 002 X - Selection 3 Code
R-FTR-SELECTION-3-FROM 222 015 X - Selection 3 Range From
R-FTR-SELECTION-3-TO 237 015 X - Selection 3 Range To
R-FTR-COLUMN-CHANGE 252 001 X - Column Change
R-FTR-OFFSET-COLN 253 002 N - Offset Column
FILLER 255 278 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 178 of 455


Asset Value Record, [Link], SQL Table Name SSRFFVR

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
- - - - - SUN_DB char (3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value ’FVR’,
mandatory
R-FVR-ASSET-CODE 004 010 X - ASSET_CODE char(10) Asset Code Mandatory
FILLER 014 019 X - - - -
FILLER 033 032 X - - - -
R-FVR-LOOKUP-ID 065 003 X - - - Lookup Id
R-FVR-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - UPDATED char (8) Date Last Updated
R-FVR-NAME 086 025 X - NAME char(25) Asset Name Mandatory
R-FVR-STATUS 111 001 X - STATUS char (1) Asset Status
R-FVR-START-PERIOD 112 008 X - START_PERD char (8) Start Period Deprec’n
R-FVR-END-PERIOD 120 008 X - END_PERD char (8) End Period Deprec’n
R-FVR-LAST-PERIOD 128 008 X - LAST_PERD char (8) Last Period Deprec’n
R-FVR-DISPOSAL-PERIOD 136 008 X - DISP_PERD char (8) Disposal Period
R-FVR-BS-AC 144 015 X - BS_AC char(15) Deprec’n Balance Sheet
Account
R-FVR-PL-AC 159 015 X - PL_AC char(15) Deprec’n P&L Account
R-FVR-ASSET-DISPOSED 174 001 X - DISPOSED char (1) Asset Disposed
R-FVR-TRANS-PRESENT 175 001 X - TRANS_PRES char (1) Transactions Present
R-FVR-LATEST-TRANS 176 008 X - LAST_TRANS char (8) Last Transaction
R-FVR-BASE-GROSS-VAL 184 019 S 3 BASE_GROSS numeric Base Gross Value
R-FVR-BASE-ACCUM-DEP 203 019 S 3 BASE_DEP numeric Base Accumulated
Deprec’n
R-FVR-BASE-NET-VAL 222 019 S 3 BASE_NET numeric Base Net Value
R-FVR-BASE-DEP-METHOD 241 001 X - BASE_METH char (1) Base Deprec’n Method
R-FVR-BASE-PERCENT 242 005 N 3 BASE_PERC numeric Base Deprec’n Percent
R-FVR-BASE-FINAL-VAL 247 018 N 3 BASE_FINAL numeric Base Final Value
R-FVR-TABLE-CODE 265 005 X - TABLE_CODE char (5) Deprec’n Table Code
R-FVR-TABLE-COLUMN 270 002 N 0 TABLE_COL char (2) Deprec’n Table Column
R-FVR-CONV-CODE 272 005 X - CONV_CODE char (5) Conversion Code
R-FVR-OTHER-GROSS-VAL 277 019 S 3 OTHER_GROS numeric Other Gross Value
R-FVR-OTHER-ACCUM-DEP 296 019 S 3 OTHER_DEP numeric Other Accumulated
Deprec’n
R-FVR-OTHER-NET-VAL 315 019 S 3 OTHER_NET numeric Other Net Value
R-FVR-OTHER-DEP-METHOD 334 001 X - OTHER_METH char (1) Other Deprec’n Method
R-FVR-OTHER-PERCENT 335 005 N 3 OTHER_PERC numeric Other Deprec’n Percent
R-FVR-OTHER-FINAL-VAL 340 018 N 3 OTHER_FINL numeric Other Final Value
R-FVR-OTHER-TABLE-CODE 358 005 X - OTHER_CODE char (5) Other Deprec’n Table
Code

SunSystems 4 – Technical Reference Manual Page 179 of 455


Asset Value Record, [Link], SQL Table Name SSRFFVR – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
R-FVR-OTHER-TABLE-COLUMN 363 002 N 0 OTHER_COL char (2) Other Deprec’n Table
Column
R-FVR-AN-O 365 015 X - ANAL_F0 char(15) Analysis Code F0
R-FVR-AN-1 380 015 X - ANAL_F1 char(15) Analysis Code F1
R-FVR-AN-2 395 015 X - ANAL_F2 char(15) Analysis Code F2
R-FVR-AN-3 410 015 X - ANAL_F3 char(15) Analysis Code F3
R-FVR-AN-4 425 015 X - ANAL_F4 char(15) Analysis Code F4
R-FVR-AN-5 440 015 X - ANAL_F5 char(15) Analysis Code F5
R-FVR-AN-6 455 015 X - ANAL_F6 char(15) Analysis Code F6
R-FVR-AN-7 470 015 X - ANAL_F7 char(15) Analysis Code F7
R-FVR-AN-8 485 015 X - ANAL_F8 char(15) Analysis Code F8
R-FVR-AN-9 500 015 X - ANAL_F9 char(15) Analysis Code F9
R-FVR-AN-EXTRA 515 034 X - - - Not used at version 4.2
R-FVR-EXC-FV-OVR 549 001 X - FV_OVER char (1) Final Value Calculation
override
R-FVR-BASE-DAYS-FIRST- 550 003 N 0 BASE_DAYS_1ST_ int Depreciation Base Days
PERIOD PD 1st period
R-FVR-BASE-ACTIVE-DAYS 553 003 N 0 BASE_ACTIVE_DA int Depreciation Base Active
YS Days
R-FVR-OTHER-DAYS-FIRST- 556 003 N 0 OTHER_DAYS_1ST int Depreciation Other Days
PERIOD _PD 1st period
R-FVR-OTHER-ACTIVE-DAYS 559 003 N 0 OTHER_ACTIVE_D int Depreciation Other
AYS Active Days
R-FVR-LAST-DEP-AM 562 019 S 3 LAST_DEP_AM numeric Last Depreciation Amount
R-FVR-LAST-DEP-O-AM 581 019 S 3 LAST_DEP_O_AM numeric Last Depreciation Other
Amount
R-FVR-BASE-POST-FINAL-VAL 600 018 N 3 BASE_POST_FIN_ numeric Depreciation Base Posted
VAL Final value
R-FVR-OTHER-POST-FINAL-VAL 618 018 N 3 OTHER_POST_FIN numeric Depreciation Other
_VAL Posted Final Value
FILLER 636 389 X - - - -

SunSystems 4 – Technical Reference Manual Page 180 of 455


Financial Analysis/Statement Layout Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Referenc e Record Type Value ’GAN’, Mandatory
R-REPORT-CODE 004 005 X - Layout Code Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-GAN-LOOKUP-ID 065 003 X - Lookup Id
R-GAN-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-REPORT-NAME-1 086 030 X - Report Name Line 1 Mandatory
R-REPORT-NAME-2 116 030 X - Report Name Line 2
R-C1-CODE 146 003 X - Column A Code
R-C2-CODE 149 003 X - Column B Code
R-C3-CODE 152 003 X - Column C Code
R-C4-CODE 155 003 X - Column D Code
R-C5-CODE 158 003 X - Column E Code
R-C6-CODE 161 003 X - Column F Code
R-C7-CODE 164 003 X - Column G Code
R-C8-CODE 167 003 X - Column H Code
R-C9-CODE 170 003 X - Column I Code
R-C10-CODE 173 003 X - Column J Code
R-C11-CODE 176 003 X - Column K Code
R-C12-CODE 179 003 X - Column L Code
R-C1-CONV 182 001 X - Column A Other Amount
R-C2-CONV 183 001 X - Column B Other Amount
R-C3-CONV 184 001 X - Column C Other Amount
R-C4-CONV 185 001 X - Column D Other Amount
R-C5-CONV 186 001 X - Column E Other Amount
R-C6-CONV 187 001 X - Column F Other Amount
R-C7-CONV 188 001 X - Column G Other Amount
R-C8-CONV 189 001 X - Column H Other Amount
R-C9-CONV 190 001 X - Column I Other Amount
R-C10-CONV 191 001 X - Column J Other Amount
R-C11-CONV 192 001 X - Column K Other Amount
R-C12-CONV 193 001 X - Column L Other Amount
R-RATIO-BASE-AC-FIRST 194 015 X - Ratio Base A/c From
R-RATIO-BASE-AC-LAST 209 015 X - Ratio Base A/c To
R-GST-LINE-CODE 224 005 X - Line Content Code Mandatory on Statement Layout
R-PAGE-LEVEL 229 001 X - Page Level
R-AMOUNT-FORMAT 230 001 X - Amount Format
R-REPORT-TRANSACTIONS 231 001 X - Report Transactions
R-REPORT-CODES 232 001 X - Report Codes
R-NEGATIVE-BRACKETS 233 001 X - Bracket Negatives
R-WIDE-COLUMN 234 001 X - Wide Columns
R-ZERO-SUPPRESS 235 001 X - Line Zero Suppress
R-TRANSFER-FORMAT 236 005 X - Transfer Format

SunSystems 4 – Technical Reference Manual Page 181 of 455


Financial Analysis/Statement Layout Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-HELD-JOURNALS 241 001 X - Held Journals
R-GAN-CONSOLIDATE 242 001 X - Consolidate
R-S1-CODE 243 002 X - Selection Category 1
R-S2-CODE 245 002 X - Selection Category 2
R-S3-CODE 247 002 X - Selection Category 3
R-S4-CODE 249 002 X - Selection Category 4
R-S5-CODE 251 002 X - Selection Category 5
R-L3-CODE 253 002 X - Level Category 3 Mandatory on Analysis Layout
R-L2-CODE 255 002 X - Level Category 2
R-L1-CODE 257 002 X - Level Category 1
R-L3-MASK-ID 259 001 X - Level SubCategory 3
R-L2-MASK-ID 260 001 X - Level SubCategory 2
R-L1-MASK-ID 261 001 X - Level SubCategory 1
R-S1-MASK-ID 262 001 X - Selection Sub Category 1
R-S2-MASK-ID 263 001 X - Selection SubCategory 2
R-S3-MASK-ID 264 001 X - Selection SubCategory 3
R -S4-MASK-ID 265 001 X - Selection SubCategory 4
R-S5-MASK-ID 266 001 X - Selection SubCategory 5
R-INCLUDE-ROUGH 267 001 X - Include Rough
R-GAN-PRINTER-CODE 268 005 X - Printer Code
FILLER 273 254 X - -
R-GRP-MASK 527 005 X - Operator Group Mask
FILLER 532 001 X -
FILLER 533 268 X -
FILLER 801 224 X -

SunSystems 4 – Technical Reference Manual Page 182 of 455


General Ledger Interface Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’GLI’, Mandatory
R-GLI-CODE 004 005 X - Interface Code Mandatory
FILLER 009 056 X - -
R-GLI-LOOKUP-ID 065 003 X - Lookup Id
R-GLI-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-GLI-DESCRIPTION 086 030 X - Description Mandatory
R-GLI-JOURNAL-TYPE 116 005 X - Journal Type
R-GLI-ACC-CODE1 121 015 X - Account Code 1
R-GLI-VALUE-CODE1 136 003 X - Base Value 1
R-GLI-CD1 139 001 X - C/D 1
R-GLI-ACC-CODE2 140 015 X - Account Code 2
R-GLI-VALUE-CODE2 155 003 X - Base Value 2
R-GLI-CD2 158 001 X - C/D 2
R-GLI-ACC-CODE3 159 015 X - Account Code 3
R-GLI-VALUE-CODE3 174 003 X - Base Value 3
R-GLI-CD3 177 001 X - C/D 3
R-GLI-ACC-CODE4 178 015 X - Account Code 4
R-GLI-VALUE-CODE4 193 003 X - Base Value 4
R-GLI-CD4 196 001 X - C/D 4
R-GLI-ACC-CODE5 197 015 X - Account Code 5
R-GLI-VALUE-CODE5 212 003 X - Base Value 5
R-GLI-CD5 215 001 X - C/D 5
R-GLI-ACC-CODE6 216 015 X - Account Code 6
R-GLI-VALUE-CODE6 231 003 X - Base Value 6
R-GLI-CD6 234 001 X - C/D 6
R-GLI-ACC-CODE7 235 015 X - Account Code 7
R-GLI-VALUE-CODE7 250 003 X - Base Value 7
R-GLI-CD7 253 001 X - C/D 7
R-GLI-ACC-CODE8 254 015 X - Account Code 8
R-GLI-VALUE-CODE8 269 003 X - Base Value 8
R-GLI-CD8 272 001 X - C/D 8
R-GLI-ACC-CODE9 273 015 X - Account Code 9
R-GLI-VALUE-CODE9 288 003 X - Base Value 9
R-GLI-CD9 291 001 X - C/D 9
R-GLI-ACC-CODE10 292 015 X - Account Code 10
R-GLI-VALUE-CODE10 307 003 X - Base Value 10
R-GLI-CD10 310 001 X - C/D 10
R-GLI-ACC-CODE1-CONS 311 010 X - Consolidate 12345678910 1
R-GLI-ACC-CODE2-CONS 321 010 X - Consolidate 12345678910 2
R-GLI-ACC-CODE3-CONS 331 010 X - Consolidate 12345678910 3
R-GLI-ACC-CODE4-CONS 341 010 X - Consolidate 12345678910 4
R-GLI-ACC-CODE5-CONS 351 010 X - Consolidate 12345678910 5
R-GLI-ACC-CODE6-CONS 361 010 X - Consolidate 12345678910 6

SunSystems 4 – Technical Reference Manual Page 183 of 455


General Ledger Interface Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-GLI-ACC-CODE7-CONS 371 010 X - Consolidate 12345678910 7
R-GLI-ACC-CODE8-CONS 381 010 X - Consolidate 12345678910 8
R-GLI-ACC-CODE9-CONS 391 010 X - Consolidate 12345678910 9
R-GLI-ACC-CODE10-CONS 401 010 X - Consolidate 12345678910 10
R-GLI-UPDATE-ASSET(1) 411 001 X - Update Assets 1
R-GLI-UPDATE-ASSET(2) 412 001 X - Update Assets 2
R-GLI-UPDATE-ASSET(3) 413 001 X - Update Assets 3
R-GLI-UPDATE-ASSET(4) 414 001 X - Update Assets 4
R-GLI-UPDATE-ASSET(5) 415 001 X - Update Assets 5
R-GLI-UPDATE-ASSET(6) 416 001 X - Update Assets 6
R-GLI-UPDATE-ASSET(7) 417 001 X - Update Assets 7
R-GLI-UPDATE-ASSET(8) 418 001 X - Update Assets 8
R-GLI-UPDATE-ASSET(9) 419 001 X - Update Assets 9
R-GLI-UPDATE-ASSET(10) 420 001 X - Update Assets 10
R-GLI-OTHER-CODE(1) 421 003 X - Other Value 1
R-GLI-OTHER-CODE(2) 424 003 X - Other Value 2
R-GLI-OTHER-CODE(3) 427 003 X - Other Value 3
R-GLI-OTHER-CODE(4) 430 003 X - Other Value 4
R-GLI-OTHER-CODE(5) 433 003 X - Other Value 5
R-GLI-OTHER-CODE(6) 436 003 X - Other Value 6
R-GLI-OTHER-CODE(7) 439 003 X - Other Value 7
R-GLI-OTHER-CODE(8) 442 003 X - Other Value 8
R-GLI-OTHER-CODE(9) 445 003 X - Other Value 9
R-GLI-OTHER-CODE(10) 448 003 X - Other Value 10
R-GLI-TRA-CODE1 451 006 X - Transfer Data Codes 1 Table, 6 x 1 byte
R-GLI-TRA-CODE2 457 006 X - Transfer Data Codes 2 Table, 6 x 1 byte
R-GLI-TRA-CODE3 463 006 X - Transfer Data Codes 3 Table, 6 x 1 byte
R-GLI-TRA-CODE4 469 006 X - Transfer Data Codes 4 Table, 6 x 1 byte
R-GLI-TRA-CODE5 475 006 X - Transfer Data Codes 5 Table, 6 x 1 byte
R-GLI-TRA-CODE6 481 006 X - Transfer Data Codes 6 Table, 6 x 1 byte
R-GLI-TRA-CODE7 487 006 X - Transfer Data Codes 7 Table, 6 x 1 byte
R-GLI-TRA-CODE8 493 006 X - Transfer Data Codes 8 Table, 6 x 1 byte
R-GLI-TRA-CODE9 499 006 X - Transfer Data Codes 9 Table, 6 x 1 byte
R-GLI-TRA-CODE10 505 006 X - Transfer Data Codes 10 Table, 6 x 1 byte
FILLER 511 290 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 184 of 455


Aged Analysis Layout Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’GLT’, Mandatory
R-GLT-CODE 004 005 X - Layout Code Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-GLT-LOOKUP-ID 065 003 X - Lookup Id
R-GLT-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-GLT-REPORT-NAME-1 086 030 X - Report Name Line 1 Mandatory
R-GLT-REPORT-NAME-2 116 030 X - Report Name Line 2
R-GLT-DEBTOR-ACCOUNTS 146 001 X - Debtor Account Type
R-GLT-CREDITOR-ACCOUNTS 147 001 X - Creditor Account Type
R-GLT-CLIENT-ACCOUNTS 148 001 X - Client Account Type
R-GLT-BALANCE-SHEET- 149 001 X - Balance Sheet Account Type
ACCOUNTS
R-GLT-PROFIT-LOSS-ACCOUNTS 150 001 X - P&L Account Type
R-GLT-MEMO-ACCOUNTS 151 001 X - Memo Account Type
R-GLT-EXCLUDE-ALLOCATED 152 001 X - Exclude Allocated
R-GLT-AGE-BY-DATE 153 001 X - Age by Due/Trans’n Date Mandatory
R-GLT-AGE-FOR-BACK 154 001 X - Age Forwards/Backwards Mandatory
R-GLT-REPORT-TRANSACTIONS 155 001 X - Report Transactions
R-GLT-DC-TOTALS 156 001 X - Totals by Debit/Credit
R-GLT-REPORT-OTHER 157 001 X - Report Other Amount
R-GLT-AGE-DAYS-1 158 003 N - Default Ageing Days 1
R-GLT-AGE-DAYS-2 161 003 N - Default Ageing Days 2
R-GLT-AGE-DAYS-3 164 003 N - Default Ageing Days 3
R-GLT-AGE-DAYS-4 167 003 N - Default Ageing Days 4
R-GLT-AGE-DAYS-5 170 003 N - Default Ageing Days 5
R-GLT-SELECTION-1 173 002 X - Selection Code 1
R-GLT-SELECTION-2 175 002 X - Selection Code 2
R-GLT-SELECTION-3 177 002 X - Selection Code 3
R-GLT-SELECTION-4 179 002 X - Selection Code 4
R-GLT-SELECTION-5 181 002 X - Selection Code 5
R-GLT-LEVEL-5 183 002 X - Level Code 5
R-GLT-LEVEL-4 185 002 X - Level Code 4
R-GLT-LEVEL-3 187 002 X - Level Code 3
R-GLT-LEVEL-2 189 002 X - Level Code 2
R-GLT-LEVEL-1 191 002 X - Level Code 1
R-GLT-BALANCE-SEQUENCE 193 001 X - Balance Sequence
R-GLT-PAGE-LEVEL 194 001 X - Page Level
R-GLT-INCLUDE-ROUGH 195 001 X - Include Rough

SunSystems 4 – Technical Reference Manual Page 185 of 455


Aged Analysis Layout Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 196 331 X - -
R-GLT-GRP-MASK 527 005 X - Operator Group Mask
FILLER 532 001 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 186 of 455


Additional Header Labels Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘HAL’, Mandatory
FILLER 004 029 X - - -
FILLER 033 032 X - - -
R-HAL-LOOKUP-ID 065 003 X - Lookup ID
R-HAL-LOOKUP-CODE 068 010 X - Lookup Code
R-HAL-DATE-UPD 078 008 X - Date Last Updated
R-HAL-SOH-LABEL1 086 020 X - Sales Header Label 1
R-HAL-SOH-LABEL2 106 020 X - Sales Header Label 2
R-HAL-SOH-LABEL3 126 020 X - Sales Header Label 3
R-HAL-SOH-LABEL4 146 020 X - Sales Header Label 4
R-HAL-SOH-LABEL5 166 020 X - Sales Header Label 5
R-HAL-SOH-LABEL6 186 020 X - Sales Header Label 6
R-HAL-SOH-LABEL7 206 020 X - Sales Header Label 7
R-HAL-SOH-LABEL8 226 020 X - Sales Header Label 8
R-HAL-SOH-LABEL9 246 020 X - Sales Header Label 9
R-HAL-SOH-LABEL10 266 020 X - Sales Header Label 10
R-HAL-SOH-LABEL11 286 020 X - Sales Header Label 11
R-HAL-SOH-LABEL12 306 020 X - Sales Header Label 12
R-HAL-POH-LABEL1 326 020 X - Purchase Header Label 1
R-HAL-POH-LABEL2 346 020 X - Purchase Header Label 2
R-HAL-POH-LABEL3 366 020 X - Purchase Header Label 3
R-HAL-POH-LABEL4 386 020 X - Purchase Header Label 4
R-HAL-POH-LABEL5 406 020 X - Purchase Header Label 5
R-HAL-POH-LABEL6 426 020 X - Purchase Header Label 6
R-HAL-POH-LABEL7 446 020 X - Purchase Header Label 7
R-HAL-POH-LABEL8 466 020 X - Purchase Header Label 8
R-HAL-POH-LABEL9 486 020 X - Purchase Header Label 9
R-HAL-POH-LABEL10 506 020 X - Purchase Header Label 10
FILLER 526 459 X - -

SunSystems 4 – Technical Reference Manual Page 187 of 455


System Labels Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘IAD’, Mandatory
R-IAD-DBASE-CODE 004 003 X - Database Code
FILLER 007 026 X - - -
FILLER 033 032 X - - -
R-IAD-LOOKUP-ID 065 003 X - Lookup ID
R-IAD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
R-IAD-SALES-ACCOUNT-NAME 086 020 X - Sales Account Report Name
R-IAD-PURCH-ACCOUNT-NAME 106 020 X - Purchase Account Report Name
R-IAD-ACCOUNT-NAME-1 126 020 X - Item Account Report Name 1
R-IAD-ACCOUNT-CODE-1 146 015 X - Ledger Interface Recognition Code 1
R-IAD-ACCOUNT-NAME-2 161 020 X - Item Account Report Name 2
R-IAD-ACCOUNT-CODE-2 181 015 X - Ledger Interface Recognition Code 2
R-IAD-ACCOUNT-NAME-3 196 020 X - Item Account Report Name 3
R-IAD-ACCOUNT-CODE-3 216 015 X - Ledger Interface Recognition Code 3
R-IAD-ACCOUNT-NAME-4 231 020 X - Item Account Report Name 4
R-IAD-ACCOUNT-CODE-4 251 015 X - Ledger Interface Recognition Code 4
R-IAD-ACCOUNT-NAME-5 266 020 X - Item Account Report Name 5
R-IAD-ACCOUNT-CODE-5 286 015 X - Ledger Interface Recognition Code 5
R-IAD-ACCOUNT-NAME-6 301 020 X - Item Account Report Name 6
R-IAD-ACCOUNT-CODE-6 321 015 X - Ledger Interface Recognition Code 6
R-IAD-ACCOUNT-NAME-7 336 020 X - Item Account Report Name 7
R-IAD-ACCOUNT-CODE-7 356 015 X - Ledger Interface Recognition Code 7
R-IAD-ACCOUNT-NAME-8 371 020 X - Item Account Report Name 8
R-IAD-ACCOUNT-CODE-8 391 015 X - Ledger Interface Recognition Code 8
R-IAD-BSP-NAME-1 406 020 X - Base Selling Price Name 1
R-IAD-BSP-NAME-2 426 020 X - Base Selling Price Name 2
R-IAD-BSP-NAME-3 446 020 X - Base Selling Price Name 3
R-IAD-BSP-NAME-4 466 020 X - Base Selling Price Name 4
FILLER 486 315 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 188 of 455


Invoice Prefix Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
INP-REC-TYPE 001 003 X - Reference Record Type Value ‘INP’, Mandatory
INP-CODE-1 004 015 X - Analysis Code 1
INP-CODE-2 019 015 X - Analysis Code 2
INP-CODE-3 034 015 X - Analysis Code 3
INP-CODE-4 049 015 X - Analysis Code 4
FILLER 064 001 X - - -
FILLER 065 013 X - - -
FILLER 078 008 X - - -
INP-PREFIX 086 004 X - Invoice Prefix
FILLER 090 711 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 189 of 455


Debtor/Creditor Transfer Layout Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’INT’, Mandatory
R-INT-CODE 004 005 X - Transfer Layout Code Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-INT-LOOKUP-ID 065 003 X - Lookup Id
R-INT-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-INT-NAME 086 030 X - Layout Name Mandatory
R-INT-FORMAT 116 005 X - Transfer Format Mandatory
R-INT -ITEMS(1) 121 005 X - Item Name 1
R-INT-ITEMS(2) 126 005 X - Item Name 2
R-INT-ITEMS(3) 131 005 X - Item Name 3
R-INT-ITEMS(4) 136 005 X - Item Name 4
R-INT-ITEMS(5) 141 005 X - Item Name 5
R-INT-ITEMS(6) 146 005 X - Item Name 6
R-INT-ITEMS(7) 151 005 X - Item Name 7
R-INT-ITEMS(8) 156 005 X - Item Name 8
R-INT-ITEMS(9) 161 005 X - Item Name 9
R-INT-ITEMS(10) 166 005 X - Item Name 10
R-INT-ITEMS(11) 171 005 X - Item Name 11
R-INT-ITEMS(12) 176 005 X - Item Name 12
R-INT-ITEMS(13) 181 005 X - Item Name 13
R-INT-ITEMS(14) 186 005 X - Item Name 14
R-INT-ITEMS(15) 191 005 X - Item Name 15
R-INT-ITEMS(16) 196 005 X - Item Name 16
R-INT-ITEMS(17) 201 005 X - Item Name 17
R-INT-ITEMS(18) 206 005 X - Item Name 18
R-INT-ITEMS(19) 211 005 X - Item Name 19
R-INT-ITEMS(20) 216 005 X - Item Name 20
R-INT-SELECTION-1 221 002 X - Selection Code 1
R-INT-SELECTION-2 223 002 X - Selection Code 2
R-INT-SELECTION-3 225 002 X - Selection Code 3
R-INT-SELECTION-4 227 002 X - Selection Code 4
R-INT-SELECTION-5 229 002 X - Selection Code 5
FILLER 231 302 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 190 of 455


Item Extended Descriptions Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘ITD’, Mandatory
R-ITD-CODE 004 015 X - Item Code Mandatory
R-ITD-CUST-CODE 019 010 X - Customer Code
R-ITD-ANCAT 029 002 X - Analysis Category
R-ITD-ANCODE 031 015 X - Analysis Code
R-ITD-RECORD-NO 046 001 N - Record Number Mandatory
FILLER 047 018 X - - -
R-ITD-LOOKUP-ID 065 003 X - Lookup ID
FILLER 068 010 X - - -
FILLER 078 008 X - - -
R-ITD-DESCRIPTION-1 086 030 X - Description Line 1
R-ITD-DESCRIPTION-2 116 030 X - Description Line 2
R-ITD-DESCRIPTION-3 146 030 X - Description Line 3
R-ITD-DESCRIPTION-4 176 030 X - Description Line 4
R-ITD-DESCRIPTION-5 206 030 X - Description Line 5
R-ITD-DESCRIPTION-6 236 030 X - Description Line 6
R-ITD-ADDITIONAL-CODE 266 015 X - Additional Item Code
FILLER 281 520 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 191 of 455


Item Record, [Link], SQL Table Name SSRFITM

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - SUN_DB char (3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value
’ITM’,
Mandatory
R-ITM-CODE 004 015 X - ITEM_CODE char(15) Item Code Mandatory
FILLER 019 014 X - - - -
FILLER 033 032 X - - - -
R-ITM-LOOKUP-ID 065 003 X - - - Lookup Id
R-ITM-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - UPDATED char (8) Date Last Updated
R-ITM-DESCRIPTION 086 030 X - DESCRIPTN char(30) Item Description
R-ITM-UNIT-STOCK 116 005 X - UNIT_STOCK char (5) Unit of Stock
R-ITM-UNIT-SALE 121 005 X - UNIT_SALE char (5) Unit of Sale
R-ITM-BASE-SP(1) 126 018 N 5 BASE_PRICE1 numeric Base Selling Price 1
R-ITM-BASE-SP(2) 144 018 N 5 BASE_PRICE2 numeric Base Selling Price 2
R-ITM-BASE-SP(3) 162 018 N 5 BASE_PRICE3 numeric Base Selling Price 3
R-ITM-BASE-SP(4) 180 018 N 5 BASE_PRICE4 numeric Base Selling Price 4
R-ITM-NEXT-SP(1) 198 018 N 5 NEXT_PRICE1 numeric Next Selling Price 1
R-ITM-NEXT-SP(2) 216 018 N 5 NEXT_PRICE2 numeric Next Selling Price 2
R-ITM-NEXT-SP(3) 234 018 N 5 NEXT_PRICE3 numeric Next Selling Price 3
R-ITM-NEXT-SP(4) 252 018 N 5 NEXT_PRICE4 numeric Next Selling Price 4
R-ITM-NEXT-DATE(1) 270 008 N 0 NEXT_DATE1 char(8) Date Next Price
Applies 1
R-ITM-NEXT-DATE(2) 278 008 N 0 NEXT_DATE2 char(8) Date Next Price
Applies 2
R-ITM-NEXT-DATE(3) 286 008 N 0 NEXT_DATE3 char(8) Date Next Price
Applies 3
R-ITM-NEXT-DATE(4) 294 008 N 0 NEXT_DATE4 char(8) Date Next Price
Applies 4
R-ITM-UNIT-WEIGHT 302 018 N 5 UNIT_WGHT numeric Unit Weight
R-ITM-STD-COST 320 018 N 5 STD_COST numeric Standard Cost
R-ITM-LAT-COST 338 018 N 5 LAT_COST numeric Latest Cost
R-ITM-AVE-COST 356 019 S 5 AVE_COST numeric Average Cost signed
R-ITM-WHOLE-UNITS 375 001 X - WHOLE_UNIT char (1) Whole Units
R-ITM-WHOLE-UNITS-SALE 376 001 X - WHOLE_UNIT_SALE char (1) Whole Units
R-ITM-ALLOC-METHOD 377 001 X - ALLOC_METH char (1) Allocation Method
R-ITM-PROCESS 378 001 X - ITEM_PROC char (1) Item Process
R-ITM-SUPPLIER-CONTROL 379 001 X - SUPP_CNTRL char (1) Supplier Control
R-ITM-CUSTOMER-CONTROL 380 001 X - CUST_CNTRL char (1) Customer Control
R-ITM-COMMENT 381 020 X - COMMENTS char(20) Comment
R-ITM-SALES-ACCOUNT 401 015 X - SALES_ACC char(15) Sales Account
R-ITM-PURCH-ACCOUNT 416 015 X - PURCH_ACC char(15) Purchase Account
R-ITM-STOCK-TAKE-FREQUENCY 431 003 N 0 ST_FREQ char (3) Stock Take Frequency

SunSystems 4 – Technical Reference Manual Page 192 of 455


Item Record, [Link], SQL Table Name SSRFITM – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
R-ITM-ALT-CODE 434 015 X - ALT_ITEM_CODE char(15) Alternate Item Code
R-ITM-AN-0 449 015 X - ANAL_I0 char(15) Analysis Code 0
R-ITM-AN-1 464 015 X - ANAL_I1 char(15) Analysis Code 1
R-ITM-AN-2 479 015 X - ANAL_I2 char(15) Analysis Code 2
R-ITM-AN-3 494 015 X - ANAL_I3 char(15) Analysis Code 3
R-ITM-AN-4 509 015 X - ANAL_I4 char(15) Analysis Code 4
R-ITM-AN-5 524 015 X - ANAL_I5 char(15) Analysis Code 5
R-ITM-AN-6 539 015 X - ANAL_I6 char(15) Analysis Code 6
R-ITM-AN-7 554 015 X - ANAL_I7 char(15) Analysis Code 7
R-ITM-AN-8 569 015 X - ANAL_I8 char(15) Analysis Code 8
R-ITM-AN-9 584 015 X - ANAL_I9 char(15) Analysis Code 9
R-ITM-COMMODITY-CODE 599 015 X - COMM_CODE char(15) Commodity Code
R-ITM-ASSEMBLY-LEVEL 614 001 X - ASSEMBLY_LEVEL char (1) Assembly Level
R-ITM-PROCESS-COMPONENT 615 001 X - PROCESS_COMP char (1) Process Component
R-ITM-SOP-ITD-DESCR 616 001 N 0 SOP_EXT_DESC char (1) SOP description
R-ITM-POP-ITD-DESCR 617 001 N 0 POP_EXT_DESC char (1) POP description
R-ITM-GLI-ACCOUNT-1 618 015 X - GLI_ACCOUNT_1 char(15) Ledger Interface
Account 1
R-ITM-GLI-ACCOUNT-2 633 015 X - GLI_ACCOUNT_2 char(15) Ledger Interface
Account 2
R-ITM-GLI-ACCOUNT-3 648 015 X - GLI_ACCOUNT_3 char(15) Ledger Interface
Account 3
R-ITM-GLI-ACCOUNT-4 663 015 X - GLI_ACCOUNT_4 char(15) Ledger Interface
Account 4
R-ITM-GLI-ACCOUNT-5 678 015 X - GLI_ACCOUNT_5 char(15) Ledger Interface
Account 5
R-ITM-GLI-ACCOUNT-6 693 015 X - GLI_ACCOUNT_6 char(15) Ledger Interface
Account 6
R-ITM-GLI-ACCOUNT-7 708 015 X - GLI_ACCOUNT_7 char(15) Ledger Interface
Account 7
R-ITM-GLI-ACCOUNT-8 723 015 X - GLI_ACCOUNT_8 char(15) Ledger Interface
Account 8
R-ITM-UPD-PURCH-PRICE 738 001 X - UPD_PURCH_PRICE char(1) Update Purchase Price
R-ITM-DEF-PURCH-PRICE 739 018 N 5 DEF_PURCH_PRICE numeric Default Purchase Price
R-ITM-SET-PURCH-PRICE 757 001 X - SET_PURCH_PRICE char(1) Set Purchase Price
R-ITM-PCK-BY-X-DTE 758 001 X - PICK_BY_X_DATE char(1) Pick By Expiration
Date
R-ITM-QUANTITY 759 001 X - ITEM_QUANTITY char(1) Volume/Weight Flag
FILLER 760 041 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 193 of 455


Item Special Processes Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘ITP’, Mandatory
R-ITP 004 001 X - Item Process
FILLER 005 060 X - - -
R-ITP-LOOKUP-ID 065 003 X - Lookup ID
R-ITP-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-ITP-DESCRIPTION 086 030 X - Description Mandatory
R-ITP-UPDATE-STOCK 116 001 X - Update Stock Balances
R-ITP-DC 117 001 X - Debit/Credit Indicator
R-ITP-SOP-LS 118 001 X - Line or Sub-total (sales)
R-ITP-SOP-VALUE 119 003 X - Subtotal Value
R-ITP-SOP-START 122 003 X - Process Line Calculation From
R-ITP-SOP-ENTRY-STATUS 125 001 X - Entry Status
R-ITP-POP-LS 126 001 X - Line Or Sub Total (purchase)
R-ITP-POP-VALUE 127 003 X - Subtotal Value
R-ITP-POP-START 130 003 X - Process Line Calculation From
R-ITP-POP-ENTRY-STATUS 133 001 X - Entry Status
FILLER 134 667 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 194 of 455


Item Supplier Record, [Link],SQL Table Name SSRFITS

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - SUN_DB char (3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value
’ITS’,
Mandatory
R-ITS-CODE 004 015 X - ITEM_CODE char(15) Item Code Mandatory
R-ITS-RANKING 019 001 N 0 RANKING char (1) Ranking Code Mandatory
FILLER 020 013 X - - - -
FILLER 033 032 X - - - -
R-ITS-LOOKUP-ID 065 003 X - LOOKUP char(10) Lookup Id
R-ITS-SUPPLIER 068 010 X - SUPPLIER char(10) Supplier Code
FILLER 078 008 X - UPDATED char (8) Date Last Updated
R-ITS-DESCRIPTION 086 030 X - DESCRIPTN_1 char(30) Supplier Item
Description
R-ITS-SUPP-ITEM-CODE 116 015 X - SUPP_ITEM_CODE char(15) Supplier Item Code
R-ITS-LEAD-TIME 131 004 N 0 LEAD_TIME char (4) Lead Time
R-ITS-PURCH-COST 135 018 N 5 PURCH_COST numeric Base Purchase Cost
R-ITS-UNIT-PURCH 153 005 X - UNIT_PURCH char (5) Unit of Purchase
R-ITS-MIN-PURCH-QTY 158 018 N 5 MIN_QTY numeric Minimum Order
Quantity
R-ITS-WHOLE-P-UNITS 176 001 X - WHOLE_UNIT char (1) Whole Units
R-ITS-DESCRIPTION-1 177 030 X - DESCRIPTN_2 char(30) Description
FILLER 207 594 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 195 of 455


Statistical Layout Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’KLT’, mandatory
R-KLT-CODE 004 005 X - Layout Code Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-KLT-LOOKUP-ID 065 003 X - Lookup Id
R-KLT-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-KLT-LAYOUT-NAME 086 025 X - Layout Name Mandatory
R-KLT-ARRIVAL-DESPATCH 111 001 X - Arrivals or Despatches Mandatory
R- KLT-SOP-SELECTION 112 001 X - SOP Selection
R-KLT-SOP-SEL-CODE-1 113 002 X - SOP Selection Code 1
R-KLT-SOP-SEL-CODE-2 115 002 X - SOP Selection Code 2
R-KLT-SOP-SEL-CODE-3 117 002 X - SOP Selection Code 3
R-KLT-SOP-SEL-CODE-4 119 002 X - SOP Selection Code 4
R-KLT-SOP-SEL-FROM-1 121 015 X - SOP Selection Code From 1
R-KLT-SOP-SEL-FROM-2 136 015 X - SOP Selection Code From 2
R-KLT-SOP-SEL-FROM-3 151 015 X - SOP Selection Code From 3
R-KLT-SOP-SEL-FROM-4 166 015 X - SOP Selection Code From 4
R-KLT-SOP-SEL-TO-1 181 015 X - SOP Selection Code To 1
R-KLT-SOP-SEL-TO-2 196 015 X - SOP Selection Code To 2
R-KLT-SOP-SEL-TO-3 211 015 X - SOP Selection Code To 3
R-KLT-SOP-SEL-TO-4 226 015 X - SOP Selection Code To 4
R-KLT-POP-SELECTION 241 001 X - POP Selection
R-KLT-POP-SEL-CODE-1 242 002 X - POP Selection Code 1
R-KLT-POP-SEL-CODE-2 244 002 X - POP Selection Code 2
R-KLT-POP-SEL-CODE-3 246 002 X - POP Selection Code 3
R-KLT-POP-SEL-CODE-4 248 002 X - POP Selection Code 4
R-KLT-POP-SEL-FROM-1 250 015 X - POP Selection Code From 1
R-KLT-POP-SEL-FROM-2 265 015 X - POP Selection Code From 2
R-KLT-POP-SEL-FROM-3 280 015 X - POP Selection Code From 3
R-KLT-POP-SEL-FROM-4 295 015 X - POP Selection Code From 4
R-KLT-POP-SEL-TO-1 310 015 X - POP Selection Code To 1
R-KLT-POP-SEL-TO-2 325 015 X - POP Selection Code To 2
R-KLT-POP-SEL-TO-3 340 015 X - POP Selection Code To 3
R-KLT-POP-SEL-TO-4 355 015 X - POP Selection Code To 4
R-KLT-FORMAT-CODE 370 005 X - Format Code Mandatory
FILLER 375 426 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 196 of 455


Ledger/Register Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’LDG’, Mandatory
LDG-LEDGER-CODE 004 003 X - Database Code Mandatory
FILLER 007 058 X - -
LDG-LOOKUP-ID 065 003 X - Lookup Id
LDG-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
FILLER 086 030 X - -
LDG-CURRENT-AP 116 008 X - Current Period Mandatory
LDG-MAX-PERIODS 124 003 N 0 Maximum Periods in Year Mandatory
LDG-OPEN-PERIOD-FROM 127 008 X - Open Period From
LDG-OPEN-PERIOD-TO 135 008 X - Open Period To
LDG-OPEN-DATE-FROM 143 010 X - Open Date From
LDG-OPEN-DATE-TO 153 010 X - Open Date To
FILLER 163 005 X - -
LDG-OVER-EXPEND-CHECK 168 001 X - Over Expend Check
LDG-FIXED-EUR-RATE 169 018 N 9 Euro Rate
LDG-T-PAYMT-TERM-CAT 187 002 X - Payment Term T Code
LDG-A-PAYMT-TERM-CAT 189 002 X - Payment Term A Code
LDG-NO-ON-HARD 191 001 X - Transaction Sequence update on
hard posting only flag
FILLER 192 014 X -
LDG-CURRENCY-CONV 206 011 N 5 Consolidate Conversion Rate
LDG-CONV-CODE 217 005 X - Base Conversion Code
LDG-OTHER-AM-BAL 222 001 X - Other Amount Balancing
LDG-MINIMUM-PAYMENT-LEVEL 223 001 X - Minimum Payment Level
LDG-AC-SUB-CHARAS 224 001 N 0 A/c Subtotal Characters
LDG-REVAL-METHOD 225 001 X - Revaluation Method
FILLER 226 010 X - -
LDG-FORCE-JOURNAL-LISTING 236 001 X - Force Journal Listing
LDG-FORCE-JOURNAL-SOURCE 237 001 X - Force Journal Source
LDG-BANK-PAYMENTS 238 001 X - Automatic Bank Payments
LDG-PAY-OTHER-AM 239 001 X - Other Amount Payment
LDG-REPORT-CORRECTIONS 240 001 X - Report Corrections
LDG-SUPPRESS-CRED-SUMMARY 241 001 X - Suppress Creditor Summarise
LDG-SUPPRESS-DEBT-SUMMARY 242 001 X - Suppress Debtor Summarise
LDG-RATE-TOLERANCE 243 005 N 3 Conversion Rate Tolerance
LDG-DIRECT-DEBITS 248 001 X - Direct Debits
LDG-SPREAD-CODE 249 003 X - Spread Ratio Code

SunSystems 4 – Technical Reference Manual Page 197 of 455


Ledger/Register Definition Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
LDG-ARCHIVING 252 001 X - Ledger Archiving
LDG-LJUST-REFS-JI 253 001 X - Journal Import - Left Justify Flag
LDG-NEXT-ALLOC-REF 254 009 N 0 Next Allocation Reference
LDG-ROUGH-BOOK 263 001 X - Rough Book
LDG-TAX-CAT 264 002 X - Tax Category
LDG-TRANS-SEQ-CAT 266 002 X - Transaction Sequence Category
LDG-DAY-BOOK-SEQ-CAT 268 002 X - Day Book Sequence Category
LDG-BAL-BY-REF 270 001 X - Balance By Reference
LDG-TAX-ON-DISCOUNT 271 001 X - Tax On Discount
LDG-FORCE-JOURNAL-LIST- 272 005 X - Default Force Journal Listing
CODE Report Code
FILLER 277 003 X - -
LDG-SEQ-AUDIT-REGISTER 280 001 X - Sequential Audit Register
LDG-EXC-FV-FROM-DEP 281 001 X - Exclude Final Value from
Depreciation
FILLER 282 004 X - Spare for SA expansion
FILLER 286 100 X - Used by SB Business Definition
LDG-SYSTM-SQN-GP 386 005 X - Sequence Code GP
LDG-SYSTM-SQN-GD 391 005 X - Sequence Code GD
LDG-SYSTM-SQN-TM 396 005 X - Sequence Code TM
LDG-SYSTM-SQN-VP 401 005 X - Sequence Code VP
LDG-SYSTM-SQN-LR 406 005 X - Sequence Code LR
LDG-SYSTM-SQN-TA 411 005 X - Sequence Code TA
LDG-SYSTM-SQN-DB 416 005 X - Sequence Code DB
LDG-SYSTM-SQN-CD 421 005 X - Sequence Code CD
LDG-SYSTM-SQN-AD 426 005 X - Sequence Code AD
FILLER 431 050 X - -
FILLER 481 320 X - -
LDG-TAX-CAT 264 002 X - Tax Category
LDG-TRANS-SEQ-CAT 266 002 X - Transaction Sequence Category
LDG-DAY-BOOK-SEQ-CAT 268 002 X - Day Book Sequence Category
LDG-BAL-BY-REF 270 001 X - Balance By Reference
LDG-TAX-ON-DISCOUNT 271 001 X - Tax On Discount
LDG-FORCE-JOURNAL-LIST- 272 005 X - Default Force Journal Listing
CODE Report Code
FILLER 277 003 X - -
LDG-SEQ-AUDIT-REGISTER 280 001 X - Sequential Audit Register
LDG-EXC-FV-FROM-DEP 281 001 X - Exclude Final Value from
Depreciation
FILLER 282 004 X - Spare for SA expansion
FILLER 286 100 X - Used by SB Business Definition
LDG-SYSTM-SQN-GP 386 005 X - Sequence Code GP
LDG-SYSTM-SQN-GD 391 005 X - Sequence Code GD
LDG-SYSTM-SQN-TM 396 005 X - Sequence Code TM

SunSystems 4 – Technical Reference Manual Page 198 of 455


Ledger/Register Definition Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
LDG-SYSTM-SQN-VP 401 005 X - Sequence Code VP
LDG-SYSTM-SQN-LR 406 005 X - Sequence Code LR
LDG-SYSTM-SQN-TA 411 005 X - Sequence Code TA
LDG-SYSTM-SQN-DB 416 005 X - Sequence Code DB
LDG-SYSTM-SQN-CD 421 005 X - Sequence Code CD
LDG-SYSTM-SQN-AD 426 005 X - Sequence Code AD
FILLER 431 050 X - -
LDG-BALANCE-BY 481 002 X - Balance By
LDG-SORT-IMPORT-FILE 483 001 X - Sort Import File
LDG-BASE-AMT-BAL 484 001 X - Balance By Base Amount
LDG-AUTO-BASE-DB-ACC 485 015 X - Automatic Base Debtor Account
LDG-AUTO-BASE-CR-ACC 500 015 X - Automatic Base Creditor Account
LDG-AUTO-OTHER-DB-ACC 515 015 X - Automatic Other Debtor Account
LDG-AUTO-OTHER-CR-ACC 530 015 X - Automatic Other Creditor Account
LDG-BASE-AMT-TOL 545 016 N 3 Base Amount Tolerance
LDG-OTHER-AMT-TOL 561 016 N 3 Other Amount Tolerance
LDG-STD-DESC-CAT 577 002 X - Standard description analysis
category
LDG-DISCOUNT-CAT 579 002 X - Discount Category
FILLER 581 053 X -
LDG-NEXT-AUTO-REF 634 009 N 0 Next Auto Reference
LDG-NEXT-MAN-REF 643 009 N 0 Next Manual Reference
FILLER 652 149 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 199 of 455


Item Balance Record, [Link], SQL Table Name SSRFLIT

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - SUN_DB char (3) Database Code Mandatory
FILLER 001 003 X - - - Reference Record Type Value
’LIT’,
Mandatory
R-LIT-CODE 004 015 X - ITEM_CODE char(15) Item Code Mandatory
R-LIT-LOCATION 019 005 X - LOCATION char (5) Item Location
FILLER 024 009 X - - - -
FILLER 033 032 X - - - -
R-LIT-LOOKUP-ID 065 003 X - - - Lookup Id
R-LIT-LOOKUP-CODE 068 010 X - LOOKUP char(10) Lookup Code
FILLER 078 008 X - UPDATED char (8) Date last updated
R-LIT-PHYSICAL-BAL 086 019 S 5 PHYSICAL numeric Physical Stock
Balance
R-LIT-ON-ORDER-BAL 105 019 S 5 ON_ORDER numeric On-order Stock
Balance
R-LIT-ALLOCATED-BAL 124 019 S 5 ALLOCATED numeric Allocated Stock
Balance
R-LIT-PICK-BAL 143 019 S 5 PICKED numeric Picked Stock Balance
R-LIT-UNAPPROVED-BAL 162 019 S 5 UNAPPROVED numeric Unapproved Stock
Balance
R-LIT-MINIMUM-TYPE 181 001 X - MIN_TYPE char (1) Minimum Stock Level
(Type)
R-LIT-MINIMUM-BAL 182 018 N 5 MINIMUM numeric Minimum Stock Level
(Qty/Prd)
R-LIT-MAXIMUM-TYPE 200 001 X - MAX_TYPE char (1) Maximum Stock Level
(Type)
R-LIT-MAXIMUM-BAL 201 018 N 5 MAXIMUM numeric Maximum Stock Level
(Qty/Prd)
R-LIT-PERIOD-USAGE 219 018 N 5 PUSAGE numeric Usage
R-LIT-BIN-NAME 237 015 X - BIN_NAME char(15) Bin Name
R-LIT-LAST-COMP-STOCKTAKE- 252 005 N 0 ST_LAST_NO int Last Complete Stock-
NO Take Number
R-LIT-LAST-COMP-STOCKTAKE- 257 008 N 0 ST_LAST_DT int Last Complete Stock-
DATE Take Date
R-LIT-CURRENT-STOCKTAKE-NO 265 005 N 0 ST_CURR_NO int Current Stock-Take
Number
R-LIT-CURRENT-STOCKTAKE- 270 008 N 0 ST_CURR_DT char (8) Current Stock-Take
DATE Date
FILLER 278 523 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 200 of 455


Location Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’LOC’, mandatory
R-LOC-CODE 004 005 X - Location Code
FILLER 009 056 X - -
R-LOC-LOOKUP-ID 065 003 X - Lookup Id
R-LOC-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-LOC-DESC 086 030 X - Description
R-LOC-ADD 116 010 X - Address Code Not used at version 4.2
R-LOC-BALANCE-NUMBER 126 002 N - Balance Number Not used at version 4.2
R-LOC-SUPPRESS-STOCK- 128 001 X - Suppress Stock Taking
TAKING
FILLER 129 672 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 201 of 455


Ledger Export Consolidation Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
LXC-KEY-TYPE 001 003 X - Reference Record Type Value ’LXC’, Mandatory
R-LXC-CODE 004 005 X - Export Code Mandatory
R-LXC-LINE 009 005 N - Export Line Mandatory
FILLER 014 019 X - -
FILLER 033 032 X - -
R-LXC-LOOKUP-ID 065 003 X - Lookup Id
FILLER 068 018 X - -
R-LXC-ACFROM 086 015 X - Account Code From
R-LXC-ACTO 101 015 X - Account Code To
R-LXC-OUTPUT 116 015 X - Output Account
R-LXC-SUPPRESS 131 001 X - Suppress Amount
R-LXC-CAT0 132 002 X - Analysis Category 0
R-LXC-CAT1 134 002 X - Analysis Category 1
R-LXC-CAT2 136 002 X - Analysis Category 2
R-LXC-CAT3 138 002 X - Analysis Category 3
R-LXC-CAT4 140 002 X - Analysis Category 4
R-LXC-CAT5 142 002 X - Analysis Category 5
R-LXC-CAT6 144 002 X - Analysis Category 6
R-LXC-CAT7 146 002 X - Analysis Category 7
R-LXC-CAT8 148 002 X - Analysis Category 8
R-LXC-CAT9 150 002 X - Analysis Category 9
R-LXC-ACODE0 152 015 X - Analysis Code 0
R-LXC-ACODE1 167 015 X - Analysis Code 1
R-LXC-ACODE2 182 015 X - Analysis Code 2
R-LXC-ACODE3 197 015 X - Analysis Code 3
R-LXC-ACODE4 212 015 X - Analysis Code 4
R-LXC-ACODE5 227 015 X - Analysis Code 5
R-LXC-ACODE6 242 015 X - Analysis Code 6
R-LXC-ACODE7 257 015 X - Analysis Code 7
R-LXC-ACODE8 272 015 X - Analysis Code 8
R-LXC-ACODE9 287 015 X - Analysis Code 9
R-LXC-REVERSAL 302 001 X - Reversal Flag
FILLER 303 230 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 202 of 455


Ledger Export Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’LXD’, Mandatory
R-LXD-CODE 004 005 X - Export Code Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-LXD-LOOKUP-ID 065 003 X - Lookup Id
FILLER 068 018 X - -
R-LXD-NAME 086 025 X - Export Name Mandatory
R-LXD-SUMMARISE 111 001 X - Summarise
R-LXD-CONTROL 112 001 X - Journal Control
R-LXD-PERIOD 113 004 X - Transfer Period
R-LXD-TYPE 117 005 X - Journal Type
R-LXD-LAYOUT 122 005 X - Transfer Layout
R-LXD-BASE 127 001 X - Base Amount
R-LXD-OTHER 128 001 X - Other Amount
R-LXD-REVERSAL 129 001 X - Amount Reversal
R-LXD-CAT1 130 002 X - Selection Category 1
R-LXD-CAT2 132 002 X - Selection Category 2
R-LXD-CAT3 134 002 X - Selection Category 3
R-LXD-CAT4 136 002 X - Selection Category 4
R-LXD-CAT5 138 002 X - Selection Category 5
R-LXD-SUB1 140 001 X - Selection Sub-Category 1
R-LXD-SUB2 141 001 X - Selection Sub-Category 2
R-LXD-SUB3 142 001 X - Selection Sub-Category 3
R-LXD-SUB4 143 001 X - Selection Sub-Category 4
R-LXD-SUB5 144 001 X - Selection Sub-Category 5
R-LXD-SELECTION-PRESENT 145 001 X - Selection Record Present
R-LXD-INCLUDE-ROUGH 146 001 X - Include Rough
FILLER 147 386 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 203 of 455


Movement Analysis Layout Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’MAN’, Mandatory
R-MAN-REPORT-CODE 004 005 X - Layout Code Mandatory
FILLER 009 056 X - -
R-MAN-LOOKUP-ID 065 003 X - Lookup Id
R-MAN-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-MAN-REPORT-NAME-1 086 030 X - Report Name Line 1 Mandatory
R-MAN-REPORT-NAME-2 116 030 X - Report Name Line 2
R-MAN-L3-CODE 146 002 X - Level Category 3 Mandatory
R-MAN-L2-CODE 148 002 X - Level Category 2
R-MAN-L1-CODE 150 002 X - Level Category 1
R-MAN-C1-CODE 152 005 X - Column A Codes
R-MAN-C2-CODE 157 005 X - Column B Codes
R-MAN-C3-CODE 162 005 X - Column C Codes
R-MAN-C4-CODE 167 005 X - Column D Codes
R-MAN-C5-CODE 172 005 X - Column E Codes
R-MAN-C6-CODE 177 005 X - Column F Codes
R-MAN-C7-CODE 182 005 X - Column G Codes
R-MAN-C8-CODE 187 005 X - Column H Codes
R-MAN-PAGE-LEVEL 192 001 X - Page Level
R-MAN-RE-EVAL-MVMTS 193 001 X - Re-evaluate Movements
R-MAN-REPORT-TRANS 194 001 X - Report Transactions
R-MAN-AMOUNT-FORMAT 195 001 X - Amount Format
R-MAN-TRANSFER-FORMAT 196 005 X - Transfer Format
R-MAN-ZERO-SUPPRESS 201 001 X - Line Zero Suppress
R-MAN-S1-CODE 202 002 X - Selection Category 1
R-MAN-S2-CODE 204 002 X - Selection Category 2
R-MAN-S3-CODE 206 002 X - Selection Category 3
R-MAN-S4-CODE 208 002 X - Selection Category 4
R-MAN-S5-CODE 210 002 X - Selection Category 5
R-MAN-S1-MASK-ID 212 001 X - Selection SubCategory 1
R-MAN-S2-MASK-ID 213 001 X - Selection SubCategory 2
R-MAN-S3- MASK-ID 214 001 X - Selection SubCategory 3
R-MAN-S4-MASK-ID 215 001 X - Selection SubCategory 4
R-MAN-S5-MASK-ID 216 001 X - Selection SubCategory 5
R-MAN-L3-MASK-ID 217 001 X - Level SubCategory 3
R-MAN-L2-MASK-ID 218 001 X - Level SubCategory 2
R-MAN-L1-MASK-ID 219 001 X - Level SubCategory 1
R-MAN-WIDE-COLUMN 220 001 X - Column Width Control
R-MAN-PRINTER-CODE 221 005 X - Printer Definition
FILLER 226 575 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 204 of 455


New Cost Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘MCD’, Mandatory
MCD-AP 004 007 N 0 Account Period Mandatory
MCD-ITEM-CODE 011 015 X - Item Code Mandatory
FILLER 026 039 X - - -
MCD-LOOKUP-ID 065 003 X - Lookup ID
MCD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
MCD-CURRENT-COST 086 018 N 5 Current Cost
MCD-NEW-COST 114 018 N 5 New Cost
FILLER 132 903 X - -

SunSystems 4 – Technical Reference Manual Page 205 of 455


Item Validation Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-MIV-CODE 001 003 X - Reference Record Type Value ‘MIV’, Mandatory
R-MIV-ITEM-CODE 004 015 X - Item Code Mandatory
R-MIV-REC-REF 019 015 X - Receipt Reference Mandatory
FILLER 034 031 X - - -
FILLER 065 003 X - - -
FILLER 068 010 X - - -
FILLER 078 008 X - - -
R-MIV-AUDIT-DATE 086 008 X - Audit Date
R-MIV-PROHIBIT-POSTING 094 001 X - Prohibit Posting
R-MIV-REASON-FOR-CHANGE 095 030 X - Reason For Change
FILLER 125 676 X - - -

SunSystems 4 – Technical Reference Manual Page 206 of 455


Movement Accounts Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘MMC’, Mandatory
MMC-MVT-CODE 004 005 X - Movement Code Mandatory
FILLER 009 056 X - - -
MMC-LOOKUP-ID 065 003 X - Lookup ID
MMC-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 947 X - -

SunSystems 4 – Technical Reference Manual Page 207 of 455


Location Accounts Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘MLC’, Mandatory
MLC-LOCATION 004 005 X - Location Code Mandatory
FILLER 009 056 X - - -
MLC-LOOKUP-ID 065 003 X - Lookup ID
MLC-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 947 X - - -

SunSystems 4 – Technical Reference Manual Page 208 of 455


Revaluation Analysis Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘MRA’, Mandatory
MRA-PROFILE 004 005 X - Profile Code Mandatory
MRA-ACCOUNT-TYPE 009 001 X - Account Type Mandatory
FILLER 010 055 X - - -
MRA-LOOKUP-ID 065 003 X - Lookup ID
MRA-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
MRA-CAT(1) 086 002 X - Analysis Category 1
MRA-ANAL-CODE(1) 088 015 X - Analysis Code 1
MRA-CAT(2) 103 002 X - Analysis Category 2
MRA-ANAL-CODE(2) 105 015 X - Analysis Code 2
MRA-CAT(3) 120 002 X - Analysis Category 3
MRA-ANAL-CODE(3) 122 015 X - Analysis Code 3
MRA-CAT(4) 137 002 X - Analysis Category 4
MRA-ANAL-CODE(4) 139 015 X - Analysis Code 4
MRA-CAT(5) 154 002 X - Analysis Category 5
MRA-ANAL-CODE(5) 156 015 X - Analysis Code 5
MRA-CAT(6) 171 002 X - Analysis Category 6
MRA-ANAL-CODE(6) 173 015 X - Analysis Code 6
MRA-CAT(7) 188 002 X - Analysis Category 7
MRA-ANAL-CODE(7) 190 015 X - Analysis Code 7
MRA-CAT(8) 205 002 X - Analysis Category 8
MRA-ANAL-CODE(8) 207 015 X - Analysis Code 8
MRA-CAT(9) 222 002 X - Analysis Category 9
MRA-ANAL-CODE(9) 224 015 X - Analysis Code 9
MRA-CAT(10) 239 002 X - Analysis Category 10
MRA-ANAL-CODE(10) 241 015 X - Analysis Code 10
FILLER 256 769 X - -

SunSystems 4 – Technical Reference Manual Page 209 of 455


Revaluation Profile Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘MRP’, Mandatory
MRA-PROFILE 004 005 X - Profile Code Mandatory
FILLER 009 056 X - - -
MRP-LOOKUP-ID 065 003 X - Lookup ID
MRP-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
MRP-DESC 086 030 X - Description Mandatory
MRP-LEVEL-1 116 002 X - Level Code 1
MRP-LEVEL-2 118 002 X - Level Code 2
MRP-LEVEL-3 120 002 X - Level Code 3
MRP-OTHER-CURR 122 005 X - Other Currency Code
MRP-INV-REF 127 015 X - Inventory Reference
MRP-GAIN-LOSS-ACC 142 015 X - Gain/Loss Account Code Mandatory
MRP-GAIN-LOSS-REF 157 015 X - Gain/Loss Reference
MRP-ADD1-ACC 172 015 X - Additional Account Code 1
MRP-ADD1-REF 197 015 X - Additional Reference 1
MRP-ADD2-ACC 212 015 X - Additional Account Code 2
MRP-ADD2-REF 227 015 X - Additional Reference 2
MRP-INV-TRANS-DESC 242 025 X - Inventory Transaction Description
MRP-GAIN-LOSS-TRANS-DESC 267 025 X - Gains/Loss Transaction Description
MRP-ADD1-TRANS-DESC 292 025 X - Additional Transaction Description 1
MRP-ADD2-TRANS-DESC 317 025 X - Additional Transaction Description 2
MRP-JNL-TYPE 342 005 X - Journal Type
MRP-JNL2-TYPE 347 005 X - Journal Type 2
MRP-OFFSET-DESC 352 025 X - Offset Description
MRP-OFFSET-REF 377 015 X - Offset Reference
MPR-OTHER 392 001 X - Other
MRP-POSTING-PERIOD 393 001 X - Posting Period Flag
FILLER 394 631 X - -

SunSystems 4 – Technical Reference Manual Page 210 of 455


Stock Take Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’MSD’, Mandatory
R-MSD-STOCK-TAKE-CODE 004 005 X - Stock Take Code Mandatory
FILLER 009 056 X - -
R-MSD-LOOKUP-ID 065 003 X - Lookup Id
R-MSD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-MSD-DESCRIPTION 086 030 X - Description Mandatory
R-MSD-STOCK-TAKE-METHOD 116 001 X - Stock Take Method Mandatory
R-MSD-INCLUDE-ZERO- 117 001 X - Include Zero Balances
BALANCES
R-MSD-DISPLAY-ORIGINAL-QTY 118 001 X - Display Original Quantity
R-MSD-PRINT-ORIGINAL-QTY 119 001 X - Print Original Quantity
R-MSD-CHECK-ALL-LOCATIONS 120 001 X - Check All Locations
R-MSD-POSITIVE-MOVEMENT- 121 005 X - +ve Movement Definition Mandatory
DEF
R-MSD-NEGATIVE-MOVEMENT- 126 005 X - -ve Movement Definition Mandatory
DEF
R-MSD-ITEM-CODE-FROM 131 015 X - Item Code From
R-MSD-ITEM-CODE-TO 146 015 X - Item Code To
R-MSD-LOCATION-CODE-FROM 161 005 X - Location Code From
R-MSD-LOCATION-CODE- TO 166 005 X - Location Code To
R-MSD-RECEIPT-REF-FROM 171 015 X - Receipt Reference From
R-MSD-RECEIPT-REF-TO 186 015 X - Receipt Reference To
R-MSD-ANALYSIS-CATEGORY 201 002 X - Analysis Category
R-MSD-ANALYSIS-CODE-FROM 203 015 X - Analysis Code From
R-MSD-ANALYSIS-CODE-TO 218 015 X - Analysis Code To
R-MSD-L4-CODE 233 002 X - Stock Take Sequence Level 4 Mandatory
R-MSD-L3-CODE 235 002 X - Stock Take Sequence Level 3 Mandatory
R-MSD-L2-CODE 237 002 X - Stock Take Sequence Level 2
R-MSD-L1-CODE 239 002 X - Stock Take Sequence Level 1
FILLER 241 560 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 211 of 455


Movement Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’MVD’, Mandatory
R-MVD-TYPE 004 005 X - Movement Type Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-MVD-LOOKUP-ID 065 003 X - Lookup Id
R-MVD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-MVD-MOVEMENT-DESCR 086 030 X - Description
R-MVD-MOVE-CODE 116 001 X - Receipt/Issue/Transfer Mandatory
R-MVD-PRINT-DOC 117 001 X - Print Document
R-MVD-DOC-FORMAT 118 005 X - Document Format
R-MVD-GLI-CODE 123 005 X - G/L Interface Code
R-MVD-PHYSICAL-BAL 128 001 X - Physical Balance
R-MVD-ON-ORD-BAL 129 001 X - On Order Balance
R-MVD-RECPT-REF 130 001 X - Receipt Reference
R-MVD-REF-DESCR 131 010 X - Reference Description
R-MVD-ACCOUNT-PER-LINE 141 001 X - Account Codes per Line
R-MVD-ASSET-PER-LINE 142 001 X - Asset Codes per Line
R-MVD-ANAL-CAT-0 143 002 X - Analysis Category M0
R-MVD-ANAL-CAT-1 145 002 X - Analysis Category M1
R-MVD-ANAL-CAT-2 147 002 X - Analysis Category M2
R-MVD-ANAL-CAT-3 149 002 X - Analysis Category M3
R-MVD-ANAL-CAT-4 151 002 X - Analysis Category M4
R-MVD-ANAL-CAT-5 153 002 X - Analysis Category M5
R-MVD-ANAL-CAT-6 155 002 X - Analysis Category M6
R-MVD-ANAL-CAT-7 157 002 X - Analysis Category M7
R-MVD-ANAL-CAT-8 159 002 X - Analysis Category M8
R-MVD-ANAL-CAT-9 161 002 X - Analysis Category M9
R-MVD-MANUAL-ALLOC 163 001 X - Manual Allocation
R-MVD-AUDIT-DATE 164 001 X - Audit Date Accept
R-MVD-REPORT-COST 165 003 X - Report Cost
R-MVD-COST-INPUT-1 168 001 X - Cost Input 1
R-MVD-COST-INPUT-2 169 001 X - Cost Input 2
R-MVD-COST-INPUT-3 170 001 X - Cost Input 3
R-MVD-COST-DESC-1 171 015 X - Cost Input Description 1
R-MVD-COST-DESC-2 186 015 X - Cost Input Description 2
R-MVD-COST-DESC-3 201 015 X - Cost Input Description 3
R-MVD-EUR-TOL-OV 216 001 X - Euro Tolerance Override
FILLER 217 584 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 212 of 455


Movement Presets Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’MVP’, Mandatory
R-MVP-TYPE 004 005 X - Movement Type Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-MVP-LOOKUP-ID 065 003 X - Lookup Id
R-MVP-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-MVP-ITEM-CODE 086 015 X - Item Code
R-MVP-RECPT-REF 101 015 X - Receipt Reference
R-MVP-BALANCE-CODE 116 005 X - Location
R-MVP-TRANSFER-LOC 121 005 X - Transfer To
R-MVP-QUANTITY 126 018 N 5 Quantity
R-MVP-COST-1 144 018 N 5 Cost 1
R-MVP-COST-2 162 018 N 5 Cost 2
R-MVP-COST-3 180 018 N 5 Cost 3
R-MVP-VALUE-1 198 018 N 5 Value 1
R-MVP-VALUE-2 216 018 N 5 Value 2
R-MVP-VALUE-3 234 018 N 5 Value 3
R-MVP-RATE-1 252 018 N 9 Rate 1
R-MVP-RATE-2 270 018 N 9 Rate 2
R-MVP-AUDIT-DATE 288 008 N 0 Audit Date
R-MVP-ACCOUNT-CODE 296 015 X - Account Code
R-MVP-ASSET-CODE 311 010 X - Asset Code
R-MVP-SUB-CODE 321 005 X - SubCode
R-MVP-ANAL-CODE-0 326 015 X - Analysis Code 0
R-MVP-ANAL-CODE-1 341 015 X - Analysis Code 1
R-MVP-ANAL-CODE-2 356 015 X - Analysis Code 2
R-MVP-ANAL-CODE-3 371 015 X - Analysis Code 3
R-MVP-ANAL-CODE-4 386 015 X - Analysis Code 4
R-MVP-ANAL-CODE-5 401 015 X - Analysis Code 5
R-MVP-ANAL-CODE-6 416 015 X - Analysis Code 6
R-MVP-ANAL-CODE-7 431 015 X - Analysis Code 7
R-MVP-ANAL-CODE-8 446 015 X - Analysis Code 8
R-MVP-ANAL-CODE-9 461 015 X - Analysis Code 9
R-MVP-TRAN-CODE-0 476 015 X - Transfer To Code 0
R-MVP-TRAN-CODE-1 491 015 X - Transfer To Code 1
R-MVP-TRAN-CODE-2 506 015 X - Transfer To Code 2
R-MVP-TRAN-CODE-3 521 015 X - Transfer To Code 3
R-MVP-TRAN-CODE-4 536 015 X - Transfer To Code 4
R-MVP-TRAN-CODE-5 551 015 X - Transfer To Code 5
R-MVP-TRAN-CODE-6 566 015 X - Transfer To Code 6
R-MVP-TRAN-CODE-7 581 015 X - Transfer To Code 7
R-MVP-TRAN-CODE-8 596 015 X - Transfer To Code 8
R-MVP-TRAN-CODE-9 611 015 X - Transfer To Code 9

SunSystems 4 – Technical Reference Manual Page 213 of 455


Movement Presets Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 626 175 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 214 of 455


Movement Values Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’MVV’, Mandatory
R-MVV-DBASE-CODE 004 003 X - Database Code Mandatory
FILLER 007 058 X - -
R-MVV-LOOKUP-ID 065 003 X - Lookup Id
R-MVV-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-MVV-REPORT-NAME-1 086 015 X - Report Name 1
R-MVV-VALUE-1 101 003 X - Value 1
R-MVV-REPORT-NAME-2 104 015 X - Report Name 2
R-MVV-VALUE-2 119 003 X - Value 2
R-MVV-REPORT-NAME-3 122 015 X - Report Name 3
R-MVV-VALUE-3 137 003 X - Value 3
FILLER 140 661 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 215 of 455


Sales Analysis Layout Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’OAN’, Mandatory
R-OAN-REPORT-CODE 004 005 X - Layout Code Mandatory
FILLER 009 056 X - -
R-OAN-LOOKUP-ID 065 003 X - Lookup Id
FILLER 068 018 X - -
R-OAN-REPORT-NAME-1 086 030 X - Report Name Line 1 Mandatory
R-OAN-REPORT-NAME-2 116 030 X - Report Name Line 2
R-OAN-L3-CODE 146 002 X - Level Code 3 Mandatory
R-OAN-L2-CODE 148 002 X - Level Code 2
R-OAN-L1-CODE 150 002 X - Level Code 1
R-OAN-C1-CODE 152 005 X - Column A Codes
R-OAN-C2-CODE 157 005 X - Column B Codes
R-OAN-C3-CODE 162 005 X - Column C Codes
R-OAN-C4-CODE 167 005 X - Column D Codes
R-OAN-C5-CODE 172 005 X - Column E Codes
R-OAN-C6-CODE 177 005 X - Column F Codes
R-OAN-C7-CODE 182 005 X - Column G Codes
R-OAN-C8-CODE 187 005 X - Column H Codes
R-OAN-ANALYSIS-TYPE 192 001 X - Orders/Invoices/All Mandatory
R-OAN-PAGE-LEVEL 193 001 X - Page Level
R-OAN-REPORT-TRANS 194 001 X - Report Transactions
R-OAN-AMOUNT-FORMAT 195 001 X - Amount Format
R-OAN-TRANSFER-FORMAT 196 005 X - Transfer Format
R-OAN-ZERO-SUPPRESS 201 001 X - Line Zero Suppress
R-OAN-S1-CODE 202 002 X - Selection Category 1
R-OAN-S2-CODE 204 002 X - Selection Category 2
R-OAN-S3-CODE 206 002 X - Selection Category 3
R-OAN-S4-CODE 208 002 X - Selection Category 4
R-OAN-S5-CODE 210 002 X - Selection Category 5
R-OAN-S1-MASK-ID 212 001 X - Selection SubCategory
R-OAN-S2-MASK-ID 213 001 X - Selection SubCategory 2
R-OAN-S3-MASK-ID 214 001 X - Selection SubCategory 3
R-OAN-S4-MASK-ID 215 001 X - Selection SubCategory 4
R-OAN-S5-MASK-ID 216 001 X - Selection SubCategory 5
R-OAN-L3-MASK-ID 217 001 X - Level SubCategory 3
R-OAN-L2-MASK-ID 218 001 X - Level SubCategory 2
R-OAN-L1-MASK-ID 219 001 X - Level SubCategory 1
R-OAN-WIDE-COLUMN 220 001 X - Wide Column
R-OAN-PRINTER-CODE 221 005 X - Printer Code
FILLER 226 307 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 216 of 455


Authorisation Groups Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘OAG’, Mandatory
ZAG-OPERATOR-GROUP 004 005 X - Operator Group
FILLER 009 056 X - - -
ZAG-LOOKUP-ID 065 003 X - Lookup ID
ZAG-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
ZAG-CL 086 001 X - Credit Limit Mandatory
ZAG-OA 087 001 X - Overdue Amounts Mandatory
ZAG-LS 088 001 X - Legal Status Mandatory
ZAG-MO 089 001 X - Minimum Order Mandatory
ZAG-RELEASE 090 001 X - Release Mandatory
FILLER 091 934 X - -

SunSystems 4 – Technical Reference Manual Page 217 of 455


Release Authorisation Parameters Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 085 X -
ZAP-OVERDUE-INTOLERANCE 086 018 N 5 Overdue Tolerance
ZAP-MINIMUM-ORDER-VALUE 104 018 N 5 Minimum Order Value
ZAP-LEGAL-STATUS-CAT 122 002 X - Legal Status Category
ZAP-STATUS-CODE(1) 124 015 X - Legal Status Code 1
ZAP-STATUS-CODE(2) 139 015 X - Legal Status Code 2
ZAP-STATUS-CODE(3) 154 015 X - Legal Status Code 3
ZAP-OVERDUE-CHECK 169 001 X - Overdue Check Mandatory
ZAP-CREDIT-LIMIT-CHECK 170 001 X - Credit Limit Check Mandatory
ZAP-LEGAL-STATUS-CHECK 171 001 X - Legal Status Check Mandatory
ZAP-MINIMUM-ORDER-CHECK 172 001 X - Minimum Order Check Mandatory
ZAP-RELEASE-CHECK 173 001 X - Release Check Mandatory
ZAP-ALLOCATION-VALUE(1) 174 001 X - Allocation Value 1
ZAP-ALLOCATION-VALUE(2) 175 001 X - Allocation Value 2
ZAP-ALLOCATION-VALUE(3) 176 001 X - Allocation Value 3
ZAP-ALLOCATION-VALUE(4) 177 001 X - Allocation Value 4
ZAP-ALLOCATION-VALUE(5) 178 001 X - Allocation Value 5
ZAP-ALLOCATION-VALUE(6) 179 001 X - Allocation Value 6
ZAP-ALLOCATION-VALUE(7) 180 001 X - Allocation Value 7
ZAP-ALLOCATION-VALUE(8) 181 001 X - Allocation Value 8
ZAP-ALLOCATION-VALUE(9) 182 001 X - Allocation Value 9
ZAP-ALLOCATION-VALUE(10) 183 001 X - Allocation Value 10
ZAP-ALLOCATION-VALUE(11) 184 001 X - Allocation Value 11
ZAP-ALLOCATION-VALUE(12) 185 001 X - Allocation Value 12
ZAP-ALLOCATION-VALUE(13) 186 001 X - Allocation Value 13
ZAP-ALLOCATION-VALUE(14) 187 001 X - Allocation Value 14
ZAP-ALLOCATION-VALUE(15) 188 001 X - Allocation Value 15
FILLER 189 836 X -

SunSystems 4 – Technical Reference Manual Page 218 of 455


Standard Density Maintenance Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘ODM’, Mandatory
R-ODM-CODE 004 015 X - Item Code Mandatory
R-ODM-LOCATION 019 005 X - Location
R-ODM-START-DATE 024 008 N 0 Start Date
FILLER 032 033 X - - -
FILLER 065 021 X - - -
R-ODM-PROD-DENSITY 086 006 N 2 Product Density
R-ODM-TEMPERATURE 092 006 N 3 Temperature
R-ODM-HCF 098 001 N 0 Hydro Correction Flag Mandatory
R-ODM-STD-DENSITY 099 006 N 2 Standard Density
R-ODM-TEMP-NEG 105 001 X - Plus/Minus Flag
FILLER 106 919 X - - -

SunSystems 4 – Technical Reference Manual Page 219 of 455


Free Goods Setup Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘OFG’, Mandatory
FILLER 004 061 X - - -
ZFG-LOOKUP-ID 065 003 X - Lookup ID
ZFG-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
ZFG-PRICE-NO 086 001 X - Default Price Number Mandatory
ZFG-NEW-ORDER 087 001 X - Generate New Order Mandatory
ZFG-NEW-TRANS-CODE 088 005 X - New Order Transaction Type
ZFG-LOCATION 093 005 X - Location
ZFG-M0 098 015 X - Analysis Code 1
ZFG-M1 113 015 X - Analysis Code 2
ZFG-M2 128 015 X - Analysis Code 3
ZFG-M3 143 015 X - Analysis Code 4
ZFG-M4 158 015 X - Analysis Code 5
ZFG-M5 173 015 X - Analysis Code 6
ZFG-M6 188 015 X - Analysis Code 7
ZFG-M7 203 015 X - Analysis Code 8
ZFG-M8 218 015 X - Analysis Code 9
ZFG-M9 233 015 X - Analysis Code 10
FILLER 248 777 X -

SunSystems 4 – Technical Reference Manual Page 220 of 455


Free Goods Rules Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘OFR’, Mandatory
ZFR-ITEM-CODE 004 015 X - Item Code
ZFR-TRANS-CODE 019 005 X - Sales Order Type
ZFR-PRICE-BOOK 024 005 X - Price Book Mandatory
FILLER 029 036 X - - -
ZFR-LOOKUP-ID 065 003 X - Lookup ID
ZFR-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
FILLER 086 005 X - - -
ZFR-PRICE-NO 091 001 X - Price Number Mandatory
ZFR-AWARDED-ITEM 092 015 X - Awarded Item Mandatory
ZFR-LOCATION 107 015 X - Location
ZFR-COMMENTS-1 122 025 X - Comments Line 1
ZFR-COMMENTS-2 147 025 X - Comments Line 2
ZFR-COMMENTS-3 162 025 X - Comments Line 3
ZFR-START-DATE 187 008 X - Start Date
ZFR-END-DATE 195 008 X - End Date
ZFR-DISABLED 203 001 X - Disabled Mandatory
ZFR-NEW-TRANS-CODE 204 005 X - New Transaction Code
ZFR-ORIGINAL-ANALYSIS 209 001 X - Original Analysis Code Mandatory
ZFR-ANALYSIS-CODE(1) 210 015 X - Analysis Code 1
ZFR-ANALYSIS-CODE(2) 225 015 X - Analysis Code 2
ZFR-ANALYSIS-CODE(3) 240 015 X - Analysis Code 3
ZFR-ANALYSIS-CODE(4) 255 015 X - Analysis Code 4
ZFR-ANALYSIS-CODE(5) 270 015 X - Analysis Code 5
ZFR-ANALYSIS-CODE(6) 285 015 X - Analysis Code 6
ZFR-ANALYSIS-CODE(7) 300 015 X - Analysis Code 7
ZFR-ANALYSIS-CODE(8) 315 015 X - Analysis Code 8
ZFR-ANALYSIS-CODE(9) 330 015 X - Analysis Code 9
ZFR-ANALYSIS-CODE(10) 345 015 X - Analysis Code 10
FILLER 360 665 X -

SunSystems 4 – Technical Reference Manual Page 221 of 455


Invoice Modification Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
OIM-RECORD-ID 001 003 X - Reference Record Type Value ‘OIM’, Mandatory
OIM-OP-GROUP 004 005 X - Operator Group
FILLER 009 056 X - - -
FILLER 065 013 X - - -
FILLER 078 008 X - - -
FILLER 086 001 X - - -
OIM-DELV-ADDR 087 001 X - Delivery Address Flag
OIM-CUST-REF 088 001 X - Customer Reference Flag
OIM-DELV-REF 089 001 X - Delivery Reference Flag
OIM-COMMENT 090 001 X - Comments Flag
OIM-VOID-FLAG 091 001 X - Void Flag
OIM-ADDL-FIELD1 092 001 X - Additional Field 1 Flag
OIM-ADDL-FIELD2 093 001 X - Additional Field 2 Flag
OIM-ADDL-FIELD3 094 001 X - Additional Field 3 Flag
OIM-ADDL-FIELD4 095 001 X - Additional Field 4 Flag
OIM-ADDL-FIELD5 096 001 X - Additional Field 5 Flag
OIM-ADDL-FIELD6 097 001 X - Additional Field 6 Flag
OIM-ADDL-FIELD7 098 001 X - Additional Field 7 Flag
OIM-ADDL-FIELD8 099 001 X - Additional Field 8 Flag
OIM-ADDL-FIELD9 100 001 X - Additional Field 9 Flag
OIM-ADDL-FIELD10 101 001 X - Additional Field 10 Flag
OIM-ADDL-FIELD11 102 001 X - Additional Field 11 Flag
OIM-ADDL-FIELD11 103 001 X - Additional Field 12 Flag
FILLER 104 697 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 222 of 455


Minimum Order Tolerance Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘OOT’, Mandatory
ZOT-CUSTOMER-CODE 004 010 X - Address Code Mandatory
ZOT-ITEM-CODE 014 015 X - Item Code
FILLER 029 036 X - - -
ZOT-LOOKUP-ID 065 003 X - Lookup ID
ZOT-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
ZOT-OVERDUE-TOLERANCE 086 018 N 5 Overdue Tolerance
ZOT-MINIMUM-ORDER-VALUE 104 018 N 5 Minimum Order Value
FILLER 122 903 X -

SunSystems 4 – Technical Reference Manual Page 223 of 455


Sales Order Header Presets Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’OPH’, Mandatory
R-OPH-CODE 004 005 X - Sales Order Type Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-OPH-LOOKUP-ID 065 003 X - Lookup Id
R-OPH-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-OPH-INV-ADD 086 010 X - Customer Invoice Address
R-OPH-DEL-ADD 096 010 X - Customer Delivery Address
R-OPH-TRANS-DATE 106 010 X - Transaction Date
R-OPH-CUST-REF 116 025 X - Customer Reference
R-OPH-DEL-REF 141 015 X - Delivery Reference
R-OPH-COMMENTS 156 025 X - Comments
R-OPH-ANAL-CAT-0 181 002 X - Analysis Category 0
R-OPH-ANAL-CAT-1 183 002 X - Analysis Category 1
R-OPH-ANAL-CAT-2 185 002 X - Analysis Category 2
R-OPH-ANAL-CAT-3 187 002 X - Analysis Category 3
R-OPH-ANAL-CAT-4 189 002 X - Analysis Category 4
R-OPH-ANAL-CAT-5 191 002 X - Analysis Category 6
R-OPH-ANAL-CAT-7 195 002 X - Analysis Category 7
R-OPH-ANAL-CAT-8 197 002 X - Analysis Category 8
R-OPH-ANAL-CAT-9 199 002 X - Analysis Category 9
R-OPH-ANAL-CODE-0 201 015 X - Analysis Code 0
R-OPH-ANAL-CODE-1 216 015 X - Analysis Code 1
R-OPH-ANAL-CODE-2 231 015 X - Analysis Code 2
R-OPH-ANAL-CODE-3 246 015 X - Analysis Code 3
R-OPH-ANAL-CODE-4 261 015 X - Analysis Code 4
R-OPH-ANAL-CODE-5 276 015 X - Analysis Code 5
R-OPH-ANAL-CODE-6 291 015 X - Analysis Code 6
R-OPH-ANAL-CODE-7 306 015 X - Analysis Code 7
R-OPH-ANAL-CODE-8 321 015 X - Analysis Code 8
R-OPH-ANAL-CODE-9 336 015 X - Analysis Code 9
FILLER 351 450 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 224 of 455


Sales Order Details Presets Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’OPI’, Mandatory
R-OPI-CODE 004 005 X - Sales Order Type Mandatory
R-OPI-LINE 009 005 X - Line Number Mandatory
FILLER 014 019 X - -
FILLER 033 032 X - -
R-OPI-LOOKUP-ID 065 003 X - Lookup Id
R-OPI-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-OPI-ITEM-CODE 086 015 X - Item Code
R-OPI-DESCRIPTION 101 030 X - Item Decsription
R-OPI-LOCATION 131 005 X - Location Code
R-OPI-DUE-DATE 136 010 X - Due Date
R-OPI-ACCOUNT-CODE 146 015 X - Account Code
R-OPI-CALC-CODE-1 161 003 X - Calculation Code 1
R-OPI-CALC-CODE-2 164 003 X - Calculation Code 2
R-OPI-CALC-CODE-3 167 003 X - Calculation Code 3
R-OPI-CALC-VALUE-1 170 018 N 5 Calculation Value 1
R-OPI-CALC-VALUE-2 188 018 N 5 Calculation Value 2
R-OPI-CALC-VALUE-3 206 018 N 5 Calculation Value 3
FILLER 224 577 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 225 of 455


Returns/Exchanges Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-ORX-REC-TYPE 001 003 X - Reference Record Type Value ‘ORX’, Mandatory
FILLER 004 061 X - - -
R-ORX-LOOKUP-ID 065 003 X - Lookup ID
FILLER 068 010 X - - -
FILLER 078 008 X - - -
R-ORX-CREDIT-NOTE 086 005 X - Default Credit Note Mandatory
R-ORX-RETURN-LOCATION 091 005 X - Return Location Mandatory
FILLER 096 929 X -

SunSystems 4 – Technical Reference Manual Page 226 of 455


Credit/Debit Notes Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
OSN-REC-TYPE 001 003 X - Reference Record Type Value ‘OSN’, Mandatory
OSN-SALES-ORDER-TYPE 004 005 X - Sales Order Type Mandatory
FILLER 009 056 X - - -
OSN-LOOKUP-ID 065 003 X - Lookup ID
OSN-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
FILLER 086 939 X -

SunSystems 4 – Technical Reference Manual Page 227 of 455


Sales Order Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’OTD’, Mandatory
R-OTD-CODE 004 005 X - Transaction Type Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-OTD-LOOKUP-ID 065 003 X - Lookup Id
R-OTD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-OTD-DESCRIPTION 086 030 X - Description Mandatory
R-OTD-CD 116 001 X - Credit/Debit Mandatory
R-OTD-MANUAL-REF 117 001 X - Manual Order Numbers
R-OTD-UPDATE-STOCK 118 001 X - Update Stock
R-OTD-DUE-DATES 119 001 X - Enter Due Date
R-OTD-ACKNOWLEDGE 120 001 X - Acknowledgements
R-OTD-PICK-LIST 121 001 X - Picking Documents
R-OTD-DESPATCH 122 001 X - Despatch Documents
R-OTD-DIRECT-INV 123 001 X - Direct Print Invoice
R-OTD-OPTION-8 124 001 X - Not used at version 4.2
FILLER 125 005 X - -
R-OTD-DOC-PREF 130 004 X - Document Ref Prefix
R-OTD-GL-INTERFACE 134 005 X - Interface Code-Invoice
R-OTD-CALC-CODE-1 139 003 X - Calculation Code 1
R-OTD-CALC-CODE-2 142 003 X - Calculation Code 2
R-OTD-CALC-CODE-3 145 003 X - Calculation Code 3
R-OTD-CALC-CODE-4 148 003 X - Calculation Code 4
R-OTD-CALC-CODE-5 151 003 X - Calculation Code 5
R-OTD-CALC-CODE-6 154 003 X - Calculation Code 6
R-OTD-CALC-CODE-7 157 003 X - Calculation Code 7
R-OTD-CALC-CODE-8 160 003 X - Calculation Code 8
R-OTD-CALC-CODE-9 163 003 X - Calculation Code 9
R-OTD-CALC-CODE-10 166 003 X - Calculation Code 10
R-OTD-CALC-CODE-11 169 003 X - Calculation Code 11
R-OTD-CALC-CODE-12 172 003 X - Calculation Code 12
R-OTD-CALC-CODE-13 175 003 X - Calculation Code 13
R-OTD-CALC-CODE-14 178 003 X - Calculation Code 14
R-OTD-CALC-CODE-15 181 003 X - Calculation Code 15
R-OTD-CALC-CODE-16 184 003 X - Calculation Code16
R-OTD-CALC-CODE-17 187 003 X - Calculation Code 17
R-OTD-CALC-CODE-18 190 003 X - Calculation Code 18
R-OTD-CALC-CODE-19 193 003 X - Calculation Code 19
R-OTD-CALC-CODE-20 196 003 X - Calculation Code 20
R-OTD-LINE-TOTAL-1 199 003 X - Displayed Value 1
R-OTD-LINE-TOTAL-2 202 003 X - Displayed Value 2
R-OTD-LINE-TOTAL-3 205 003 X - Displayed Value 3

SunSystems 4 – Technical Reference Manual Page 228 of 455


Sales Order Definition Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-OTD-GSP 208 003 X - Credit Balance Value
R-OTD-AMEND-CALC-1 211 001 X - Calc Code Override 1
R-OTD-AMEND-CALC-2 212 001 X - Calc Code Override 2
R-OTD-AMEND-CALC-3 213 001 X - Calc Code Override 3
R-OTD-AMEND-CALC-4 214 001 X - Calc Code Override 4
R-OTD-AMEND-CALC-5 215 001 X - Calc Code Override 5
R-OTD-AMEND-CALC-6 216 001 X - Calc Code Override 6
R-OTD-AMEND-CALC-7 217 001 X - Calc Code Override 7
R-OTD-AMEND-CALC-8 218 001 X - Calc Code Override 8
R-OTD-AMEND-CALC-9 219 001 X - Calc Code Override 9
R-OTD-AMEND-CALC-10 220 001 X - Calc Code Override 10
R-OTD-AMEND-CALC-11 221 001 X - Calc Code Override 11
R-OTD-AMEND-CALC-12 222 001 X - Calc Code Override 12
R-OTD-AMEND-CALC-13 223 001 X - Calc Code Override 13
R-OTD-AMEND-CALC-14 224 001 X - Calc Code Override 14
R-OTD-AMEND-CALC-15 225 001 X - Calc Code Override 15
R-OTD-AMEND-CALC-16 226 001 X - Calc Code Override 16
R-OTD-AMEND-CALC-17 227 001 X - Calc Code Override 17
R-OTD-AMEND-CALC-18 228 001 X - Calc Code Override 18
R-OTD-AMEND-CALC-19 229 001 X - Calc Code Override 19
R-OTD-AMEND-CALC-20 230 001 X - Calc Code Override 20
R-OTD-INVOICE-FORMAT 231 005 X - Invoice Document Format
R-OTD-ACKNOWL-FORMAT 236 005 X - Acknowledgement Doc’nt Format
R-OTD-PICKING-FORMAT 241 005 X - Picking Document Format
R-OTD-DESPATCH-FORMAT 246 005 X - Despatch Document Format
R-OTD-STOCK-INTERFACE 251 005 X - Interface Code-Stock
R-OTD-LINE-ANAL(0) 256 002 X - Analysis by Line 0
R-OTD-LINE-ANAL(1) 258 002 X - Analysis by Line 1
R-OTD-LINE-ANAL(2) 260 002 X - Analysis by Line 2
R-OTD-LINE-ANAL(3) 262 002 X - Analysis by Line 3
R-OTD-LINE-ANAL(4) 264 002 X - Analysis by Line 4
R-OTD-LINE-ANAL(5) 266 002 X - Analysis by Line 5
R-OTD-LINE-ANAL(6) 268 002 X - Analysis by Line 6
R-OTD-LINE-ANAL(7) 270 002 X - Analysis by Line 7
R-OTD-LINE-ANAL(8) 272 002 X - Analysis by Line 8
R-OTD-LINE-ANAL(9) 274 002 X - Analysis by Line 9
R-OTD-PAYMENT-DUE-DATE 276 001 X - Enter Payment Date
R-OTD-ACCOUNT-CODES-PER- 277 001 X - Account Codes per Line
LINE
R-OTD-QUOTATION 278 001 X - Quotation

SunSystems 4 – Technical Reference Manual Page 229 of 455


Sales Order Definition Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-OTD-QUOTATION-FORMAT 279 005 X - Quotation Format
R-OTD-QUOTE-EXPIRY-DATE 284 003 N - Quotation Expiry Date
R-OTD-SALES-QTY 287 003 X - Sales Quantity
R-OTD-PRICING-BASE-DATE 290 001 X - Pricing Base Date
R-OTD-SALES-UNIT 291 003 X - Sales Unit
R-OTD-STOCK-QTY 294 003 X - Stock Quantity
R-OTD-BRT-HIER-1 297 005 X - Hierarchy LA Tax Requirements
R-OTD-BRT-HIER-2 302 005 X - Hierarchy LA Tax Requirements
R-OTD-BRT-HIER-3 307 005 X - Hierarchy LA Tax Requirements
R-OTD-BRT-HIER-4 312 005 X - Hierarchy LA Tax Requirements
R-OTD-BRT-HIER-5 317 005 X - Hierarchy LA Tax Requirements
R-OTD-BRT-CALC-1 322 003 X - Hierarchy Calc Code 1
R-OTD-BRT-CALC-2 325 003 X - Hierarchy Calc Code 2
R-OTD-BRT-CALC-3 328 003 X - Hierarchy Calc Code 3
R-OTD-BRT-CALC-4 331 003 X - Hierarchy Calc Code 4
R-OTD-BRT-CALC-5 334 003 X - Hierarchy Calc Code 5
R-OTD-SALES-QTY-2 337 003 X - Sales Quantity 2
R-OTD-RELEASE-HEADER 340 001 X - Release On Header
R-OTD-RR-AD 341 001 X - Receipt Reference Audit Date Flag
R-OTD-SUP-ADD-HDR-LBLS 342 001 X - Suppress Additional Header Labels
FILLER 343 458 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 230 of 455


Tracking Code Maintenance Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘OTM’, Mandatory
OTM-ITEM-CODE 004 015 X - Item Code Mandatory
OTM-DEST-CODE 019 015 X - Destination Analysis Code Mandatory
OTM-ORIGIN-CODE 034 015 X - Origin Analysis Code
FILLER 049 037 X - - -
OTM-ANALYSIS-CODE 086 015 X - Tracking Analysis Code Mandatory
OTM-EXPIRATION 101 008 N 0 Expiration Date Mandatory
OTM-IN-PROCESS 109 001 X - In Process Flag
OTM-FIELD-1 110 025 X - Field 1
OTM-FIELD-2 135 025 X - Field 2
OTM-FIELD-3 160 008 N 0 Field 3
OTM-FIELD-4 168 008 N 0 Field 4
OTM-FIELD-5 176 003 X - Field 5
FILLER 179 846 X -

SunSystems 4 – Technical Reference Manual Page 231 of 455


Tracking Code Parameters Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 085 X - Reference Record Type Value ‘OTP’, Mandatory
OTP-DEST-CAT 086 002 X - Destination Analysis Category Mandatory
OTP-ORIGIN-CAT 088 002 X - Origin Analysis Category
OTP-SANITARY-CAT 090 002 X - Tracking Analysis Category Mandatory
FILLER 092 933 X -

SunSystems 4 – Technical Reference Manual Page 232 of 455


Tracking Code Excluded Combinations Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘OXC’, Mandatory
OXC-ITEM-CODE 004 015 X - Item Code
OXC-DEST-CODE 019 015 X - Destination Analysis Code Mandatory
OXC-ORIGIN-CODE 034 015 X - Origin Analysis Code
FILLER 049 976 X -

SunSystems 4 – Technical Reference Manual Page 233 of 455


Charge Index Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-PCI-REC-TYPE 001 003 X - Reference Record Type Value ‘PCI’, Mandatory
R-PCI-INDEX-CODE 004 005 X - Index Code Mandatory
R-PCI-CATEGORY 009 002 X - Index Category Mandatory
R-PCI-CODE 011 015 X - Index Code From
FILLER 026 039 X - -
R-PCI-LOOKUP-ID 065 003 X - Lookup ID
R-PCI-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-PCI-DESCRIPTION 086 030 X - Description Mandatory
R-PCI-FACTOR 116 010 N 5 Weighing Factor
FILLER 126 674 X - -
FILLER 800 225 X - - -

SunSystems 4 – Technical Reference Manual Page 234 of 455


Purchase Format Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘PFD’, Mandatory
R-PFD-CODE 004 005 X - Format Code Mandatory
FILLER 009 024 X - - -
FILLER 033 032 X - - -
R-PFD-LOOKUP-ID 065 003 X - Lookup ID
R-PFD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
R-PFD-DESCRIPTION 086 030 X - Description Mandatory
R-PFD-DOC-FORMAT 116 005 X - Document Format Mandatory
R-PFD-PURCHASE-DEF(1) 121 005 X - Purchase Definition 1 Mandatory
R-PFD-PURCHASE-DEF(2) 126 005 X - Purchase Definition 2
R-PFD-PURCHASE-DEF(3) 131 005 X - Purchase Definition 3
R-PFD-PURCHASE-DEF(4) 136 005 X - Purchase Definition 4
R-PFD-PURCHASE-DEF(5) 141 005 X - Purchase Definition 5
R-PFD-ORD-STATUS-FROM 146 001 X - Order Status From
R-PFD-ORD-STATUS-TO 147 001 X - Order Status To
R-PFD-INV-STATUS-FROM 148 002 X - Invoice Status From
R-PFD-INV-STATUS-TO 150 002 X - Invoice Status To
R-PFD-GRN-STATUS-FROM 152 002 X - GRN Status From
R-PFD-GRN-STATUS-TO 154 002 X - GRN Status To
R-PFD-DOC-TYPE 156 001 X - Document Type
R-PFD-DOC-NUMBERING 157 001 X - Document Numbering
R-PFD-SEL-CODE(1) 158 002 X - Selection Code 1
R-PFD-SEL-CODE(2) 160 002 X - Selection Code 2
R-PFD-SEL-CODE(3) 162 002 X - Selection Code 3
R-PFD-SEL-CODE(4) 164 002 X - Selection Code 4
R-PFD-SEL-CODE(5) 166 002 X - Selection Code 5
R-PFD-REPRINT-FLAG 168 001 X - Reprint Flag
R-PFD-DOC-DATE 169 001 X - Document Date Indicator
R-PFD-DESC-LINE-IND 170 001 X - Description Line Indicator
R-PFD-INCLUDE-EXCLUDE 171 001 X - Include/Exclude Indicator
FILLER 172 361 X - -
R-PFD-GRP-MASK 533 005 X - -
FILLER 538 269 X - -
FILLER 807 218 X - -

SunSystems 4 – Technical Reference Manual Page 235 of 455


Payment Terms Instalments Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘PLE’, Mandatory
R-PLE-CODE 004 010 X - Payment Terms Code
R-PLE-LINE 014 002 N 0 Payment Terms Line No Mandatory
FILLER 016 049 X - - -
R-PLE-LOOKUP-ID 065 003 X - Lookup ID
R-PLE-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 020 X - - -
R-PLE-DATE-IND 098 002 N 0 Date Indicator
R-PLE-DATE-BASE-IND 100 002 N 0 Date Based On Indicator
R-PLE-TERMS-NUMBER 102 003 N 0 Payment Terms Number
R-PLE-TERMS-UNIT 105 001 N 0 Time Units
R-PLE-TERMS-MONTH-END 106 001 N 0 Round To End Of Month
R-PLE-TERMS-PERCENT 107 005 N 3 Percentage
R-PLE-TERMS-R-DATE(1) 112 002 N 0 Rounding Date 1
R-PLE-TERMS-R-DATE(2) 114 002 N 0 Rounding Date 2
R-PLE-TERMS-R-DATE(3) 116 002 N 0 Rounding Date 3
R-PLE-TERMS-R-DATE(4) 118 002 N 0 Rounding Date 4
R-PLE-TERMS-R-DAY(1) 120 001 X - Rounding Day – Sunday
R-PLE-TERMS-R-DAY(2) 121 001 X - Rounding Day – Monday
R-PLE-TERMS-R-DAY(3) 122 001 X - Rounding Day – Tuesday
R-PLE-TERMS-R-DAY(4) 123 001 X - Rounding Day – Wednesday
R-PLE-TERMS-R-DAY(5) 124 001 X - Rounding Day – Thursday
R-PLE-TERMS-R-DAY(6) 125 001 X - Rounding Day – Friday
R-PLE-TERMS-R-DAY(7) 126 001 X - Rounding Day – Saturday
FILLER 127 482 X - - -
FILLER 609 416 X - - -

SunSystems 4 – Technical Reference Manual Page 236 of 455


Purchase Order Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’POD’, Mandatory
R-POD-CODE 004 005 X - Transaction Type Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-POD-LOOKUP-ID 065 003 X - Lookup Id
R-POD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-POD-DESCRIPTION 086 030 X - Description
R-POD-ORDER-RETURN 116 001 X - Order/Return Mandatory
R-POD-ORDER-INVOICE 117 001 X - Order/Invoice Entry Mandatory
R-POD-GOODS-RECEIPT 118 001 X - Goods Receipt
R-POD-UPDATE-STOCK 119 001 X - Update Stock
R-POD-DUE-DATE 120 001 X - Due Date per Line
R-POD-ACCOUNT-ENTRY 121 001 X - Account Code per Line
R-POD-INV-ADDRESS 122 010 X - Invoice Address Code
R-POD-MANUAL-REF 132 001 X - Manual Order References
FILLER 133 005 X - -
R-POD-DOC-PREF 138 004 X - Order Reference Prefix
R-POD-DIRECT-PRINT-ORDER 142 001 X - Direct Print Order
R-POD-ORDER-FORMAT 143 005 X - Document Format
R-POD-COMM-INTERFACE 148 005 X - Commitment Interface Code
R-POD-INVY-INTERFACE 153 005 X - Inventory Interface Code
R-POD-UINV-INTERFACE 158 005 X - Unapproved Invoices Interface Code
R-POD-AINV-INTERFACE 163 005 X - Approved Invoices Interface Code
R-POD-ORDER-ANAL-0 168 001 X - Analysis by Header 0
R-POD-ORDER-ANAL-1 169 001 X - Analysis by Header 1
R-POD-ORDER-ANAL-2 170 001 X - Analysis by Header 2
R-POD-ORDER-ANAL-3 171 001 X - Analysis by Header 3
R-POD-ORDER-ANAL-4 172 001 X - Analysis by Header 4
R-POD-ORDER-ANAL-5 173 001 X - Analysis by Header 5
R-POD-ORDER-ANAL-6 174 001 X - Analysis by Header 6
R-POD-ORDER-ANAL-7 175 001 X - Analysis by Header 7
R-POD-ORDER-ANAL-8 176 001 X - Analysis by Header 8
R-POD-ORDER-ANAL-9 177 001 X - Analysis by Header 9
R-POD-LINE-ANAL-0 178 001 X - Analysis by Detail 0
R-POD-LINE-ANAL-1 179 001 X - Analysis by Detail 1
R-POD-LINE-ANAL-2 180 001 X - Analysis by Detail 2
R-POD-LINE-ANAL-3 181 001 X - Analysis by Detail 3
R-POD-LINE-ANAL-4 182 001 X - Analysis by Detail 4
R-POD-LINE-ANAL-5 183 001 X - Analysis by Detail 5
R-POD-LINE-ANAL-6 184 001 X - Analysis by Detail 6
R-POD-LINE-ANAL-7 185 001 X - Analysis by Detail 7
R-POD-LINE-ANAL-8 186 001 X - Analysis by Detail 8

SunSystems 4 – Technical Reference Manual Page 237 of 455


Purchase Order Definition Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-POD-LINE-ANAL-9 187 001 X - Analysis by Detail 9
R-POD-CALC-CODE-1 188 003 X - Calculation Code 1
R-POD-CALC-CODE-2 191 003 X - Calculation Code 2
R-POD-CALC-CODE-3 194 003 X - Calculation Code 3
R-POD-CALC-CODE-4 197 003 X - Calculation Code 4
R-POD-CALC-CODE-5 200 003 X - Calculation Code 5
R-POD-CALC-CODE-6 203 003 X - Calculation Code 6
R-POD-CALC-CODE-7 206 003 X - Calculation Code 7
R-POD-CALC-CODE-8 209 003 X - Calculation Code 8
R-POD-CALC-CODE-9 212 003 X - Calculation Code 9
R-POD-CALC-CODE-10 215 003 X - Calculation Code 10
R-POD-CALC-CODE-11 218 003 X - Calculation Code 11
R-POD-CALC-CODE-12 221 003 X - Calculation Code 12
R-POD-CALC-CODE-13 224 003 X - Calculation Code 13
R-POD-CALC-CODE-14 227 003 X - Calculation Code 14
R-POD-CALC-CODE-15 230 003 X - Calculation Code 15
R-POD-CALC-CODE-16 233 003 X - Calculation Code 16
R-POD-CALC-CODE-17 236 003 X - Calculation Code 17
R-POD-AMEND-BPC 239 001 X - BPC Override
R-POD-AMEND-CALC-1 240 001 X - Calc Code Override 1
R-POD-AMEND-CALC-2 241 001 X - Calc Code Override 2
R-POD-AMEND-CALC-3 242 001 X - Calc Code Override 3
R-POD-AMEND-CALC-4 243 001 X - Calc Code Override 4
R-POD-AMEND-CALC-5 244 001 X - Calc Code Override 5
R-POD-AMEND-CALC-6 245 001 X - Calc Code Override 6
R-POD-AMEND-CALC-7 246 001 X - Calc Code Override 7
R-POD-AMEND-CALC-8 247 001 X - Calc Code Override 8
R-POD-AMEND-CALC-9 248 001 X - Calc Code Override 9
R-POD-AMEND-CALC-10 249 001 X - Calc Code Override 10
R-POD-AMEND-CALC-11 250 001 X - Calc Code Override 11
R-POD-AMEND-CALC-12 251 001 X - Calc Code Override 12
R-POD-AMEND-CALC-13 252 001 X - Calc Code Override 13
R-POD-AMEND-CALC-14 253 001 X - Calc Code Override 14
R-POD-AMEND-CALC-15 254 001 X - Calc Code Override 15
R-POD-AMEND-CALC-16 255 001 X - Calc Code Override 16
R-POD-AMEND-CALC-17 256 001 X - Calc Code Override 17
R-POD-LINE-VALUE 257 003 X - Line Value
R-POD-MATCH-VALUE 260 003 X - Match Value
R-POD-COST-VALUE 263 003 X - Cost Value
R-POD-ASSET-ENTRY 266 001 X - Asset Code per Line
R-POD-RECEIPT-REF 267 001 X - Receipt Reference per Line
R-POD-AUDIT-DATE 268 001 X - Audit Date
R-POD-SPLIT-VAL 269 003 X - Split Value
R-POD-UPD-COST-TOL-PER 272 005 N 2 Update Cost

SunSystems 4 – Technical Reference Manual Page 238 of 455


Purchase Order Definition Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-POD-UPD-COST-TOL-VAL 277 018 N 5 Update Cost Tolerance Value
R-POD-COST-ADJ-INTERFACE 295 005 X - Cost Adjustment Interface
R-POD-BCHECK-VALUE 300 003 X - Budget Check Value
R-POD-EXPEND-CHECK-VALUE 303 003 X - Budget Check Value
R-POD-UPDATE-MOVEMENT 306 001 X - Update Movement Costs
R-POD-C2-CODE 307 003 X - Conversion Code
R-POD-C3-CODE 310 003 X - Conversion Code
R-POD-ADV-FACTOR 313 003 X - Additional Cost Charge Factor
R-POD-ADV-INDEX 316 005 X - Additional Cost Charge Index
R-POD-BRT-HIER-1 321 005 X - Brazilian Tax Hierarchy 1
R-POD-BRT-HIER-2 326 005 X - Brazilian Tax Hierarchy 2
R-POD-BRT-HIER-3 331 005 X - Brazilian Tax Hierarchy 3
R-POD-BRT-HIER-4 336 005 X - Brazilian Tax Hierarchy 4
R-POD-BRT-HIER-5 341 005 X - Brazilian Tax Hierarchy 5
R-POD-BRT-CALC-1 346 003 X - Brazilian Tax Calculation Code 1
R-POD-BRT-CALC-2 349 003 X - Brazilian Tax Calculation Code 2
R-POD-BRT-CALC-3 352 003 X - Brazilian Tax Calculation Code 3
R-POD-BRT-CALC-4 355 003 X - Brazilian Tax Calculation Code 4
R-POD-BRT-CALC-5 358 003 X - Brazilian Tax Calculation Code 5
R-POD-MATCH-VALUE2 361 003 X - Match Value 2
R-POD-MATCH-VALUE3 364 003 X - Match Value 3
R-POD-MATCH-VALUE4 367 003 X - Match Value 4
R-POD-SUP-ADD-HDR-LBLS 370 001 X - Suppress Additional Header Labels
FILLER 371 430 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 239 of 455


Payment Profile Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘PPF’, Mandatory
R-PPF-CODE 004 005 X - Payment Profile Code Mandatory
FILLER 009 056 X - - -
R-PPF-LOOKUP-ID 065 003 X - Lookup ID
R-PPF-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
R-PPF-PROFILE-NAME 086 030 X - Profile Name Mandatory
R-PPF-PAY-DEBIT 116 001 X - Payments Or Debits Mandatory
R-PPF-DAG 117 005 X - Data Access Group
R-PPF-PAY-FILE-IND 122 001 X - Payment File Indicator Mandatory
R-PPF-AC-FROM 123 010 X - Account From
R-PPF-AC-TO 133 010 X - Account To
R-PPF-PRIORITY-FROM 143 001 X - Priority From
R-PPF-PRIORITY-TO 144 001 X - Priority To
R-PPF-PAY-OPTION 145 001 X - Payment Option Mandatory
R-PPF-PAY-METHOD 146 001 X - Payment Method
R-PPF-CLIENT-DEBITS 147 001 X - Include Client Account Debits
R-PPF-CODES-OP 148 001 X - Code List Operator
R-PPF-CONV-CODE(1) 149 005 X - Conversion Code 1
R-PPF-CONV-CODE(2) 154 005 X - Conversion Code 2
R-PPF-CONV-CODE(3) 159 005 X - Conversion Code 3
R-PPF-CONV-CODE(4) 164 005 X - Conversion Code 4
R-PPF-CONV-CODE(5) 169 005 X - Conversion Code 5
R-PPF-CONV-CODE(6) 174 005 X - Conversion Code 6
R-PPF-CONV-CODE(7) 179 005 X - Conversion Code 7
R-PPF-CONV-CODE(8) 184 005 X - Conversion Code 8
R-PPF-CONV-CODE(9) 189 005 X - Conversion Code 9
R-PPF-CONV-CODE(10) 194 005 X - Conversion Code 10
R-PPF-CONV-CODE(11) 199 005 X - Conversion Code 11
R-PPF-CONV-CODE(12) 204 005 X - Conversion Code 12
R-PPF-CONV-CODE(13) 209 005 X - Conversion Code 13
R-PPF-CONV-CODE(14) 214 005 X - Conversion Code 14
R-PPF-CONV-CODE(15) 219 005 X - Conversion Code 15
R-PPF-CONV-CODE(16) 224 005 X - Conversion Code 16
R-PPF-CONV-CODE(17) 229 005 X - Conversion Code 17
R-PPF-CONV-CODE(18) 234 005 X - Conversion Code 18
R-PPF-CONV-CODE(19) 239 005 X - Conversion Code 19
R-PPF-CONV-CODE(20) 244 005 X - Conversion Code 20
R-PPF-CONV-CODE(21) 249 005 X - Conversion Code 21
R-PPF-CONV-CODE(22) 254 005 X - Conversion Code 22
R-PPF-CONV-CODE(23) 259 005 X - Conversion Code 23
R-PPF-CONV-CODE(24) 264 005 X - Conversion Code 24
R-PPF-CONV-CODE(25) 269 005 X - Conversion Code 25
R-PPF-CONV-CODE(26) 274 005 X - Conversion Code 26

SunSystems 4 – Technical Reference Manual Page 240 of 455


Payment Profile Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-PPF-CONV-CODE(27) 279 005 X - Conversion Code 27
R-PPF-CONV-CODE(28) 284 005 X - Conversion Code 28
R-PPF-CONV-CODE(29) 289 005 X - Conversion Code 29
R-PPF-CONV-CODE(30) 294 005 X - Conversion Code 30
R-PPF-ALLOC-FROM 299 001 X - Allocation Marker From Mandatory
R-PPF-ALLOC-TO 300 001 X - Allocation Marker To Mandatory
R-PPF-SELECTION-CODE(1) 301 005 X - Selection Code 1
R-PPF-SELECTION-CODE(2) 306 005 X - Selection Code 2
R-PPF-SELECTION-CODE(3) 311 005 X - Selection Code 3
R-PPF-SELECTION-CODE(4) 316 005 X - Selection Code 4
R-PPF-SELECTION-CODE(5) 321 005 X - Selection Code 5
R-PPF-SUB-CATEGORY(1) 326 001 X - Sub Category 1
R-PPF-SUB-CATEGORY(2) 327 001 X - Sub Category 2
R-PPF-SUB-CATEGORY(3) 328 001 X - Sub Category 3
R-PPF-SUB-CATEGORY(4) 329 001 X - Sub Category 4
R-PPF-SUB-CATEGORY(5) 330 001 X - Sub Category 5
R-PPF-BANK-CODE 331 005 X - Bank Code
R-PPF-AMT-TYPE 336 001 X - Amount Type
R-PPF-AMOUNT-FROM 337 015 N 0 Amount From
R-PPF-AMOUNT-TO 352 015 N 0 Amount To
R-PPF-CONV-AMT-FROM(1) 367 015 N 0 Conversion Amount From 1
R-PPF-CONV-AMT-TO(1) 382 015 N 0 Conversion Amount To 1
R-PPF-CONV-AMT-FROM(2) 397 015 N 0 Conversion Amount From 2
R-PPF-CONV-AMT-TO(2) 412 015 N 0 Conversion Amount To 2
R-PPF-CONV-AMT-FROM(3) 427 015 N 0 Conversion Amount From 3
R-PPF-CONV-AMT-TO(3) 442 015 N 0 Conversion Amount To 3
R-PPF-CONV-AMT-FROM(4) 457 015 N 0 Conversion Amount From 4
R-PPF-CONV-AMT-TO(4) 472 015 N 0 Conversion Amount To 4
R-PPF-CONV-AMT-FROM(5) 487 015 N 0 Conversion Amount From 5
R-PPF-CONV-AMT-TO(5) 502 015 N 0 Conversion Amount To 5
R-PPF-CONV-AMT-FROM(6) 517 015 N 0 Conversion Amount From 6
R-PPF-CONV-AMT-TO(6) 532 015 N 0 Conversion Amount To 6
R-PPF-CONV-AMT-FROM(7) 547 015 N 0 Conversion Amount From 7
R-PPF-CONV-AMT-TO(7) 562 015 N 0 Conversion Amount To 7

SunSystems 4 – Technical Reference Manual Page 241 of 455


Payment Profile Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-PPF-CONV-AMT-FROM(8) 577 015 N 0 Conversion Amount From 8
R-PPF-CONV-AMT-TO(8) 592 015 N 0 Conversion Amount To 8
R-PPF-CONV-AMT-FROM(9) 607 015 N 0 Conversion Amount From 9
R-PPF-CONV-AMT-TO(9) 622 015 N 0 Conversion Amount To 9
R-PPF-CONV-AMT-FROM(10) 637 015 N 0 Conversion Amount From 10
R-PPF-CONV-AMT-TO(10) 652 015 N 0 Conversion Amount To 10
R-PPF-CONV-AMT-FROM(11) 667 015 N 0 Conversion Amount From 11
R-PPF-CONV-AMT-TO(11) 682 015 N 0 Conversion Amount To 11
R-PPF-CONV-AMT-FROM(12) 697 015 N 0 Conversion Amount From 12
R-PPF-CONV-AMT-TO(12) 712 015 N 0 Conversion Amount To 12
R-PPF-CONV-AMT-FROM(13) 727 015 N 0 Conversion Amount From 13
R-PPF-CONV-AMT-TO(13) 742 015 N 0 Conversion Amount To 13
R-PPF-PAYMENT-ACC 757 015 X - Payment Account
R-PPF-MAX-PAYMENT 772 015 N 0 Maximum Payment
R-PPF-SINGLE-PAYMENT 787 001 X - Single Payment
R-PPF-EXCLUDE-ROUGH 788 001 X - Exclude Rough
FILLER 789 027 X -
FILLER 816 209 X -

SunSystems 4 – Technical Reference Manual Page 242 of 455


Purchase Header Presets Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’PPH’, Mandatory
R-PPH-CODE 004 005 X - Transaction Type Mandatory
FILLER 009 024 X - -
FILLER 033 032 X - -
R-PPH-LOOKUP-ID 065 003 X - Lookup Id
R-PPH-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-PPH-SUPP-ADDRESS 086 010 X - Supplier Address
R-PPH-DEL-ADDRESS 096 010 X - Delivery Address
R-PPH-TRANS-DATE 106 010 X - Order Date
R-PPH-REFERENCE 116 015 X - Second Order Reference
R-PPH-COMMENTS 131 025 X - Comments
R-PPH-ACK-REF 156 015 X - Acknowledgement Reference
R-PPH-ACK-DATE 171 010 X - Acknowledgement Date
R-PPH-DEL-DATE 181 010 X - Delivery Date
R-PPH-DEL-ADVISED 191 001 X - Date Confirmed Indicator
R-PPH-INV-DATE 192 010 X - Invoice Date
R-PPH-SUPP-INV-REF 202 015 X - Suppliers Invoice Reference
R-PPH-PAY-DATE 217 010 X - Payment Date
R-PPH-ANAL-CODE-0 227 015 X - Analysis Code 0
R-PPH-ANAL-CODE-1 242 015 X - Analysis Code 1
R-PPH-ANAL-CODE-2 257 015 X - Analysis Code 2
R-PPH-ANAL-CODE-3 272 015 X - Analysis Code 3
R-PPH-ANAL-CODE-4 287 015 X - Analysis Code 4
R-PPH-ANAL-CODE-5 302 015 X - Analysis Code 5
R-PPH-ANAL-CODE-6 317 015 X - Analysis Code 6
R-PPH-ANAL-CODE-7 332 015 X - Analysis Code 7
R-PPH-ANAL-CODE-8 347 015 X - Analysis Code 8
R-PPH-ANAL-CODE-9 362 015 X - Analysis Code 9
FILLER 377 424 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 243 of 455


Purchase Detail Presets Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’PPI’, Mandatory
R-PPI-CODE 004 005 X - Transaction Type Mandatory
R-PPI-LINE 009 004 X - Line Number Mandatory
FILLER 013 020 X - -
FILLER 033 032 X - -
R-PPI-LOOKUP-ID 065 003 X - Lookup Id
R-PPI-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-PPI-ITEM-CODE 086 015 X - Item Code
R-PPI-DESCRIPTION 101 030 X - Description
R-PPI-LOCATION 131 005 X - Location
R-PPI-PURCH-QTY 136 018 N 5 Purchase Quantity
R-PPI-STOCK-QTY 154 018 N 5 Stock Quantity
R-PPI-DEL-DATE 172 010 X - Delivery Date
R-PPI-DEL-ADVISED 182 001 X - Delivery Advised
R-PPI-ACCOUNT-CODE 183 015 X - Account Code
R-PPI-ASSET-CODE 198 010 X - Asset Code
R-PPI-ASSET-SUB-CODE 208 005 X - Asset SubCode
R-PPI-ANAL-CODE-0 213 015 X - Analysis Code 0
R-PPI-ANAL-CODE-1 228 015 X - Analysis Code 1
R-PPI-ANAL-CODE-2 243 015 X - Analysis Code 2
R-PPI-ANAL-CODE-3 258 015 X - Analysis Code 3
R-PPI-ANAL-CODE-4 273 015 X - Analysis Code 4
R-PPI-ANAL-CODE-5 288 015 X - Analysis Code 5
R-PPI-ANAL-CODE-6 303 015 X - Analysis Code 6
R-PPI-ANAL- CODE-7 318 015 X - Analysis Code 7
R-PPI-ANAL-CODE-8 333 015 X - Analysis Code 8
R-PPI-ANAL-CODE-9 348 015 X - Analysis Code 9
FILLER 363 438 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 244 of 455


Price Book Maintenance Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘PRB’, Mandatory
R-PRB-CODE 004 005 X - Price Book Code Mandatory
R-PRB-ANCODE1 009 015 X - Analysis Code 1
R-PRB-ANCODE2 024 015 X - Analysis Code 2
R-PRB-ANCODE3 039 015 X - Analysis Code 3
R-PRB-START-DATE 054 008 N 0 Start Date
FILLER 062 003 X - - -
R-PRB-LOOKUP-ID 065 003 X - Lookup ID
R-PRB-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
R-PRB-END-DATE 086 008 N 0 End Date
R-PRB-BSP 094 003 X - Base Selling Price
R-PRB-UNIT-OF-SALE 097 005 X - Unit Of Sale
R-PRB-RANGE-CODE 102 003 X - Range Code
R-PRB-THRESHOLD(1) 105 013 N 0 Threshold Amount 1
R-PRB-THRESHOLD(2) 118 013 N 0 Threshold Amount 2
R-PRB-THRESHOLD(3) 131 013 N 0 Threshold Amount 3
R-PRB-THRESHOLD(4) 144 013 N 0 Threshold Amount 4
R-PRB-THRESHOLD(5) 157 013 N 0 Threshold Amount 5
R-PRB-THRESHOLD(6) 170 013 N 0 Threshold Amount 6
R-PRB-THRESHOLD(7) 183 013 N 0 Threshold Amount 7
R-PRB-THRESHOLD(8) 196 013 N 0 Threshold Amount 8
R-PRB-VALUE(1) 209 018 N 5 Table Value 1
R-PRB-VALUE(2) 227 018 N 5 Table Value 2
R-PRB-VALUE(3) 245 018 N 5 Table Value 3
R-PRB-VALUE(4) 263 018 N 5 Table Value 4
R-PRB-VALUE(5) 281 018 N 5 Table Value 5
R-PRB-VALUE(6) 299 018 N 5 Table Value 6
R-PRB-VALUE(7) 317 018 N 5 Table Value 7
R-PRB-VALUE(8) 335 018 N 5 Table Value 8
R-PRB-PRAV(1) 353 001 X - Percent, Amount, Rate or Value 1 Mandatory
R-PRB-PRAV(2) 354 001 X - Percent, Amount, Rate or Value 2
R-PRB-PRAV(3) 355 001 X - Percent, Amount, Rate or Value 3
R-PRB-PRAV(4) 356 001 X - Percent, Amount, Rate or Value 4
R-PRB-PRAV(5) 357 001 X - Percent, Amount, Rate or Value 5
R-PRB-PRAV(6) 358 001 X - Percent, Amount, Rate or Value 6
R-PRB-PRAV(7) 359 001 X - Percent, Amount, Rate or Value 7
R-PRB-PRAV(8) 360 001 X - Percent, Amount, Rate or Value 8
R-PRB-OP(1) 361 001 X - Operator 1
R-PRB-OP(2) 362 001 X - Operator 2
R-PRB-OP(3) 363 001 X - Operator 3
R-PRB-OP(4) 364 001 X - Operator 4
R-PRB-OP(5) 365 001 X - Operator 5
R-PRB-OP(6) 366 001 X - Operator 6

SunSystems 4 – Technical Reference Manual Page 245 of 455


Price Book Maintenance Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-PRB-OP(7) 367 001 X - Operator 7
R-PRB-OP(8) 368 001 X - Operator 8
FILLER 369 656 X - -

SunSystems 4 – Technical Reference Manual Page 246 of 455


Price Book Hierarchy Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘PRD’, Mandatory
R-PRD-PRICE-BOOK-CODE 004 005 X - Price Book Code Mandatory
FILLER 009 024 X - - -
FILLER 033 032 X - - -
R-PRD-LOOKUP-ID 065 003 X - Lookup ID
R-PRD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-PRD-DESCRIPTION 086 020 X - Description Mandatory
R-PRD-CATEGORY(1) 106 002 X - Selection Category 1
R-PRD-CATEGORY(2) 108 002 X - Selection Category 2
R-PRD-CATEGORY(3) 110 002 X - Selection Category 3
R-PRD-SUB-CATEGORY(1) 112 001 X - Sub Category 1
R-PRD-SUB-CATEGORY(2) 113 001 X - Sub Category 2
R-PRD-SUB-CATEGORY(3) 114 001 X - Sub Category 3
FILLER 115 910 X - -

SunSystems 4 – Technical Reference Manual Page 247 of 455


Price Book Hierarchy Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘PRH’, Mandatory
R-PRH-DBASE-CODE 004 003 X - Database Code
FILLER 007 026 X - - -
FILLER 033 032 X - - -
R-PRH-LOOKUP-ID 065 003 X - Lookup ID
R-PRH-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
R-PRH-SEQ-NO(1) 086 001 X - Sequence Number 1
R-PRH-CODE(1) 087 005 X - Price Book Code 1
R-PRH-SEQ-NO(2) 092 001 X - Sequence Number 2
R-PRH-CODE(2) 093 005 X - Price Book Code 2
R-PRH-SEQ-NO(3) 098 001 X - Sequence Number 3
R-PRH-CODE(3) 099 005 X - Price Book Code 3
R-PRH-SEQ-NO(4) 104 001 X - Sequence Number 4
R-PRH-CODE(4) 105 005 X - Price Book Code 4
R-PRH-SEQ-NO(5) 110 001 X - Sequence Number 5
R-PRH-CODE(5) 111 005 X - Price Book Code 5
R-PRH-SEQ-NO(6) 116 001 X - Sequence Number 6
R-PRH-CODE(6) 117 005 X - Price Book Code 6
R-PRH-SEQ-NO(7) 122 001 X - Sequence Number 7
R-PRH-CODE(7) 123 005 X - Price Book Code 7
R-PRH-SEQ-NO(8) 128 001 X - Sequence Number 8
R-PRH-CODE(8) 129 005 X - Price Book Code 8
R-PRH-SEQ-NO(9) 134 001 X - Sequence Number 9
R-PRH-CODE(9) 135 005 X - Price Book Code 9
R-PRH-SEQ-NO(10) 140 001 X - Sequence Number 10
R-PRH-CODE(10) 141 005 X - Price Book Code 10
FILLER 146 879 X - -

SunSystems 4 – Technical Reference Manual Page 248 of 455


Payment Terms Header Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘PTE’, Mandatory
R-PTE-CODE 004 010 X - Payment Terms Code Mandatory
FILLER 014 051 X - - -
R-PTE-LOOKUP-ID 065 003 X - Lookup ID
R-PTE-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 020 X - - -
R-PTE-DESCRIPTION 098 050 X - Description
R-PTE-DOC1-DESC 148 050 X - Doc 1 Description
R-PTE-DOC2-DESC 198 050 X - Doc 2 Description
R-PTE-DOC3-DESC 248 050 X - Doc 3 Description
R-PTE-DOC4-DESC 298 050 X - Doc 4 Description
R-PTE-TAX-IN-FIRST 348 001 X - Tax to be included in first
payment flag
FILLER 349 676 X -

SunSystems 4 – Technical Reference Manual Page 249 of 455


Unit Conversion Table Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’PUC’, Mandatory
R-PUC-FROM-UNITS 004 005 X - Convert From Mandatory
R-PUC-TO-UNITS 009 005 X - Convert To Mandatory
FILLER 014 051 X - -
R-PUC-LOOKUP-ID 065 003 X - Lookup Code
R-PUC-LOOKUP-CODE 068 010 X - Lookup Id
FILLER 078 008 X - -
R-PUC-OPERATOR 086 001 X - Multiply/Divide Mandatory
R-PUC-FACTOR 087 018 N 9 Factor Mandatory
FILLER 105 696 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 250 of 455


Additional Descriptions Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SDE-REC-TYPE 001 003 X - Reference Record Type Value ‘SDE’, Mandatory
SDE-CODE 004 005 X - Standard Description Code Mandatory
FILLER 009 056 X - - -
FILLER 065 013 X - - -
FILLER 078 008 X - - -
SDE-DESCRIPTION-1 086 040 X - Description Line 1 Mandatory
SDE-DESCRIPTION-2 126 040 X - Description Line 2
SDE-DESCRIPTION-3 166 040 X - Description Line 3
SDE-DESCRIPTION-4 206 040 X - Description Line 4
SDE-DESCRIPTION-5 246 040 X - Description Line 5
SDE-DESCRIPTION-6 286 040 X - Description Line 6
FILLER 326 475 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 251 of 455


Additional Descriptions Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SDT-REC-TYPE 001 003 X - Reference Record Type Value ‘SDT’, Mandatory
SDT-HELD-CODE 004 001 X - Ledger/Budget Code Mandatory
SDT-HOLD-REF 005 005 X - Journal Held Control Reference Mandatory
SDT-TRN-REF 010 015 X - Transaction Reference Mandatory
SDT-JRNL-NO 025 005 N - Journal Line Number Key Mandatory
SDT-JRNL-SUFFIX 030 002 N - Journal Line Number Suffix Mandatory
SDT-OPERATOR 032 003 X - User Operator Mandatory
FILLER 035 030 X - - -
FILLER 065 013 X - - -
FILLER 078 008 X - - -
SDT-DESCRIPTION-1 086 040 X - Description Line 1 Mandatory
SDT-DESCRIPTION-2 126 040 X - Description Line 2
SDT-DESCRIPTION-3 166 040 X - Description Line 3
SDT-DESCRIPTION-4 206 040 X - Description Line 4
SDT-DESCRIPTION-5 246 040 X - Description Line 5
SDT-DESCRIPTION-6 286 040 X - Description Line 6
FILLER 326 475 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 252 of 455


Sales Format Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘SFD’, Mandatory
R-SFD-CODE 004 005 X - Format Code Mandatory
FILLER 009 024 X - - -
FILLER 033 032 X - - -
R-SFD-LOOKUP-ID 065 003 X - Lookup ID
R-SFD-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
R-SFD-DESCRIPTION 086 030 X - Description Mandatory
R-SFD-DOC-FORMAT 116 005 X - Document Format Mandatory
R-SFD-SALES-DEF(1) 121 005 X - Sales Definition 1 Mandatory
R-SFD-SALES-DEF(2) 126 005 X - Sales Definition 2
R-SFD-SALES-DEF(3) 131 005 X - Sales Definition 3
R-SFD-SALES-DEF(4) 136 005 X - Sales Definition 4
R-SFD-SALES-DEF(5) 141 005 X - Sales Definition 5
R-SFD-STATUS-FROM 146 001 X - Status From
R-SFD-STATUS-TO 147 001 X - Status To
R-SFD-SEL-CODE(1) 148 002 X - Selection Code 1
R-SFD-SEL-CODE(2) 150 002 X - Selection Code 2
R-SFD-SEL-CODE(3) 152 002 X - Selection Code 3
R-SFD-SEL-CODE(4) 154 002 X - Selection Code 4
R-SFD-SEL-CODE(5) 156 002 X - Selection Code 5
R-SFD-REPRINT-FLAG 158 001 X - Reprint
R-SFD-DOC-DATE 159 001 X - Document Date Indicator
R-SFD-DESC-LINE-IND 160 001 X - Description Line Indicator
R-SFD-HELD-ORDERS-IND 161 001 X - Held Orders Indicator
FILLER 162 365 X - -
R-SFD-GRP-MASK 527 005 X - Data Access Group
FILLER 532 269 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 253 of 455


Statement Line Contents Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’SLN’, Mandatory
R-LINE-CODE 004 005 X - Line Content Code Mandatory
R-LINE-NO 009 005 X - Statement Line Number Mandatory
FILLER 014 019 X - -
FILLER 033 032 X - -
R-SLN-LOOKUP-ID 065 003 X - Lookup Id
R-SLN-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-LINE-TYPE 086 002 X - Line Type Mandatory
R-LINE-NAME 088 030 X - Line Name Mandatory except on type ’H’
lines
R-LINE-AC-FIRST 118 015 X - Account Code-From Mandatory on type ’L’ and ’C’
lines
R-LINE-AC-LAST 133 015 X - Account Code-To
R-NORMAL-SIGN 148 001 X - Normal Sign Mandatory except on type ’H’
lines
R-LINE-REVERSE 149 001 X - Amount Reverse
R-AC-TOTAL 150 001 X - Account Details
R-LINE-LEDGER-CODE 151 003 X - Subsidiary Ledger
R-LINE-COL-CHANGE 154 001 X - Column Change
R-LINE-REVALUE 155 001 X - Revalue from Other Amount
R-LINE-SUPPRESS-DC 156 001 X - Suppress Line/Account
R-LINE-SUP-ACCOUNT 157 001 X - Suppress at Account Level
R-LINE-ANAL-CAT(1) 158 002 X - Selection Category 1
R-LINE-ANAL-FIRST(1) 160 015 X - Selection Code-From1
R-LINE-ANAL-LAST(1) 175 015 X - Selection Code-To1
R-LINE-ANAL-CAT(2) 190 002 X - Selection Category 2
R-LINE-ANAL-FIRST(2) 192 015 X - Selection Code-From 2
R-LINE-ANAL-LAST(2) 207 015 X - Selection Code-To 2
R-LINE-ANAL-CAT(3) 222 002 X - Selection Category 3
R-LINE-ANAL-FIRST(3) 224 015 X - Selection Code-From 3
R-LINE-ANAL-LAST(3) 239 015 X - Selection Code-To 3
FILLER 254 279 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 254 of 455


Spread Ratios Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’SPR’, Mandatory
R-SPREAD-CODE 004 003 X - Ratio Code Mandatory
FILLER 007 026 X - -
FILLER 033 032 X - -
R-SPR-LOOKUP-ID 065 003 X - Lookup Id
R-SPR-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-SPREAD-DESCR 086 030 X - Ratio Name Mandatory
R-RATIO 116 300 N - Period Ratios Table, 60 x 5 -
digit numbers
R-OPERATING-PERIODS 416 003 N - Operating periods
FILLER 419 114 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 255 of 455


Sequence Number Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘SQN’, Mandatory
R-SQN-SEQUENCE-CODE 004 005 X - Sequence Code Mandatory
R-SQN-BUDGET 009 001 X - Budget Mandatory
FILLER 010 023 X - - -
FILLER 033 032 X - - -
FILLER 065 021 X - - -
R-SQN-DESCRIPTION 086 030 X - Description Mandatory
R-SQN-AUTO-MAN 116 001 X - Automatic, Manual, Date, Entry Mandatory
R-SQN-NEXT-NUMBER 117 007 N 0 Next available number
R-SQN-REG-DATE 124 008 X - Registration Date
FILLER 132 401 X - - -
FILLER 533 268 X - - -
FILLER 801 224 X - - -

SunSystems 4 – Technical Reference Manual Page 256 of 455


Tax Account Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-TAX-KEY-TYPE 001 003 X - Reference Record Type Value ‘TAX’, Mandatory
R-TAX-DET-CODE 004 015 X - Tax Analysis Code Mandatory
FILLER 019 014 X - - -
FILLER 033 032 X - - -
R-TAX-LOOKUP-ID 065 003 X - Lookup ID
R-TAX-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - - -
R-TAX-DESC-1 086 030 X - Tax Description Line 1
R-TAX-DESC-2 116 030 X - Tax Description Line 2
R-TAX-DESC-3 146 030 X - Tax Description Line 3
R-TAX-DESC-4 176 030 X - Tax Description Line 4
R-TAX-RATE 206 007 N 5 Tax Rate
R-TAX-ACCOUNT-CODE 213 015 X - Account Code
R-TAX-INPUT-ACCOUNT 228 015 X - Input Account
R-TAX-OUTPUT-ACCOUNT 243 015 X - Output Account
R-TAX-2ND-INPUT-ACCOUNT 258 015 X - 2nd Input Account
R-TAX-2ND-OUTPUT-ACCOUNT 273 015 X - 2nd Output Account
R-TAX-INPUT-PERCENT 288 004 N 2 Input Percent
R-TAX-OUTPUT-PERCENT 292 004 N 2 Output Percent
R-TAX-STOPPAGE-RATE 296 007 N 5 Stoppage Rate
R-TAX-INPUT-STOPPAGE-ACC 303 015 X - Input Stoppage Account
R-TAX-OUTPUT-STOPPAGE-ACC 318 015 X - Output Stoppage Account
R-TAX-INPUT-STOPPAGE- 333 015 X - Input Stoppage Contra Account
CONTRA
R-TAX-OUTPUT-STOPPAGE- 348 015 X - Output Stoppage Contra Account
CONTRA
FILLER 363 185 X - -
FILLER 548 268 X - -
FILLER 816 209 X - -

SunSystems 4 – Technical Reference Manual Page 257 of 455


Treasurer Interface Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’TID’, Mandatory
R-TID-TRANS-TYPE 004 002 X - Transaction Type Mandatory
R-TID-AC-BANK 006 004 X - A/c Bank
R-TID-BANK-AC 010 004 X - Bank A/c
FILLER 014 019 X - -
FILLER 033 032 X - -
R-TID-LOOKUP-ID 065 003 X - Lookup Id
R-TID-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-TID-M-D-AC 086 015 X - Primary Memo Debit A/c
R-TID-M-C-AC 101 015 X - Primary Memo Credit A/c
R-TID-S-D-AC 116 015 X - Primary Settl’nt Dr A/c Mandatory
R-TID-S-C-AC 131 015 X - Primary Settl’nt Cr A/c Mandatory
R-TID-M-D-INT-AC 146 015 X - Interest Memo Debit A/c
R-TID-M-C-INT-AC 161 015 X - Interest Memo Credit A/c
R-TID-S-D-INT-AC 176 015 X - Interest Settl’nt Dr A/c
R-TID-S-C-INT-AC 191 015 X - Interest Settl’nt Cr A/c
FILLER 206 327 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 258 of 455


Tax Listing Layout Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ‘TLL’, Mandatory
R-TLL-LAYOUT-CODE 004 005 X - Layout Code Mandatory
FILLER 009 024 X - - -
FILLER 033 032 X - - -
FILLER 065 021 X - - -
R-TLL-DESCRIPTION 086 025 X - Description Mandatory
R-TLL-GROSS-ACCOUNT- 111 015 X - Gross Account From 1
FROM(1)
R-TLL-GROSS-ACCOUNT- 126 015 X - Gross Account From 2
FROM(2)
R-TLL-GROSS-ACCOUNT- 141 015 X - Gross Account From 3
FROM(3)
R-TLL-GROSS-ACCOUNT- 156 015 X - Gross Account From 4
FROM(4)
R-TLL-GROSS-ACCOUNT- 171 015 X - Gross Account From 5
FROM(5)
R-TLL-GROSS-ACCOUNT-TO(1) 186 015 X - Gross Account To 1
R-TLL-GROSS-ACCOUNT-TO(2) 201 015 X - Gross Account To 2
R-TLL-GROSS-ACCOUNT-TO(3) 216 015 X - Gross Account To 3
R-TLL-GROSS-ACCOUNT-TO(4) 231 015 X - Gross Account To 4
R-TLL-GROSS-ACCOUNT-TO(5) 246 015 X - Gross Account To 5
R-TLL-GROSS-ACCOUNT-TYPE-D 261 001 X - Gross Account Type D
R-TLL-GROSS-ACCOUNT-TYPE-C 262 001 X - Gross Account Type C
R-TLL-GROSS-ACCOUNT-TYPE-T 263 001 X - Gross Account Type T
R-TLL-GROSS-ACCOUNT-TYPE-B 264 001 X - Gross Account Type B
R-TLL-GROSS-ACCOUNT-TYPE-P 265 001 X - Gross Account Type P
R-TLL-GROSS-ACCOUNT-TYPE-M 266 001 X - Gross Account Type M
R-TLL-SELECTION-1 267 002 X - Selection Code 1
R-TLL-SELECTION-2 269 002 X - Selection Code 2
R-TLL-SELECTION-3 271 002 X - Selection Code 3
R-TLL-SELECTION-4 273 002 X - Selection Code 4
R-TLL-SELECTION-5 275 002 X - Selection Code 5
R-TLL-INCLUDE-ARCHIVE 277 001 X - Include Archive
R-TLL-CASH-INVOICE 278 001 X - Cash Or Invoice
R-TLL-PERIOD-DATE 279 002 X - Period Or Date Range to be entered
R-TLL-SEQUENCE-NO-CODE 281 005 X - Sequence No Code
R-TLL-FORMAT-CODE 286 005 X - Format Code Mandatory
R-TLL-TAX-ACCOUNT-FROM(1) 291 015 X - Tax Account From 1
R-TLL-TAX-ACCOUNT-FROM(2) 306 015 X - Tax Account From 2
R-TLL-TAX-ACCOUNT-FROM(3) 321 015 X - Tax Account From 3
R-TLL-TAX-ACCOUNT-FROM(4) 336 015 X - Tax Account From 4

SunSystems 4 – Technical Reference Manual Page 259 of 455


Tax Listing Layout Record, [Link], (SQL miscellaneous table SSRFMSC) – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-TLL-TAX-ACCOUNT-TO(1) 351 015 X - Tax Account To 1
R-TLL-TAX-ACCOUNT-TO(2) 366 015 X - Tax Account To 2
R-TLL-TAX-ACCOUNT-TO(3) 381 015 X - Tax Account To 3
R-TLL-TAX-ACCOUNT-TO(4) 396 015 X - Tax Account To 4
R-TLL-NET-ACCOUNT-FROM(1) 411 015 X - Net Account From 1
R-TLL-NET-ACCOUNT-FROM(2) 426 015 X - Net Account From 2
R-TLL-NET-ACCOUNT-FROM(3) 441 015 X - Net Account From 3
R-TLL-NET-ACCOUNT-FROM(4) 456 015 X - Net Account From 4
R-TLL-NET-ACCOUNT-TO(1) 471 015 X - Net Account To 1
R-TLL-NET-ACCOUNT-TO(2) 486 015 X - Net Account To 2
R-TLL-NET-ACCOUNT-TO(3) 501 015 X - Net Account To 3
R-TLL-NET-ACCOUNT-TO(4) 516 015 X - Net Account To 4
R-TLL-PERIOD-DATE-SEQ 531 002 X - Period Date Sequence
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 260 of 455


Treasurer Transaction References Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’TTR’, Mandatory
R-TTR-REFERENCE 004 007 X - Transaction Reference Mandatory
FILLER 011 022 X - -
FILLER 033 032 X - -
R-TTR-LOOKUP-ID 065 003 X - Lookup Id
R-TTR-LOOKUP-CODE 068 010 X - Lookup Code
FILLER 078 008 X - -
R-TTR-MEMO-POS 086 001 X - Memo Account +ive Mandatory
R-TTR-MEMO-NEG 087 001 X - Memo Account -ive Mandatory
R-TTR-SETT-POS 088 001 X - Settlement Account +ive Mandatory
R-TTR-SETT-NEG 089 001 X - Settlement Account -ive Mandatory
FILLER 090 443 X - -
FILLER 533 268 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 261 of 455


Tax Accounts Definition Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
TXA-REC-TYPE 001 003 X - Reference Record Type Value ‘TXA’, Mandatory
TXA-DATABASE 004 003 X - Database Code Mandatory
FILLER 007 058 X - - -
FILLER 065 013 X - - -
FILLER 078 008 X - - -
TXA-SO-AC-1 086 015 X - Sales Order Tax Account 1
TXA-SO-AC-2 101 015 X - Sales Order Tax Account 2
TXA-SO-AC-3 116 015 X - Sales Order Tax Account 3
TXA-SO-AC-4 131 015 X - Sales Order Tax Account 4
TXA-SO-AC-5 146 015 X - Sales Order Tax Account 5
TXA-SO-AC-6 161 015 X - Sales Order Tax Account 6
TXA-SO-AC-7 176 015 X - Sales Order Tax Account 7
TXA-SO-AC-8 191 015 X - Sales Order Tax Account 8
TXA-SO-AC-9 206 015 X - Sales Order Tax Account 9
TXA-SO-AC-10 221 015 X - Sales Order Tax Account 10
TXA-PO-AC-1 236 015 X - Purchase Order Tax Account 1
TXA-PO-AC-2 251 015 X - Purchase Order Tax Account 2
TXA-PO-AC-3 266 015 X - Purchase Order Tax Account 3
TXA-PO-AC-4 281 015 X - Purchase Order Tax Account 4
TXA-PO-AC-5 296 015 X - Purchase Order Tax Account 5
TXA-PO-AC-6 311 015 X - Purchase Order Tax Account 6
TXA-PO-AC-7 326 015 X - Purchase Order Tax Account 7
TXA-PO-AC-8 341 015 X - Purchase Order Tax Account 8
TXA-PO-AC-9 356 015 X - Purchase Order Tax Account 9
TXA-PO-AC-10 371 015 X - Purchase Order Tax Account 10
FILLER 396 629 X - -

SunSystems 4 – Technical Reference Manual Page 262 of 455


Version Control Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 003 X - Reference Record Type Value ’VER’, Mandatory
FILLER 004 061 X - -
FILLER 065 021 X - -
VER-VERSION 086 003 X - Version Mandatory, value numeric
VER-LAN-CODE 089 002 N - Language Code
FILLER 091 710 X - -
FILLER 801 224 X - -

SunSystems 4 – Technical Reference Manual Page 263 of 455


Lead Times Record, [Link], (SQL miscellaneous table SSRFMSC)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
R-XLT-REC-ID 001 003 X - Reference Record Type Value ‘XLT’, Mandatory
R-XLT-LEAD-ANAL-1 004 015 X - Lead Analysis Code 1
R-XLT-LEAD-ANAL-2 019 015 X - Lead Analysis Code 2
FILLER 034 031 X - - -
FILLER 065 013 X - - -
FILLER 078 008 X - - -
R-XLT-LEAD-DAYS 086 003 X - Lead Days
FILLER 089 712 X - - -
FILLER 801 224 X - - -

SunSystems 4 – Technical Reference Manual Page 264 of 455


The Ledger File (and Budget File)
Description
The Ledger File holds the ledger transactions for SunAccount. The Budget Files are defined in the
same way as the Ledger File. The transactions held on the Budget Files are Ledger transactions
that have been posted to Budget rather than Actuals in SunAccount. These files have exactly the
same format as the Ledger File.
If the system you are using includes the Asset Register module, then there will exist an Asset File
along with the Ledger File. The Asset File is a simple index file, containing details of transactions
posted in the Asset Register, that is, the link between the Asset and the Account.
Note that with SQL versions of SunSystems, the tables containing the Budget data are separate
to the Ledger data tables. The layout is the same: the only difference is the table name.
Summary of Record Types
There are two types of record on the Ledger File:
the Control record
the Transaction record.
There is one Control record (type ‘C’) per file: there is one Transaction (type ‘T’) record per
transaction posted to the ledger. For each transaction posted to the Ledger File, if that transaction
includes asset details, then an entry is posted to the Asset File.
Cobol Select...Assign Statement
SELECT LEDGER-FILE ASSIGN
M LEDGER-FILE-NAME
V * “SALF_DEM.DAT”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY STD-LEDGER-KEY
ALTERNATE RECORD KEY STD-LEDGER-ALTERNATE-KEY
WITH DUPLICATES
M LOCK MODE MANUAL
V * BLOCK CONTAINS 512 CHARACTERS
V * RESERVE 8 AREAS
STATUS LEDGER-FILE-STATUS.
SELECT ASSET-FILE ASSIGN
M ASSET-FILE-NAME
V * “SFAF_DEM.DAT”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY ASSET-KEY
M LOCK MODE MANUAL
V * BLOCK CONTAINS 512 CHARACTERS
V * RESERVE 8 AREAS
STATUS ASSET-FILE-STATUS.

SunSystems 4 – Technical Reference Manual Page 265 of 455


Cobol File Description (FD)
M FD LEDGER-FILE.
V *FD LEDGER-FILE VALUE OF ID IS LEDGER-FILE-NAME.
01 STD-LEDGER-RECORD.
02 STD-LEDGER-KEY.
03 STD-LEDGER-AC PIC X(015).
03 FILLER PIC X(015).
03 STD-LEDGER-ALTERNATE-KEY PIC X(008).
02 STD-LEDGER-DATA PIC X(339).
M FD ASSET-FILE.
V *FD ASSET-FILE VALUE OF ID IS ASSET-FILE-NAME.
01 ASSET-RECORD.
02 ASSET-KEY.
03 ASSET-AC PIC X(015).
03 FILLER PIC X(023).
02 ASSET-DATA PIC X(015).

The physical record length on disk (339 bytes) is less than the logical record length within the
programs (512 bytes):
Logical Record bytes
Physical Record
Primary Key
Key Data 30
Alternate Key 8
____

38
Data 339
____

Total Physical 377


Filler 135
____

Total Logical 512


Note: The alternate key is embedded in the key data.

Ledger File Record Descriptions


Note: The SQL table that contains the Ledger transactions is named according to the
database being used. The Control record is stored in a table shared by other databases.

SunSystems 4 – Technical Reference Manual Page 266 of 455


Ledger Transaction Record, see [Link], SQL Table Name SALFLDGddd for the Actual Ledger or
SAbFLDGddd where b=Budget Code (B-K)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
L-AC 001 015 X - ACCNT_CODE char(15) Account Code Mandatory
L-AP 016 007 N 0 PERIOD int Accounting Period Mandatory
L-DT 023 008 N 0 TRANS_DATE int Transaction Date Mandatory
L-JN 031 004 S 0 JRNAL_NO int Journal Number Mandatory,PIC
S 9 (07)
COMP-3
L-TN 035 004 S 0 JRNAL_LINE int Journal Line Number Mandatory,
PICS 9 (07)
COMP-3
L-RECORD-TYPE 039 001 X - - - Record Type Mandatory,
value ’T’
L-AM 040 010 N 3 AMOUNT numeric Base Amount Mandatory,
PIC 9 (15)
V999 COMP-3
L-DC 050 001 X - D_C char(1) Debit/Credit Mandatory
Indicator
L-AI 051 001 X - ALLOCATION char(1) Allocation Indicator
L-TT 052 005 X - JRNAL_TYPE char(5) Journal Type Mandatory
L-JR 057 005 X - JRNAL_SRCE char(5) Journal Source
L-RF 062 015 X - TREFERENCE char(15) Transaction Reference
L-DS 077 025 X - DESCRIPTN char(25) Transaction
Description
L-ED 102 008 N 0 ENTRY_DATE int Entry Date Mandatory
L-EP 110 007 N 0 ENTRY_PRD int Entry Period Mandatory
L-ADD-DATE 117 008 N 0 DUE_DATE int Due Date
FILLER 125 010 X - - - -
L-ALLOC-RF 135 005 N - ALLOC_REF int Payment/Allocation
Refernce
L-ALLOC-DT 140 008 N 0 ALLOC_DATE int Payment/Allocation
Date
L-ALLOC-AP 148 007 N 0 ALLOC_PERIOD int Payment/Allocation
Period
L-ASSET-IND 155 001 X - ASSET_IND char(1) Asset Marker
L-ASSET-CODE 156 010 X - ASSET_CODE char(10) Asset Code
L-ASSET-SUB-CODE 166 005 X - ASSET_SUB char(5) Asset Sub-Code
L-CONV-CODE 171 005 X - CONV_CODE char(5) Conversion Code
L-CONV-RATE 176 010 N 9 CONV_RATE numeric Conversion Rate PIC
9(9) V9(9) COMP-3
L-OTHER-AM 186 010 N 3 OTHER_AMT numeric Other Amount PIC
9(15) V999 COMP-3
L-OTHER-DP 196 001 X - OTHER_DP char(1) Other Amount d.p.

SunSystems 4 – Technical Reference Manual Page 267 of 455


Ledger Transaction Record, see [Link], SQL Table Name SALFLDGddd for the Actual Ledger or
SAbFLDGddd where b=Budget Code (B-K) – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
Next two fields redefine above three fields (not SQL):
L-CLEARDOWN 197 005 N 0 CLEARDOWN char(5) Cleardown Sequence
Number
FILLER 202 004 X - - - -
L-REVERSAL 206 001 X - REVERSAL char(1) Next Period Reversal
L-LOSS-GAIN 207 001 X - LOSS_GAIN char(1) Revaluation Flag
Gain/Loss
L-ROUGH-FLAG 208 001 X - ROUGH_FLAG char (1) Flag of Rough Book
status
L-IN-USE-FLAG 209 001 X - IN_USE_FLAG char(1) In Use Flag
L-AN-0 210 015 X - ANAL_T0 char(15) Analysis Code 0
L-AN-1 225 015 X - ANAL_T1 char(15) Analysis Code 1
L-AN-2 240 015 X - ANAL_T2 char(15) Analysis Code 2
L-AN-3 255 015 X - ANAL_T3 char(15) Analysis Code 3
L-AN-4 270 015 X - ANAL_T4 char(15) Analysis Code 4
L-AN-5 285 015 X - ANAL_T5 char(15) Analysis Code 5
L-AN-6 300 015 X - ANAL_T6 char(15) Analysis Code 6
L-AN-7 315 015 X - ANAL_T7 char(15) Analysis Code 7
L-AN-8 330 015 X - ANAL_T8 char(15) Analysis Code 8
L-AN-9 345 015 X - ANAL_T9 char(15) Analysis Code 9
L-POSTING-DATE 360 008 N 0 POSTING_DATE int Posting Date
FILLER 368 001 X - - - -
L-ALLOC-IN-PROGRESS 369 001 X - ALLOC_IN_PROGRESS char(1) Allocation in
Progress
L-HOLD-REF 370 005 N - HOLD_REF int Held Journal
Reference
L-HOLD-OP-ID 375 003 X - HOLD_OP_ID char(3) Operator ID for Held
Journal
L-BCHECK-ACCT 378 015 X - BCHECK_ACCT char(15) Budget Check
FILLER 393 120 X - - - -
FILLER 513 512 X - - - -

SunSystems 4 – Technical Reference Manual Page 268 of 455


Ledger Control Record, see [Link], SQL Table Name SALFMSC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL FIELD DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES TYPE
- - - - - D_BASE char(3) Database Code Mandatory
FILLER 001 038 X - - - -
FILLER 039 001 X - A_B char(1) Budget Code B-K Redefines
Record Type -
”C”= Control
Record
L-HIGHEST-JN 040 007 N - HIGH_JRNAL char(7) Highest Journal Mandatory
Number
L-HIGHEST-CLEARDOWN 047 005 N - HIGH_CLRDN char(5) Last Cleardown Number
L-VERSION 052 003 N - VERSION char(3) Version Number
L-LANGUAGE-ID 055 002 N - LANG_CODE char(2) Language Code
FILLER 057 210 X - - - -
FILLER 267 246 X - - - -
FILLER 513 512 X - - - -

SunSystems 4 – Technical Reference Manual Page 269 of 455


Ledger Allocation Record [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
LC-Account 001 015 X - Account Code
LC-Period 016 009 N - Account Period
LC-Date 023 008 N - Transaction Date
LC-Journal 031 004 S - Journal Number PICS 9(07) COMP-3
LC-Line-No. 035 004 S - Journal Line Number Number PICS 9(07) COMP-3
FILLER 039 986 X - -

SunSystems 4 – Technical Reference Manual Page 270 of 455


The Ledger Archive File
Description
The Ledger Archive File holds the ledger transactions that have been deleted from the Ledger
File during Period Cleardown. The layout is the same as the Ledger transactions. There is no
corresponding Asset File.
Summary of Record Types
Again, there are two types of record on the Ledger Archive File:
the Control record
the Transaction record.
There is one Control record (type ‘C’) per file; there is one Transaction (type ‘T’) record per
transaction cleared off the ledger.

Cobol Select...Assign Statement


SELECT ARCHIVE-FILE ASSIGN
M ARCHIVE-FILE-NAME
V * “SALF_DEM.DAT”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY STD-ARCHIVE-KEY
ALTERNATE RECORD KEY STD-ARCHIVE-ALTERNATE-KEY
WITH DUPLICATES
M LOCK MODE MANUAL
V * BLOCK CONTAINS 1024 CHARACTERS
V * RESERVE 8 AREAS
STATUS ARCHIVE-FILE-STATUS.

Cobol File Description (FD)


M FD ARCHIVE-FILE.
V *FD ARCHIVE-FILE VALUE OF ID IS ARCHIVE-FILE-NAME.
01 STD-ARCHIVE-RECORD.
02 STD-ARCHIVE-KEY.
03 STD-ARCHIVE-AC PIC X(15).
03 FILLER PIC X(15).
03 STD-ARCHIVE-ALTERNATE-KEY PIC X(8).
02 STD-ARCHIVE-DATA PIC X(339).

SunSystems 4 – Technical Reference Manual Page 271 of 455


The physical record length on disk (339 bytes) is less than the logical record length within the
programs (512 bytes):
Logical Record bytes
Physical Record
Primary Key
Key Data 30
Alternate Key 8
____

38
Data 339
____

Total Physical 378


Filler 134
____

Total Logical 512


Note: The alternate key is embedded in the key data.

Ledger Archive File Record


Note that the SQL table that contains the Ledger Archive transactions is named according to the
database being used. The Control record is stored in a table shared by other databases.
Ledger Archive Transaction Record, see [Link], SQL Table Name SALHARCddd:
This record has the same layout as the Ledger Transaction. The exception to this is with SQL
versions, where an additional field is required to identify the Archive Year. The Archive data in
non-SQL systems is stored in separate files for different years, so this field is not necessary,
whereas in SQL versions, the Archive data is all in one table (per database) regardless of the
year. Hence the following field exists:

SQL Field Name SQL Field Type Description Comment Field


ARC_YEAR char(2) Archive Year Mandatory

Ledger Archive Control Record, see [Link], SQL Table Name SALHMSC:
Again there is one extra field in the SQL table, defined as above.

SunSystems 4 – Technical Reference Manual Page 272 of 455


The Balance File
Description
The Balance File holds records with balances for each ledger file combination of:
Account Code
Credit/Debit
Analysis Code
Conversion Code
and Period.
The budget balance files are defined in the same way as the ledger balance file.
Instead of maintaining a record for each transaction, as in the case of the ledger file, each
balance file record will hold a table of period balances in both base and other amount, for up to
thirteen periods of data (i.e. typically a year’s data). If a user defines more than thirteen periods in
a year then more balance records are created. In addition to the thirteen periods, a prior year’s
balance is held in base and other amount. This is maintained by a year cleardown process when
rolling up prior years’ balances.
The information held in this file is equivalent to that on the ledger file after a cleardown. This
means that any process requiring transaction based information, such as transaction reference,
journal number, or asset information will need to access the ledger file. Where only periodic or
balance data is required, then the balance file may be used instead.
The basic access method for the balance file will present period totals back to the application in
account code sequence (i.e. as if the ledger was being read with only cleared down balances).
Indexing of Balance File
The full primary key to the balance file, including analysis codes, represents approximately 180
characters. However since most of this key simply represents uniqueness rather than being of
use for reporting purposes, the key may be reduced considerably by creating a hash code based
on credit/debit indicator, conversion code, period and all the analysis codes. This hash code is
then used for accessing records for updating.
When accessing the balance file for reporting purposes, the hash part of the key is ignored, and
period totals will appear back to the application in random sequence within account.
It is important to note that a difference between the balance file and the ledger file is the
sequence of processing within an account, must be considered as random. It would be incorrect
for an application to assume that having read a record for a period greater than required, that
there would be no more records on the balance file with earlier periods. Periods can be processed
in blocks of 13 and although the application may only be interested in the first three periods, the
next record may also contain information for the same three periods but with different analysis.
Summary of Record Types
There are two types of records on the balance file:
the Control Record
the Transaction Record.
There is one Control Record (type ‘C’) per file; there is one Transaction (type ‘T’) record for every
combination of account code, credit/debit, analysis code, conversion code, and period.

SunSystems 4 – Technical Reference Manual Page 273 of 455


Cobol Select...Assign Statement
SELECT BALANCE-FILE ASSIGN
M BALANCE-FILE-NAME
V * “SALB_DEM.DAT”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY LA-KEY
M LOCK MODE MANUAL
V BLOCK CONTAINS 1536 CHARACTERS
V * RESERVE 8 AREAS
STATUS BALANCE-FILE-STATUS.
*

Cobol File Description


M FD BALANCE-FILE.
V *FD BALANCE-FILE VALUE OF ID IS BALANCE-FILE-NAME.
01 LA-RECORD.
03 LA-KEY.
* Key length = 31 characters
05 LA-ACCOUNT-CODE PIC X(15).
* ledger account code
05 LA-HASH PIC X(16).
* hashed representation of the key data below
03 LA-KEY-DATA.
* Data length = 658 characters
05 LA-CD PIC X(01).
* Debit /Credit marker
05 LA-PERIOD PIC 9(07).
* Base period for record - moves by 13 (1, 14, 27)
* up to the number of periods set for the database
05 LA-CONV PIC X(05).
* Conversion Code
05 LA-ANALS.
* T codes - 10 of them
07 LA-ANAL-T0 PIC X(15).
07 LA-ANAL-T1 PIC X(15).
07 LA-ANAL-T2 PIC X(15).
07 LA-ANAL-T3 PIC X(15).
07 LA-ANAL-T4 PIC X(15).
07 LA-ANAL-T5 PIC X(15).
07 LA-ANAL-T6 PIC X(15).
07 LA-ANAL-T7 PIC X(15).
07 LA-ANAL-T8 PIC X(15).
07 LA-ANAL-T9 PIC X(15).
05 LA-ANAL-T-CODES REDEFINES LA-ANALS.
07 LA-ANAL-T-CODE PIC X(15)OCCURS 10.
03 LA-VALUES.

SunSystems 4 – Technical Reference Manual Page 274 of 455


* the balances:
05
LA-B-LY-BAL-X.
07 LA-B-LY-BAL PIC S9(15)V999.
* Brought Froward base amount
05 LA-O-LY-BAL-X.
07 LA-O-LY-BAL PIC S9(15)V999.
* Brought Forward other amount
05 LA-B-VALUE-X OCCURS 13.
07 LA-B-VALUE PIC S9(15)V999.
* 13 periods base amount (from la-period to la-period + 12)
05 LA-O-VALUE-X OCCURS 13.
07 LA-O-VALUE PIC S9(15)V999.
* 13 periods other amount (from la-period to la-period + 12)
03 LA-OTHER-DP PIC X.
* number of decimals for ther amounts
03 LA-RECORD-TYPE PIC X.
* ‘C’ = Control Record
* ‘T’ = Transaction Record
*
01 LA-CONTROL-RECORD REDEFINES LA-RECORD.
* the control record for the balance file
03 LA-CONTROL-KEY PIC X(31).
* key is low values
03 LA-HIGHEST-JN PIC 9(07).
* last journal updated to the balance file
03 LA-HIGHEST-TN PIC 9(07).
* transaction number of the last journal to be
* updated to the balance file
03 LA-VERSION PIC 9(03).
* the version number (eg 410)
03 LA-CONSOLIDATION PIC X(10).
* the 10 consolidation flags for T codes
* each is Y or blank
03 LA-LAST-UPDATED.
05 LA-LAST-UPDATE-DATE PIC 9(8).
* date of last successful or empty update
05 LA-LAST-UPDATE-TIME.
* time of last successful or empty update
07 LA-LAST-UPDATE-HH PIC 99.
07 LA-LAST-UPDATE-MM PIC 99.
03 FILLER PIC X(629).
03 LA-CONTROL-RECORD-TYPE PIC X.
03 FILLER PIC X(324).
* ‘C’ = Control Record
* ‘T’ = Transaction Record

SunSystems 4 – Technical Reference Manual Page 275 of 455


The physical and logical record length is the same (1024 bytes):
Logical Record bytes
Key 031
Data 993
____
Total 1024

SunSystems 4 – Technical Reference Manual Page 276 of 455


Balance File Record, see [Link], SQL Table Name SALFBALddd for the Actual Ledger Balance File or
SAbFBALddd where b=Budget Code (B-K)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
LA-ACCOUNT-CODE 001 015 X - ACCNT_CODE char(15) Account Code Mandatory
LA-HASH 016 016 X - - char(16) Hash Key Mandatory
LA-CD 032 001 X - D_C char(1) Debit/Credit Mandatory
Indicator
LA-PERIOD 033 007 X - PERIOD int First Accounting Mandatory
Period
LA-CONV 040 005 X - CONV_CODE char(5) Conversion Code
LA-ANAL-T0 045 015 X - ANAL_T0 char(15) Analysis Code 0
LA-ANAL-T1 060 015 X - ANAL_T1 char(15) Analysis Code 1
LA-ANAL-T2 075 015 X - ANAL_T2 char(15) Analysis Code 2
LA-ANAL-T3 090 015 X - ANAL_T3 char(15) Analysis Code 3
LA-ANAL-T4 105 015 X - ANAL_T4 char(15) Analysis Code 4
LA-ANAL-T5 120 015 X - ANAL_T5 char(15) Analysis Code 5
LA-ANAL-T6 135 015 X - ANAL_T6 char(15) Analysis Code 6
LA-ANAL-T7 150 015 X - ANAL_T7 char(15) Analysis Code 7
LA-ANAL-T8 165 015 X - ANAL_T8 char(15) Analysis Code 8
LA-ANAL-T9 180 015 X - ANAL_T9 char(15) Analysis Code 9
LA-B-LY-BAL 195 018 S 3 LAST_YEAR_BAL_BASE numeric Last Year’s Base
Balance
LA-O-LY-BAL 213 018 S 3 LAST_YEAR_BAL_OTHR numeric Last Year’s Other
Amount Balance
LA-B-VALUE [01] 231 018 S 3 VALUE_1_BASE numeric Period 1 Base Balance
LA-B-VALUE [02] 249 018 S 3 VALUE_2_BASE numeric Period 2 Base Balance
LA-B-VALUE [03] 267 018 S 3 VALUE_3_BASE numeric Period 3 Base Balance
LA-B-VALUE [04] 285 018 S 3 VALUE_4_BASE numeric Period 4 Base Balance
LA-B-VALUE [05] 303 018 S 3 VALUE_5_BASE numeric Period 5 Base Balance
LA-B-VALUE [06] 321 018 S 3 VALUE_6_BASE numeric Period 6 Base Balance
LA-B-VALUE [07] 339 018 S 3 VALUE_7_BASE numeric Period 7 Base Balance
LA-B-VALUE [08] 357 018 S 3 VALUE_8_BASE numeric Period 8 Base Balance
LA-B-VALUE [09] 375 018 S 3 VALUE_9_BASE numeric Period 9 Base Balance
LA-B-VALUE [10] 393 018 S 3 VALUE_10_BASE numeric Period 10 Base
Balance
LA-B-VALUE [11] 411 018 S 3 VALUE_11_BASE numeric Period 11 Base
Balance
LA-B-VALUE [12] 429 018 S 3 VALUE_12_BASE numeric Period 12 Base
Balance
LA-B-VALUE [13] 447 018 S 3 VALUE_13_BASE numeric Period 13 Base
Balance
LA-O-VALUE [01] 465 018 S 3 VALUE_1_OTHER numeric Period 1 Other Amount
Balance
LA-O-VALUE [02] 483 018 S 3 VALUE_2_OTHER numeric Period 2 Other Amount
Balance

SunSystems 4 – Technical Reference Manual Page 277 of 455


Balance File Record, see [Link], SQL Table Name SALFBALddd for the Actual Ledger Balance File or
SAbFBALddd where b=Budget Code (B-K) – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
LA-O-VALUE [03] 501 018 S 3 VALUE_3_OTHER numeric Period 3 Other Amount
Balance
LA-O-VALUE [04] 519 018 S 3 VALUE_4_OTHER numeric Period 4 Other Amount
Balance
LA-O-VALUE [05] 537 018 S 3 VALUE_5_OTHER numeric Period 5 Other Amount
Balance
LA-O-VALUE [06] 555 018 S 3 VALUE_6_OTHER numeric Period 6 Other Amount
Balance
LA-O-VALUE [07] 563 018 S 3 VALUE_7_OTHER numeric Period 7 Other Amount
Balance
LA-O-VALUE [08] 591 018 S 3 VALUE_8_OTHER numeric Period 8 Other Amount
Balance
LA-O-VALUE [09] 609 018 S 3 VALUE_9_OTHER numeric Period 9 Other Amount
Balance
LA-O-VALUE [10] 627 018 S 3 VALUE_10_OTHER numeric Period 10 Other
Amount Balance
LA-O-VALUE [11] 645 018 S 3 VALUE_11_OTHER numeric Period 11 Other
Amount Balance
LA-O-VALUE [12] 663 018 S 3 VALUE_12_OTHER numeric Period 12 Other
Amount Balance
LA-O-VALUE [13] 681 018 S 3 VALUE_13_OTHER numeric Period 13 Other
Amount Balance
LA-OTHER-DP 699 001 X - OTHER_DP char(1) Other Amount Decimal
Places
LA-RECORD-TYPE 700 001 X - - - Record Type Mandatory,
Value ‘T’
FILLER 701 324 X - - - -

SunSystems 4 – Technical Reference Manual Page 278 of 455


Balance File Control Record see [Link], SQL Table Name SABFMSC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - 003 X - D_BASE char(3)
- - - - - A_B char(1)
LA-CONTROL-KEY 001 031 X - - - Key Low-Values
LA-HIGHEST-JN 032 007 X - HIGH_JRNAL char(7) Highest Journal Mandatory
Number
LA-HIGHEST-TN 039 007 X - HIGH_JRNAL_LINE char(7) Highest Line Number Mandatory
LA-VERSION 046 003 X - VERSION char(3) Version Number
LA-CONSOLIDATION 049 010 X - CONSOLIDATION char(10) Balance Consolidation
Indicators
LA-LAST-UPDATE-DATE 059 008 X - LAST_UPDATED char(8) Last Update Date
LA-LAST-UPDATE-HH 067 002 N 0 - - Last Update Hour
LA-LAST-UPDATE-MM 069 002 N 0 - - Last Update Minutes
FILLER 071 629 X - - - -
LA-CONTROL-RECORD-TYPE 700 001 X - - - Record Type Mandatory,
Value ‘C’
LA-UPDATE-IN-PROGRESS 701 001 X - UPDATE_IN_PROGRESS char (1) Update in Progress
FILLER 702 323 X - - - -

SunSystems 4 – Technical Reference Manual Page 279 of 455


The Sales Order File
Description
The Sales Order file holds the current Sales Order Processing data, that is, the Sales Orders
entered into SunBusiness through Sales Order Entry or Sales Order Import. The Invoice details
are also stored on this file, when an order reaches the invoice stage.
Summary of Record Types
There are the following types of record on the Sales Order file:
the Control record
the Order Header record
the Invoice Header record
the Detail record.
There is one Control record (type ‘C’) per file: there is one Header (type ‘O’) record per Order, and
one Header (type ‘I’) record per invoice. There is one Detail (type ‘D’) record per Order/Invoice
line.
Cobol Select...Assign Statement
SELECT ORDER-FILE ASSIGN
M ORDER-FILE-NAME
V * “SOMF_DEM.DAT”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY ORDER-KEY
ALTERNATE RECORD KEY ORDER-ALTERNATE-KEY
MV WITH DUPLICATES
M LOCK MODE MANUAL
V * BLOCK CONTAINS 1024 CHARACTERS
V * RESERVE 8 AREAS
STATUS ORDER-FILE-STATUS.
Cobol File Description (FD)
M FD ORDER-FILE.
V *FD ORDER-FILE VALUE OF ID IS ORDER-FILE-NAME.
01 ORDER-RECORD.
03 ORDER-KEY PIC X(21).
03 ORDER-ALTERNATE-KEY.
05 ORDER-ALTERNATE-KEY-ID PIC X(01).
05 FILLER PIC X(28).
03 ORDER-DATA PIC X(600).

SunSystems 4 – Technical Reference Manual Page 280 of 455


The physical record length on disk (650 bytes) is less than the logical record length within the
programs (1024 bytes):
Logical Record bytes
Physical Record
Primary Key 21
Alternate Key 29
Data 600
____

Total Physical 650


Filler 374
____

Total Logical 1024

SunSystems 4 – Technical Reference Manual Page 281 of 455


Sales Order File Record Descriptions
The Control record, see [Link],SQL table name SOMFMSC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - D_BASE char(3) Database Code Mandatory
OC-TRANS-TYPE 001 001 X - - - Record Type Mandatory,
value ’C’
OC-CONTROL 002 020 X - - - - Always set to
LOW-VALUES
OC-KEY-ID 022 001 X - - - Alternate Key Id Mandatory,
value ’C’
FILLER 023 028 X - - - -
OC-VERSION 051 003 N - VERSION char(3) Version Mandatory,
value 420
OC-LANGUAGE 054 003 X - LANUAGE_CODE char(3) Language Code
FILLER 057 520 X - - - -
FILLER 577 224 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 282 of 455


The Sales Order/Invoice Header record, see [Link],SQL table name SOMFHDRddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
OH-TRANS-TYPE 001 001 X - REC_TYPE char(1) Record Type Mandatory
value ’O’ for
Order Header
‘I’ for
Invoice
Header
FILLER 002 005 X - - - -
- - - - - TRANS_REF char(10) Transaction Reference Mandatory
OH-TRANS-PREF 007 004 X - - - Transaction Ref.
Prefix
OH-TRANS-SUFF 011 006 X - - - Transaction Ref. Mandatory
Suffix
FILLER 017 005 X - - - -
OH-KEY-ID 022 001 X - HEADER_ID char(1) Alternate Key Id Mandatory,
value ’H’
OH-CUSTOMER-CODE 023 010 X - CUST_CODE char(10) Address Code
OH-TRANS-DATE 033 005 N - TRANS_DATE int Transaction Date Mandatory,
PIC 9(8)
COMP-3
FILLER 038 013 X - - - -
- - - - - STATUS char(2) Status 1 & 2 See
below
OH-STATUS-1 051 001 N 0 - - Status 1 Value may be:
0=Awaiting
Picking
3=Awaiting
Despatch
7=Awaiting
Invoice
8=Complete
OH-STATUS-2 052 001 N 0 - - Status 2 Value may be:
1=OrderHeld
else 0
OH-TRANS-CD 053 001 X - TRANS_CD char(1) Credit/Debit Mandatory,
value ’C’ or
’D’
OH-TRANS-CODE 054 005 X - TRANS_CODE char(5) Transaction Type
FILLER 059 005 X - - - -
OH-ORDER-NO 064 010 X - ORDER_NO char(10) Order Number Mandatory
OH-D-NOTE-NO 074 015 X - D_NOTE_NO char(15) Delivery Note Number

SunSystems 4 – Technical Reference Manual Page 283 of 455


The Sales Order/Invoice Header record, see [Link],SQL table name SOMFHDRddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
OH-DELIVERY-CODE 089 010 X - DELIV_ADD char(10) Delivery Address Code
OH-DATE-ORDER 099 008 N 0 ORDER_DATE int Order Date Mandatory
OH-DATE-ACKNOWLEDGED 107 008 N 0 ACK_DATE int Acknowledgement Date
OH-DATE-PICKED 115 008 N 0 PICK_DATE int Picking Date
OH-DATE-DELIVERED 123 008 N 0 DEL_DATE int Delivery Date
OH-DATE-INVOICED 131 008 N 0 INV_DATE int Invoice Date
OH-PERIOD-INVOICED 139 007 N 0 INV_PRD int Invoice Period
OH-CUSTOMER-REF 146 025 X - CUST_REF char(25) Customer Reference
OH-COMMENTS 171 025 X - COMMENTS char(25) Comments
OH-TRANS-VALUE 196 010 S 5 TRANS_VAL numeric Transaction Value PICS 9(13)
V99999 COMP-3
OH-PAYMENT-DUE-DATE 206 008 X - PAY_DATE char(8) Payment Due Date May be
relative date
e.g.+12
OH-ANALYSIS-ADDRESS 214 001 X - ANAL_ADD char(1) Address Analysis
OH-LINKED-TEXT 215 001 X - LINKED_TEXT char(1) Linked Text Flag
OH-ANALYSIS-CODE-0 216 015 X - ANAL_M0 char(15) Analysis Code 0
OH-ANALYSIS-CODE-1 231 015 X - ANAL_M1 char(15) Analysis Code 1
OH-ANALYSIS-CODE-2 246 015 X - ANAL_M2 char(15) Analysis Code 2
OH-ANALYSIS-CODE-3 261 015 X - ANAL_M3 char(15) Analysis Code 3
OH-ANALYSIS-CODE-4 276 015 X - ANAL_M4 char(15) Analysis Code 4
OH-ANALYSIS-CODE-5 291 015 X - ANAL_M5 char(15) Analysis Code 5
OH-ANALYSIS-CODE-6 306 015 X - ANAL_M6 char(15) Analysis Code 6
OH-ANALYSIS-CODE-7 321 015 X - ANAL_M7 char(15) Analysis Code 7
OH-ANALYSIS-CODE-8 336 015 X - ANAL_M8 char(15) Analysis Code 8
OH-ANALYSIS-CODE-9 351 015 X - ANAL_M9 char(15) Analysis Code 9
OH-QUOTE-CONVERT 366 001 X - QUOTE_CONVERT char(1) Convert Quote
OH-QUOTE-PRINT 367 001 X - QUOTE_PRINT char(1) Print Quote
OH-QUOTE-EXPIRY-DATE 368 008 N 0 QUOTE_EXPIRY_DATE int Quote Expiry Date
OH-PERIOD-QUOTED 376 007 N 0 PERIOD_QUOTED int Period Quoted
FILLER 383 005 X - - - -
OH-QUOTATION-REF 388 010 X - QUOTATION_REF char(10) Quotation Reference
OH-DATE-QUOTED 398 008 N 0 DATE_QUOTED int Quotation Date
OH-VOID-STATUS 406 001 X VOID_STATUS char(1) Values 0, 1 or 2
OH-EXTRA-CUST-CODE1 407 010 X EX_CUST_CODE_1 char(10) Sales Order Header;
Additional Data
OH-EXTRA-CUST-CODE2 417 010 X EX_CUST_CODE_2 char(10) Sales Order Header;
Additional Data
OH-EXTRA-TEXT1 427 030 X EX_TEXT1 char(30) Sales

SunSystems 4 – Technical Reference Manual Page 284 of 455


The Sales Order/Invoice Header record, see [Link],SQL table name SOMFHDRddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
OH-EXTRA-TEXT2 457 030 X EX_TEXT2 char(30) Sales
OH-EXTRA-TEXT3 487 015 X EX_TEXT3 char(15) Sales
OH-EXTRA-TEXT4 502 015 X EX_TEXT4 char(15) Sales
OH-EXTRA-TEXT5 517 015 X EX_TEXT5 char(15) Sales
OH-EXTRA-TEXT6 532 010 X EX_TEXT6 char(10) Sales
OH-EXTRA-TEXT7 542 010 X EX_TEXT7 char(10) Sales
OH-EXTRA-VALUE1 552 010 S EX_VAL1 Numeric Sales
OH-EXTRA-VALUE2 562 010 S EX_VAL2 Numeric Sales
OH-EXTRA-VALUE3 572 010 S EX_VAL3 Numeric Sales
FILLER 582 443 -

SunSystems 4 – Technical Reference Manual Page 285 of 455


The Sales Order/Invoice Detail record, see [Link], SQL table name SOMFDETddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SD-TRANS-TYPE 001 001 X REC_TYPE char(1) Record Type Mandatory,
value ’D’
FILLER 002 005 X - - -
- - - - - TRANS_REF char(10) Transaction Reference Mandatory
SD-TRANS-PREF 007 004 X - - - Transaction Ref.
Prefix
SD-TRANS-SUFF 011 006 X - - - Transaction Ref. Mandatory
Suffix
- - - - - TRANS_LINE char(5) Transaction line Mandatory
Number
SD-TRANS-LINE-NUMBER 017 003 N - - - Transaction Line No. Mandatory
Prefix
SD-TRANS-LINE-SUFF 020 002 X - - - Transaction Line No. Value ’A’ to
Suffix ’Z’ for
descriptive
lines else
Space or
numeric
SD-KEY-ID 022 001 X - DETAIL_ID char(1) Alternate Key Id Value ’D’ for
Detail record
or ’A’ for
Descriptive
record
SD-LOCATION 023 005 X - LOCATION char(5) Location Code
SD-ITEM-CODE 028 015 X - ITEM_CODE char(15) Item Code
SD-TRANS-DATE 043 005 N - DUE_DATE int Transaction Date PIC 9(8)
COMP-3
SD-SEQUENCE 048 003 N - - - - PIC 9(4)
COMP-3.
- - - - - STATUS char (2) Status 1 & 2 See below
SD-STATUS-1 051 001 N - - - Status 1 Value may be:
0=Awaiting
Picking
1=Picked but
no stock
3=Awaiting
Despatch
7=Awaiting
Invoice
8=Complete

SunSystems 4 – Technical Reference Manual Page 286 of 455


The Sales Order/Invoice Detail record, see [Link], SQL table name SOMFDETddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SD-STATUS-2 052 001 N - - - Status 2 Value may be:
0=Process
complete
5=Allocated
balance
updated
6=Picked
SD-TRANS-CD 053 001 X - TRANS_CD char(1) Creditor Debit Mandatory,
value ’C’ or
’D’
SD-ITEM-DESCRIPTION 054 030 X - DESCRIPTN char(30) Item Description
SD-VALUE-1 084 010 S - VALUE_1 numeric Value of Calculation PICS 9(13)
Code V9(5) COMP-3
SD-VALUE-2 094 010 S - VALUE_2 numeric Value of Calculation PICS 9(13)
Code 2 V9(5) COMP-3
SD-VALUE-3 104 010 S - VALUE_3 numeric Value of Calculation PICS 9(13)
Code 3 V9(5) COMP-3
SD-VALUE-4 114 010 S - VALUE_4 numeric Value of Calculation PICS 9(13)
Code 4 V9(5) COMP-3
SD-VALUE-5 124 010 S - VALUE_5 numeric Value of Calculation PICS 9(13)
Code 5 V9(5) COMP-3
SD-VALUE-6 134 010 S - VALUE_6 numeric Value of Calculation PICS 9(13)
Code 6 V9(5) COMP-3
SD-VALUE-7 144 010 S - VALUE_7 numeric Value of Calculation PICS 9(13)
Code 7 V9(5) COMP-3
SD-VALUE-8 154 010 S - VALUE_8 numeric Value of Calculation PICS 9(13)
Code 8 V9(5) COMP-3
SD-VALUE-9 164 010 S - VALUE_9 numeric Value of Calculation PICS 9(13)
Code 9 V9(5) PICS
9(13) V9(5)
COMP.
SD-VALUE-10 174 010 S - VALUE_10 numeric Value of Calculation PICS 9(13)
Code 10 V9(5) PICS
9(13) V9(5)
COMP.

SunSystems 4 – Technical Reference Manual Page 287 of 455


The Sales Order/Invoice Detail record, see [Link], SQL table name SOMFDETddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SD-VALUE-11 184 010 S - VALUE_11 numeric Value of Calculation PICS 9(13)
Code 11 V9(5) PICS
9(13) V9(5)
COMP.
SD-VALUE-12 194 010 S - VALUE_12 numeric Value of Calculation PICS 9(13)
Code 12 V9(5) PICS
9(13) V9(5)
COMP.
SD-VALUE-13 204 010 S - VALUE_13 numeric Value of Calculation PICS 9(13)
Code 13 V9(5) PICS
9(13) V9(5)
COMP.
SD-VALUE-14 214 010 S - VALUE_14 numeric Value of Calculation PICS 9(13)
Code 14 V9(5) PICS
9(13) V9(5)
COMP.
SD-VALUE-15 224 010 S - VALUE_15 numeric Value of Calculation PICS 9(13)
Code 15 V9(5) PICS
9(13) V9(5)
COMP.
SD-VALUE-16 234 010 S - VALUE_16 numeric Value of Calculation PICS 9(13)
Code 16 V9(5) PICS
9(13) V9(5)
COMP.
SD-VALUE-17 244 010 S - VALUE_17 numeric Value of Calculation PICS 9(13)
Code 17 V9(5) PICS
9(13) V9(5)
COMP.
SD-VALUE-18 254 010 S - VALUE_18 numeric Value of Calculation PICS 9(13)
Code 18 V9(5) PICS
9(13) V9(5)
COMP.
SD-VALUE-19 264 010 S - VALUE_19 numeric Value of Calculation PICS 9(13)
Code 19 V9(5) PICS
9(13) V9(5)
COMP.
SD-VALUE-20 264 010 S - VALUE_20 numeric Value of Calculation PICS 9(13)
Code 20 V9(5) PICS
9(13) V9(5)
COMP.

SunSystems 4 – Technical Reference Manual Page 288 of 455


The Sales Order/Invoice Detail record, see [Link], SQL table name SOMFDETddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SD-TRANS-CODE 284 005 X - TRANS_TYPE char(5) Transaction Type
SD-DATE-DELIVERED 289 008 N - DEL_DATE int Delivery Date
SD-DATE-INVOICED 297 008 N - INV_DATE int Invoice date
SD-PERIOD-ORDERED 305 007 N - ORD_PRD int Period Ordered
SD-PERIOD-INVOICED 312 007 N - INV_PRD int Period Invoiced
SD-UNIT-SALE 319 005 X - UNIT_SALE char(5) Unit of Sale Code
FILLER 324 005 X - - - -
SD-INVOICE-NO 329 010 X - INV_NO char(10) Invoice Number
SD-ACK-PRINT 339 001 X - ACK_PRINT char(1) Acknowledgement Print
Indic’r
SD-MISC-PRINT 340 001 X - MISC_PRINT char(1) Miscellaneous Print
Indicator
SD-ALLOCATION-REF 341 019 X - ALLOC_REF char(19) Allocation Reference
SD-RECPT-REF 360 015 X - RECPT_REF char(15) Receipt Reference
SD-LINE-ANAL-IND 375 001 X - LINE_ANAL char(1) Analysis by Line
SD-ACCOUNT-CODE 376 015 X - ACCNT_CODE char(15) Account Code
SD-ASSET-CODE 391 010 X - ASSET_CODE char(10) Asset Code
SD-ASSET-SUB-CODE 401 005 X - ASS_SUB_CODE char(5) Asset Sub-Code
SD-ASSET-IND 406 001 X - ASSET_IND char(1) Asset Marker
SD-ID-ENTERED 407 003 X - ID_ENTERED char(3) Entered Id
SD-ID-INVOICED 410 003 X - ID_INVOICED char(3) Invoiced Id
SD-LINKED-TEXT 413 001 X - LINKED_TEXT char(1) Linked Text Flag
SD-ANALYSIS-CODE-0 414 015 X - ANAL_M0 char(15) Analysis Code 1
SD-ANALYSIS-CODE-1 429 015 X - ANAL_M1 char(15) Analysis Code 2
SD-ANALYSIS-CODE-2 444 015 X - ANAL_M2 char(15) Analysis Code 3
SD-ANALYSIS-CODE-3 459 015 X - ANAL_M3 char(15) Analysis Code 4
SD-ANALYSIS-CODE-4 474 015 X - ANAL_M4 char(15) Analysis Code 5
SD-ANALYSIS-CODE-5 489 015 X - ANAL_M5 char(15) Analysis Code 6
SD-ANALYSIS-CODE-6 504 015 X - ANAL_M6 char(15) Analysis Code 7
SD-ANALYSIS-CODE-7 519 015 X - ANAL_M7 char(15) Analysis Code 8
SD-ANALYSIS-CODE-8 534 015 X - ANAL_M8 char(15) Analysis Code 9
SD-ANALYSIS-CODE-9 549 015 X - ANAL_M9 char(15) Analysis Code 10
SD-ASSEMBLY-IND 564 001 X - ASSEMBLY_IND char(1) Assembly Indicators
SD-ASSEMBLY-DESC-IND 565 001 X - ASSEMBLY_DESC char(1) Assembly Description
Line

SunSystems 4 – Technical Reference Manual Page 289 of 455


The Sales Order/Invoice Detail record, see [Link], SQL table name SOMFDETddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SD-ASSEMBLY-LEVEL-IND 566 001 X - ASSEMBLY_LEVEL char(1) Assembly Level
Indicator
SD-PRICE-BOOK 567 005 X - PRICE_BOOK char(5) Name of price book
SD-SALES-QTY-VALUE 572 002 N - SALE_QTY_VALUE int (2) Pointer to Sales
Quantity Value
SD-STOCK-QTY-VALUE 574 002 N - STK_QTY_VALUE int (2) Pointer to Stock
Quantity Value
SD-TOTAL-VALUE 576 002 N - TOT_VALUE int (2) Pointer to Credit
Balance Value
SD-DISPLAY-VALUE-1 578 002 N - DISP_VAL_1 int (2) Pointer to display
value 1
SD-DISPLAY-VALUE-2 580 002 N - DISP_VAL_2 int (2) Pointer to display
value 2
SD-DISPLAY-VALUE-3 582 002 N - DISP_VAL_3 int( 2) Pointer to display
value 3
SD-MISC-DOC-PRINT 584 005 X - MISC_DOC_PRINT_1 char(1) Miscellaneous reprint
flags the table size
is 1 bytes by 5
- - - - - MISC_DOC_PRINT_2 char(1) -
- - - - - MISC_DOC_PRINT_3 char(1) -
- - - - - MISC_DOC_PRINT_4 char(1) -
- - - - - MISC_DOC_PRINT_5 char(1) -
SD-D-NOTE-NO 589 010 X - D_NOTE_NO char(10) Despatch Note Number
SD-AUDIT-DATE 599 005 S - AUDIT_DATE int Audit Date
FILLER 604 401 - - - - -

SunSystems 4 – Technical Reference Manual Page 290 of 455


The Movement File
Description
The Movement file holds the current Inventory Movements that have been posted into
SunBusiness Inventory Control.
Summary of Record Types
There are the following types of record on the Movement file:
the Control record
the Movement record
the Summary record.
There is one Control record (type ‘C’) per file: there is one Movement (type ‘M’) record for each
movement line posted in Movement Entry or Movement Import, or through Sales or Purchase
Order Processing. There is one Summary or Usage (type ‘S’) record for every balance created by
the Inventory Control Period Cleardown. When the Movement file is first created, by using the File
Create function, if Serial Number Tracking is set on the Business Definition for that database,
then a Serial Number Tracking file is also created. This is a simple index file which holds
information which links the Item Code and Serial Number with the Movement record on the
Movement file.
Cobol Select...Assign Statement
SELECT MOVEMENT-FILE ASSIGN
M MOVEMENT-FILE-NAME
V * “SMMF_DEM.DAT”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY MOVEMENT-KEY
ALTERNATE RECORD KEY MOVEMENT-ALTERNATE-KEY
P MV WITH DUPLICATES
M LOCK MODE MANUAL
V * BLOCK CONTAINS 1024 CHARACTERS
V * RESERVE 8 AREAS
STATUS MOVEMENT-FILE-STATUS.
SELECT SERIAL-TRACKING-FILE ASSIGN
M SERIAL-TRACKING-FILE-NAME
V * “SMSI_DEM.DAT”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY SERIAL-TRACKING-KEY
M LOCK MODE MANUAL
V * BLOCK CONTAINS 512 CHARACTERS
V * RESERVE 8 AREAS
STATUS SERIAL-TRACKING-FILE-STATUS.

SunSystems 4 – Technical Reference Manual Page 291 of 455


Cobol File Description (FD)
M FD
MOVEMENT-FILE.
V *FD MOVEMENT-FILE VALUE OF ID IS MOVEMENT-FILE-NAME.
01 MOVEMENT-RECORD.
03 MOVEMENT-KEY PIC X(20).
03 MOVEMENT-ALTERNATE-KEY.
05 MOVEMENT-ALTERNATE-KEY-ID PIC X(01).
05 FILLER PIC X(05).
05 MOVEMENT-ITEM-CODE PIC X(15).
05 FILLER PIC X(08).
03 MOVEMENT-DATA.
05 FILLER PIC X(13).
05 MOVEMENT-RECPT-REF PIC X(15).
05 FILLER PIC X(373).
M FD SERIAL-TRACKING-FILE.
V *FD SERIAL-TRACKING-FILE VALUE OF ID IS
V * SERIAL-TRACKING-FILE-NAME.
01 SERIAL-TRACKING-RECORD.
03 SERIAL-TRACKING-KEY.
05 SERIAL-ITEM-CODE PIC X(15).
05 SERIAL-RECPT-REF PIC X(15).
* Serial Number
03 SERIAL-TRACKING-DATA PIC X(20).
* Primary key of Movement File

The physical record length of the Movement file is on disk (450 bytes) less than the logical record
length within the programs (1024 bytes):
Logical Record bytes
Physical Record
Primary Key 20
Alternate Key 29
Data 401
____

Total Physical 450


Filler 574
____

Total Logical 1024

SunSystems 4 – Technical Reference Manual Page 292 of 455


Movement File Record Descriptions
The Control record, see [Link],SQL table name SMMFMSC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - D_BASE char(3) Database Code Mandatory
MC-REC-TYPE 001 001 X - - - Record Type Mandatory,
value ’C’
MC-CONTROL 002 019 X - - - - Always set to
LOW-VALUES
MC-KEY-ID 021 001 X - - - Alternate Key Id Mandatory,
value ’C’
FILLER 022 028 X - - - -
MC-VERSION 050 003 N - VERSION char(3) Version Mandatory,
value 420
MC-HIGHEST-BATCH 053 005 N - HIGH_BATCH char(5) Highest Batch Number
MC-HIGHEST-USAGE 058 009 N - HIGH_USAGE char(9) Highest Usage Number
MC-LANGUAGE 067 003 X - LANGUAGE_CODE char(3) - Not used at
version 4.2
FILLER 070 731 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 293 of 455


The Movement/Summary record, see [Link],SQL table name SMMFMOVddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
MM-REC-TYPE 001 001 X - REC_TYPE char(1) Record Type Mandatory,
value ’M’ for
Movement
S’ for
Summary
If record type is ’M’: -
MM-MVT-REF 002 015 X - MVMNT_REF char(15) Movement Reference Mandatory
MM-MVT-LINE-NO 017 004 N - MVMNT_LINE char(4) Movement Line No. Mandatory
Else if record type is -
’S’:
MM-PERIOD 002 007 N - - - Period Summarised
MM-USAGE-NUMBER 009 009 N - - - Usage Number
MM-EXTRA-USAGE-CHAR 018 001 X - - - Extra Usage Char.
FILLER 019 002 X - - - -
MM-KEY-ID 021 001 X - MM_KEY_ID char(1) Alternate Key Id Mandatory,
value ’D’
MM-LOCATION 022 005 X - LOCATION char(5) Location Code Mandatory,
may be spaces
MM-ITEM-CODE 027 015 X - ITEM_CODE char(15) Item Code Mandatory
MM-MVT-DATE 042 005 N - MVMNT_DATE int Movement Date PIC 9(8)
COMP-3
MM-SEQUENCE 047 003 N - SEQUENCE int Minutes since PIC 9(4)
midnight COMP-3
- - - - STATUS char(2) Status 1 & 2 See
below
MM-STATUS-1 050 001 N - - - Status 1 0=Awaiting
movement
Document
8=Complete
MM-STATUS-2 051 001 N - - - Status 2 0=Process
Complete
3=Reserved
(Receipts
only)
5=Awaiting
allocation
MM-RI-IND 052 001 X - RI_IND char(1) Receipt/Issue ’R’ for
Indicator Receipt,
‘I’ for Issue
MM-BATCH-NO 053 005 N - BATCH_NO char(5) Batch Number
MM-BATCH-LINE-NO 058 005 N - BATCH_LINE char 5) Batch Line Number
MM-RECPT-REF 063 015 X - RECPT_REF char(15) Receipt Reference

SunSystems 4 – Technical Reference Manual Page 294 of 455


The Movement/Summary record, see [Link],SQL table name SMMFMOVddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
MM-MVT-QTY 078 010 S - QUANTITY numeric Quantity PICS 9(13)
V99999 COMP-3
MM-VALUE-1 088 010 S - STD_VALUE numeric Value at Stand’d Cost PICS 9(13)
V99999 COMP-3
MM-VALUE-2 098 010 S - LAT_VALUE numeric Value at Latest Cost PICS 9(13)
V99999 COMP-3
MM-VALUE-3 108 010 S - AVE_VALUE numeric Value at Average Cost PICS 9(13)
V99999 COMP-3
FILLER 118 001 X - - - -
MM-PERIOD-POSTED 119 007 N - PERIOD int Period Posted
MM-UNIT-STOCK 126 005 X - UNITS char(5) Unit of Stock
MM-MVT-CODE 131 005 X - MVMNT_TYPE char(5) Movement Type
MM-UPDATE-PHYSICAL 136 001 X - UPDTE_PHYS char(1) Update Physical Stock
MM-UPDATE-ON-ORDER 137 001 X - UPDTE_ORDR char(1) Update On-order
Balance
MM-ALLOCATION-REF 138 020 X - ALLOC_REF char(20) Allocation Reference
MM-AUDIT-DATE 158 005 N - AUDIT_DATE int Audit Date PIC 9(8)
COMP-3
MM-SERIAL-NO-INDEX 163 001 X - SERIAL_IDX char(1) Serial Number
MM-LINKED-TEXT 164 001 X - LINKED_TEXT char(1) Linked Text Flag
MM-ID-ENTERED 165 003 X - ID_ENTERED char(3) User Id
MM-ID-ALLOCATED 168 003 X - ID_ALLOC char(3) Allocated Id
MM-ACCOUNT-CODE 171 015 X - ACCNT_CODE char(15) Account Code
MM-ASSET-CODE 186 010 X - ASSET_CODE char(10) Asset Code
MM-ASSET-SUB-CODE 196 005 X - ASSET_SUB char(5) Asset Sub-Code
MM-ANALYSIS-CODE-0 201 015 X - ANAL_M0 char(15) Analysis Code 0
MM-ANALYSIS-CODE-1 216 015 X - ANAL_M1 char(15) Analysis Code 1
MM-ANALYSIS-CODE-2 231 015 X - ANAL_M2 char(15) Analysis Code 2
MM-ANALYSIS-CODE-3 246 015 X - ANAL_M3 char(15) Analysis Code 3
MM-ANALYSIS-CODE-4 261 015 X - ANAL_M4 char(15) Analysis Code 4
MM-ANALYSIS-CODE-5 276 015 X - ANAL_M5 char(15) Analysis Code 5
MM-ANALYSIS-CODE-6 291 015 X - ANAL_M6 char(15) Analysis Code 6
MM-ANALYSIS-CODE-7 306 015 X - ANAL_M7 char(15) Analysis Code 7
MM-ANALYSIS-CODE-8 321 015 X - ANAL_M8 char(15) Analysis Code 8
MM-ANALYSIS-CODE-9 336 015 X - ANAL_M9 char(15) Analysis Code 9
MM-PO-LINE-NO-A 351 003 N - ORIG_LINE_NO char(4) Original PO number
MM-PO-LINE-NO-B 354 001 X - - - Original PO Value
MM-PO-VALUE 355 010 S - PO_VALUE numeric - PICS 9(13)
V9(5) COMP-3.
FILLER 365 436 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 295 of 455


The Stock Take File
Description
The Stock Take file holds the current stock take information, that is, values of stock by item code
and location. Also stored here are the new values of stock calculated when a stock check is run,
and the differences found.
Summary of Record Types
There are the following types of record on the Stock Take file:
the Control record
the Header record
the Detail record.
There is one Control record (type ‘C’) per file: there is one Header (type ‘H’) record per Stock
Take run, and there is one Detail (type ‘D’) record per item being stock checked.
Cobol Select...Assign Statement
SELECT STOCK-TAKE-FILE ASSIGN
M STOCK-TAKE-FILE-NAME
V * “SMKF_DEM.DAT”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY STOCK-KEY
ALTERNATE RECORD KEY STOCK-ALT-KEY
WITH DUPLICATES
M LOCK MODE MANUAL
V * BLOCK CONTAINS 1024 CHARACTERS
V * RESERVE 8 AREAS
STATUS STOCK-TAKE-FILE-STATUS.

Cobol File Description (FD)


M FD STOCK-TAKE-FILE.
V *FD STOCK-TAKE-FILE VALUE OF ID IS STOCK-TAKE-FILE-NAME.
01 STOCK-TAKE-RECORD.
03 STOCK-KEY PIC X(056).
03 STOCK-ALT-KEY PIC X(021).
03 STOCK-DATA PIC X(473).

SunSystems 4 – Technical Reference Manual Page 296 of 455


The physical record length of the Stock Take file is on disk (550 bytes) less than the logical record
length within the programs (1024 bytes):
Logical Record bytes
Physical Record
Primary Key 56
Alternate Key 21
Data 473
____

Total Physical 550


Filler 474
____

Total Logical 1024

SunSystems 4 – Technical Reference Manual Page 297 of 455


Stock Take File Record Descriptions
The Control record, see [Link],SQL table name SMKFMSC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - D_BASE char(3) Database Code Mandatory
TC-REC-TYPE 001 001 X - - - Record Type Mandatory,
value ’C’
FILLER 002 055 X - - - - Always set to
all ’0’
TC-KEY-ID 057 001 X - - - Alternate Key Id Mandatory,
value ’C’
FILLER 058 020 X - - - -
TC-VERSION-NO 078 003 N - TC_VERSION char(3) Version Mandatory,
value 420
TC-NEXT-STOCK-TAKE-NO 081 005 N - NEXT_STOCK_TAKE_NO char(5) Next Stock Take
Number
FILLER 086 715 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 298 of 455


The Control record, see [Link],SQL table name SMKFMSC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - D_BASE char(3) Database Code Mandatory
TC-REC-TYPE 001 001 X - - - Record Type Mandatory,
value ’C’
FILLER 002 055 X - - - - Always set to
all ’0’
TC-KEY-ID 057 001 X - - - Alternate Key Id Mandatory,
value ’C’
FILLER 058 020 X - - - -
TC-VERSION-NO 078 003 N - TC_VERSION char(3) Version Mandatory,
value 420
TC-NEXT-STOCK-TAKE-NO 081 005 N - NEXT_STOCK_TAKE_NO char(5) Next Stock Take
Number
FILLER 086 715 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 299 of 455


The Stock Take Header record, see [Link],SQL table name SMKFHDRddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
TH-REC-TYPE 001 001 X - - - Record Type Mandatory,
value ’H’
TH-STOCK-TAKE-NO 002 005 N - STOCK_TAKE_NO char(5) Stock Take Number Mandatory
FILLER 007 050 X - - - -
TH-KEY-ID 057 001 X - - - Alternate Key Id Mandatory,
value ’H’
FILLER 058 020 X - - - -
TH-PERIOD-EXTRACTED 078 007 N - PERIOD_EXTRACTED int Period Extracted
TH-STOCK-TAKE-CODE 085 005 X - STOCK_TAKE_CODE char(5) Stock Take Code
TH-STOCK-TAKE-SEQ 090 004 X - STOCK_TAKE_SEQ char(4) Stock Take Sequence Internally
generated no.
TH-OPERATOR-ID 094 003 X - OPERATOR_ID char (3) Operator Id
TH-STOCK-TAKE-DATE 097 005 N - STOCK_TAKE_DATE int Stock Take Date Mandatory,
PIC 9(8)
COMP-3
TH-ANALYSIS-CATEGORY 102 002 X - ANALYSIS_CATEGORY char 2) Analysis Category
FILLER 104 697 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 300 of 455


The Stock Take Detail record, see [Link],SQL table name SMKFDETddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
TD-REC-TYPE 001 001 X - - - Record Type Mandatory,
value ’D’
TD-STOCK-TAKE-NO 002 005 N - STOCK_TAKE_NO char(5) Stock Take Number Mandatory
TD-COMPOSITE-KEY 007 050 X - COMPOSITE_KEY char(50) Composite data fields
TD-KEY-ID 057 001 X - - - Alternate Key Id Mandatory,
value ’D’
TD-ITEM-CODE 058 015 X - ITEM_CODE char(15) Item Code
TD-LOCATION-CODE 073 005 X - LOCATION_CODE char(5) Location Code
TD-ANALYSIS-CODE 078 015 X - ANALYSIS_CODE char(15) Analysis Code
TD-STOCK-TAKE-CODE 093 005 X - STOCK_TAKE_CODE char(5) Stock Take Code
TD-STOCK-TAKE-LINE-NO 098 004 N - STOCK_TAKE_LINE_NO char(4) Stock Take Line
Number
TD-RECEIPT-REFERENCE 102 015 X - RECEIPT_REFERENCE char(15) Receipt Reference
TD-OPERATOR-ENTER 117 003 X - OPERATOR_ENTER char(3) Not used at version
4.2
TD-OPERATOR-APPROVED 120 003 X - OPERATOR_APPROVED char(3) Not used at version
4.2
TD-OPERATOR-POSTED 123 003 X - OPERATOR_POSTED char(3) Not used at version
4.2
TD-PERIOD-POSTED 126 007 N - PERIOD_POSTED int Period Posted
TD-ORIGINAL-QTY 133 010 S - ORIGINAL_QTY numeric Original Quantity PICS 9(13)
V99999 COMP-3
TD-ORIGINAL-VALUE-1 143 010 S - ORIGINAL_VALUE_1 numeric Original Value 1 PICS 9(13)
V99999 COMP-3
TD-ORIGINAL-VALUE-2 153 010 S - ORIGINAL_VALUE_2 numeric Original Value 2 PICS 9(13)
V99999 COMP-3
TD-ORIGINAL-VALUE-3 163 010 S - ORIGINAL_VALUE_3 numeric Original Value 3 PICS 9(13)
V99999 COMP-3
TD-VARIANCE-QTY 173 010 S - VARIANCE_QTY numeric Variance Quantity PICS 9(13)
V99999 COMP-3
TD-VARIANCE-VALUE-1 183 010 S - VARIANCE_VALUE_1 numeric Variance Value 1 PICS 9(13)
V99999 COMP-3
TD-VARIANCE-VALUE-2 193 010 S - VARIANCE_VALUE_2 numeric Variance Value 2 PICS 9(13)
V99999 COMP-3
TD-VARIANCE-VALUE-3 203 010 S - VARIANCE_VALUE_3 numeric Variance Value 3 PICS 9(13)
V99999 COMP-3
TD-REPORT-COST 213 003 X - REPORT_COST char(3) Report Cost
TD-UNIT-OF-STOCK 216 005 X - UNIT_OF_STOCK char(5) Unit of Stock
TD-MOVEMENT-CODE 221 005 X - MOVEMENT_CODE char(5) Movement Code
TD-UPDATE-PHYSICAL 226 001 X - UPDATE_PHYSICAL char (1) Update Physical
Balance

SunSystems 4 – Technical Reference Manual Page 301 of 455


The Stock Take Detail record, see [Link],SQL table name SMKFDETddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
TD-UPDATE-ON-ORDER 227 001 X - UPDATE_ON_ORDER char(1) Update On-order
Balance
TD-AUDIT-DATE 228 005 N - AUDIT_DATE int Audit Date PIC 9(8)
COMP-3
TD-ACCOUNT-CODE 233 015 X - ACCOUNT_CODE char(15) Account Code
TD-ASSET-CODE 248 010 X - ASSET_CODE char(10) Asset Code
TD-ASSET-SUB-CODE 258 005 X - ASSET_SUB_CODE char(5) Asset Sub-Code
TD-STATUS 263 001 X - STATUS char(1) Status
Value may be: -
TD-CLEAR-ON-ORDER 264 001 X - CLEAR_ON_ORDER char(1) Clear On-order
Balance
TD-CNV-RATE-2 265 010 N - CNV_RATE_2 numeric Conversion Rate 2 PIC 9(9)
V9(9) COMP-3
TD-CNV-RATE-OP2 275 001 X - CNV_RATE_OP2 char(1) Conversion 2 Operator
’*’ or ’/’
TD-CNV-OTHER-DP2 276 001 X - CNV_OTHER_DP2 char(1) Conversion 2 No. d.p.
TD-CNV-RATE-3 277 010 N - CNV_RATE_3 numeric Conversion Rate 3 PIC 9(9)
V9(9) COMP-3
TD-CNV-RATE-OP3 287 001 X - CNV_RATE_OP3 char(1) Conversion 3 Operator
’*’ or ’/’
TD-CNV-OTHER-DP3 288 001 X - CNV_OTHER_DP3 char(1) Conversion 3 No. d.p.
TD-COST-1 289 010 S - COST_1 numeric Cost Value 1 PICS 9(13)
V99999 COMP-3
TD-COST-2 299 010 S - COST_2 numeric Cost Value 2 PICS 9(13)
V99999 COMP-3
TD-COST-3 309 010 S - COST_3 numeric Cost Value 3 PICS 9(13)
V99999 COMP-3
TD-MVT-ANALYSIS-CODE-0 319 015 X - ANAL_M0 char(15) Analysis Code 0
TD-MVT-ANALYSIS-CODE-1 334 015 X - ANAL_M1 char(15) Analysis Code 1
TD-MVT-ANALYSIS-CODE-2 349 015 X - ANAL_M2 char(15) Analysis Code 2
TD-MVT-ANALYSIS-CODE-3 364 015 X - ANAL_M3 char(15) Analysis Code 3
TD-MVT-ANALYSIS-CODE-4 379 015 X - ANAL_M4 char(15) Analysis Code 4
TD-MVT-ANALYSIS-CODE-5 394 015 X - ANAL_M5 char(15) Analysis Code 5
TD-MVT-ANALYSIS-CODE-6 409 015 X - ANAL_M6 char(15) Analysis Code 6
TD-MVT-ANALYSIS-CODE-7 424 015 X - ANAL_M7 char(15) Analysis Code 7
TD-MVT-ANALYSIS-CODE-8 439 015 X - ANAL_M8 char(15) Analysis Code 8
TD-MVT-ANALYSIS-CODE-9 454 015 X - ANAL_M9 char(15) Analysis Code 9
TD-BIN-NAME 469 015 X - BIN_NAME char(15) Bin Name
FILLER 484 317 X - - - -
FILLER 801 224 X - - - -

SunSystems 4 – Technical Reference Manual Page 302 of 455


The Purchase Order File
Description
The Purchase Order file holds details of the current purchase orders, goods received notes, and
purchase invoices that have been entered into SunBusiness through the Purchase Order
Processing module.
Summary of Record Types
There are the following types of record on the Purchase Order file:
the Control record
the Purchase Order Header record
the Goods Received Note Header record
the Purchase Invoice Header record
the Detail record
There is one Control record (type ‘C’) per file: there is one Purchase Order Header (type ‘J’)
record per Purchase Order created in the Purchase Order Entry function. A Purchase Order
Header record is also created when entering Purchase Invoice for which the corresponding Order
does not already exist. There is a Goods Received Note (GRN) Header (type ‘K’) record for every
GRN entered into the system. There is a Purchase Invoice Header (type ‘L’) record per Invoice
entered into the system through Purchase Invoice Entry or Invoice Matching.
The Detail (type ‘S’) records are shared by the various headers; a Detail record exists for every
Order/Invoice/GRN line. M,O and P records are exact duplicates of the detail (type ‘S’) record
layout. The details on the ‘M’ type record are created if there is any amendments to the detail
record between the order being issued and before the GRN being approved and released, i.e. this
shows that the details at order (issued). The ‘O’ type record is created if any amendment is made
after the detail has been approved (released) in GRN and before the unapproved stage in
invoicing (matched, released), i.e. this shows the detail as it was at GRN approved release stage.
Type ‘P’ is created when there is an amendment to the detail record between the unapproved and
approved stages.
Cobol Select...Assign Statement
SELECT POP-FILE ASSIGN
M POP-FILE-NAME
V * “SPMF_DEM.DAT”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY POP-KEY
ALTERNATE RECORD KEY POP-ALTERNATE-KEY-1
P WITH DUPLICATES
ALTERNATE RECORD KEY POP-ALTERNATE-KEY-2 WITH DUPLICATES
M LOCK MODE MANUAL
V * BLOCK CONTAINS 1024 CHARACTERS
V * RESERVE 8 AREAS
STATUS POP-FILE-STATUS.

SunSystems 4 – Technical Reference Manual Page 303 of 455


Cobol File Description (FD)
M FD POP-FILE.
V *FD POP-FILE VALUE OF ID IS POP-FILE-NAME.
01 POP-RECORD.
03 POP-KEY PIC X(020).
03 POP-ALTERNATE-KEY-1 PIC X(029).
03 POP-ALTERNATE-KEY-2 PIC X(016).
03 POP-DATA PIC X(635).
*
The physical record length of the Purchase Order file is on disk (700 bytes) less than the logical
record length within the programs (1024 bytes):
Logical Record bytes
Physical Record
Primary Key 20
Alternate Key 1 29
Alternate Key 2 16
Data 635
____

Total Physical 700


Filler 324
____

Total Logical 1024

SunSystems 4 – Technical Reference Manual Page 304 of 455


Purchase Order File Record Descriptions
The Control record, see [Link],SQL table name SPMFMSC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - D_BASE char(3) Database Code Mandatory
SPMF-C-REC-TYPE 001 001 X - - - Record Type Mandatory,
value ’C’
SPMF-C-CONTROL 002 019 X - - - - Always set to
LOW-VALUES
SPMF-C-KEY-1-ID 021 001 X - - - Alternate Key 1 Id Mandatory,
value ’C’
FILLER 022 028 X - - - -
SPMF-C-KEY-2-ID 050 001 X - - - Alternate Key 2 Id Mandatory,
value ’C’
FILLER 051 015 - - - - -
SPMF-C-VERSION 066 003 N - VERSION char(3) Version Mandatory,
value 420
SPMF-C-LAST-GRN-REF 069 015 N - LAST_GRN_REF char(15) Last GRN Reference
SPMF-C-LAST-INV-REF 084 015 N - LAST_INV_REF char(15) Last Invoice
Reference
SPMF-C-LANGUAGE 099 003 X - LANGUAGE_CODE char(3) - Not used at
version 4.2
FILLER 102 599 - - - - -
FILLER 701 324 - - - - -

SunSystems 4 – Technical Reference Manual Page 305 of 455


The Purchase Order Header record, see [Link],SQL table name SPMFORDddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-J-REC-TYPE 001 001 X - - - Record Type Mandatory,
value ’J’
FILLER 002 005 X - - - -
- - - - - ORDER_REF char(10) Order Reference Mandatory
SPMF-J-REF-PREFIX 007 004 X - - - Order Reference
Prefix
SPMF-J-REF-SUFFIX 011 006 N - - - Order Reference Mandatory
Suffix
FILLER 017 004 X - - - -
SPMF-J-KEY-1-ID 021 001 X - - - Alternate Key 1 Id Value Space
SPMF-J-SUPP-ADDRESS 022 010 X - SUPP_CODE char(10) Supplier Code Mandatory
SPMF-J-ORDER-DATE 032 005 N - ORDER_DATE int Order Date Mandatory,
PIC 9(8)
COMP-3
FILLER 037 013 X - - - -
SPMF-J-KEY-2-ID 050 001 X - - - Alternate Key 2 Id Mandatory,
value ’J’
SPMF-J-SECOND-REF 051 015 X - SECOND_REF char(15) Second Reference SQL-not null
- - - - - STATUS char(2) Order Status 1&2 See below
SPMF-J-STATUS-1 066 001 N - - - Order Status 1 Value may be:
0=Held
3=Released
6=Issued
(Printed)
9=Dummy-
entered as
Invoice/
Receipt
SPMF-J-STATUS-2 067 001 N - - - Order Status 2 Always zero
SPMF-J-CD 068 001 X - ORDER_CD char(1) Credit/Debit Value ’C’ or
Indicator ’D’
SPMF-J-TRANS-TYPE 069 005 X - TRANS_TYPE char (5) Purchase Order Type Mandatory
SPMF-J-DEL-ADDRESS 074 010 X - DEL_ADD char(10) Delivery Address Code
SPMF-J-COMMENTS 084 025 X - COMMENTS char(25) Comments
SPMF-J-ACK-REF 109 015 X - ACK_REF char(15) Acknowledgement
Reference
SPMF-J-ACK-DATE 124 005 N - ACK_DATE int Acknowledgement Date PIC 9(8)
COMP-3
SPMF-J-DEL-DATE 129 005 N - DEL_DATE int Delivery Date PIC 9(8)
COMP-3
SPMF-J-DEL-ADVISED 134 001 X - DEL_ADVISD char(1) Delivery Advised
SPMF-J-ORDER-VALUE 135 010 S - ORDER_VAL numeric Outstanding Order PICS 9(13)
Value V99999 COMP-3

SunSystems 4 – Technical Reference Manual Page 306 of 455


The Purchase Order Header record, see [Link],SQL table name SPMFORDddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-J-ORDER-QUANTITY 145 010 S - ORDER_QTY numeric Outstanding Order Qty PICS 9(13)
V99999 COMP-3
SPMF-J-ORDER-PERIOD 155 007 N - ORDER_PRD int Period Ordered
SPMF-J-LINKED-TEXT 162 001 X - LINK_TEXT char(1) Not used at version
4.2
SPMF-J-ANAL-CODE-0 163 015 X - ANAL_M0 char(15) Analysis Code 0
SPMF-J-ANAL-CODE-1 178 015 X - ANAL_M1 char(15) Analysis Code 1
SPMF-J-ANAL-CODE-2 193 015 X - ANAL_M2 char(15) Analysis Code 2
SPMF-J-ANAL-CODE-3 208 015 X - ANAL_M3 char(15) Analysis Code 3
SPMF-J-ANAL-CODE-4 223 015 X - ANAL_M4 char(15) Analysis Code 4
SPMF-J-ANAL-CODE-5 238 015 X - ANAL_M5 char(15) Analysis Code 5
SPMF-J-ANAL-CODE-6 253 015 X - ANAL_M6 char(15) Analysis Code 6
SPMF-J-ANAL-CODE-7 268 015 X - ANAL_M7 char(15) Analysis Code 7
SPMF-J-ANAL-CODE-8 283 015 X - ANAL_M8 char(15) Analysis Code 8
SPMF-J-ANAL-CODE-9 298 015 X - ANAL_M9 char(15) Analysis Code 9
SPMF-J-DOC-ISSUE-DATE 313 005 N - ISSUE_DATE int Document Issue Date PIC 9(8)
COMP-3
SPMF-J-GRN-IND 318 001 X - GRN_IND char(1) GRN Indicator
SPMF-J-ID-RELEASED 319 003 X - ID_RELEASED char(3) Release User Id
SPMF-J-POST-UNAPP-GRN 322 001 X - POST_UNAPP_GRN char(1) GRN Approval
FILLER 323 012 -
SPMF-J-VOID-STATUS 335 001 X - VOID_STATUS char(1) Values 0, 1 or 2
SPMF-J-EXTRA-CUST-CODE1 336 010 X - EX_CUST_CODE_1 char(10) Purchase Order
Header; Additional
Data
SPMF-J-EXTRA-CUST-CODE2 346 010 X - EX_CUST_CODE_2 char(10) Purchase Order
Header; Additional
Data
SPMF-J-EXTRA-TEXT1 356 030 X - EX_TEXT1 char(30) Purchase
SPMF-J-EXTRA-TEXT2 386 030 X - EX_TEXT2 char(30) Purchase
SPMF-J-EXTRA-TEXT3 416 015 X - EX_TEXT3 char(15) Purchase
SPMF-J-EXTRA-TEXT4 431 015 X - EX_TEXT4 char(15) Purchase
SPMF-J-EXTRA-TEXT5 446 015 X - EX_TEXT5 char(15) Purchase
SPMF-J-EXTRA-TEXT6 461 010 X - EX_TEXT6 char(10) Purchase
SPMF-J-EXTRA-TEXT7 471 010 X - EX_TEXT7 char(10) Purchase
SPMF-J-EXTRA-VALUE1 481 010 S - EX_VAL1 Numeric Purchase
SPMF-J-EXTRA-VALUE2 491 010 S - EX_VAL2 Numeric Purchase
SPMF-J-EXTRA-VALUE3 501 010 S - EX_VAL3 Numeric Purchase
FILLER 511 514 - -

SunSystems 4 – Technical Reference Manual Page 307 of 455


The Goods Received Note Header record, see [Link], SQL table name SPMFGRNddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-K-REC-TYPE 001 001 X - - - Record Type Mandatory,
value ’K’
FILLER 002 005 X - - - -
- - - - - GRN_REF char(10) GRN Reference Mandatory
SPMF-K-REF-PREFIX 007 004 X - - - GRN Reference Prefix
SPMF-K-REF-SUFFIX 011 006 N - - - GRN Reference Suffix Mandatory
FILLER 017 004 X - - - -
SPMF-K-KEY-1-ID 021 001 X - - - Alternate Key 1 Id Value Space
SPMF-K-SUPP-ADDRESS 022 010 X - SUPP_ADDR char(10) Supplier Address Code Mandatory
SPMF-K-GRN-DATE 032 005 N - GRN_DATE int GRN Date Mandatory,
PIC 9(8)
COMP-3
FILLER 037 013 X - - - -
SPMF-K-KEY-2-ID 050 001 X - - - Alternate Key 2 Id Mandatory,
value’K’
SPMF-K-SUPP-GRN-REF 051 015 X - SUPP_GRN_REF char(15) Supplier’s GRN Ref. Mandatory
- - - - - STATUS char(2) GRN Status 1&2 Not used-
value zero
SPMF-K-STATUS-1 066 001 N - - - GRN Status 1 Not used-
value zero
SPMF-K-STATUS-2 067 001 N - - - GRN Status 2 Not used-
value zero
SPMF-K-LINKED-TEXT 068 001 X - LINK_TEXT char(1) Not used at version
4.2
SPMF-K-CD 069 001 X - INV_CD char(1) Credit/Debit Value ’C’ or
Indicator ’D’
SPMF-K-DEL-ADDRESS 070 010 X - DEL_ADDR char(10) Delivery Address Code
FILLER 080 005 X - - - -
SPMF-K-ORDER-REFERENCE 085 010 X - ORDER_REF char(10) Order Reference Mandatory
SPMF-K-MATCHED-TOT-QTY 095 010 S - MATCH_QTY numeric GRN Quantity Matched PICS 9(13)
V99999 COMP-3
SPMF-K-GRN-TOT-QTY 105 010 S - GRN_QTY numeric GRN Total Quantity PICS 9(13)
V99999 COMP-3
SPMF-K-COMMENTS 115 025 X - COMMENTS char(25) Comments
SPMF-K-ORDER-TRANS-TYPE 140 005 X - TRANS_TYPE char(5) Purchase Order Type Mandatory
SPMF-K-ID-RELEASED 145 003 X - ID_RELEASED char(5) Release User Id
SPMF-K-PAY-DATE 148 005 N - PAY_DATE int Unapproved I/F Pay PIC 9(8)
date COMP-3
SPMF-K-ORDER-DATE 153 005 N - ORDER_DATE int Order Date PIC 9(8)
COMP-3

SunSystems 4 – Technical Reference Manual Page 308 of 455


The Goods Received Note Header record, see [Link], SQL table name SPMFGRNddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
FILLER 158 177 - - - - -
SPMF-K-VOID-STATUS 335 001 X - VOID_STATUS char(1) Values 0, 1 or 2
SPMF-K-EXTRA-CUST-CODE1 336 010 X - EX_CUST_CODE_1 char(10) Purchase Order
Header; Additional
Data
SPMF-K-EXTRA-CUST-CODE2 346 010 X - EX_CUST_CODE_2 char(10) Purchase Order
Header; Additional
Data
SPMF-K-EXTRA-TEXT1 356 030 X - EX_TEXT1 char(30) Purchase
SPMF-K-EXTRA-TEXT2 386 030 X - EX_TEXT2 char(30) Purchase
SPMF-K-EXTRA-TEXT3 416 015 X - EX_TEXT3 char(15) Purchase
SPMF-K-EXTRA-TEXT4 431 015 X - EX_TEXT4 char(15) Purchase
SPMF-K-EXTRA-TEXT5 446 015 X - EX_TEXT5 char(15) Purchase
SPMF-K-EXTRA-TEXT6 461 010 X - EX_TEXT6 char(10) Purchase
SPMF-K-EXTRA-TEXT7 471 010 X - EX_TEXT7 char(10) Purchase
SPMF-K-EXTRA-VALUE1 481 010 S - EX_VAL1 Numeric Purchase
SPMF-K-EXTRA-VALUE2 491 010 S - EX_VAL2 Numeric Purchase
SPMF-K-EXTRA-VALUE3 501 010 S - EX_VAL3 Numeric Purchase
FILLER 511 514 - - - - -

SunSystems 4 – Technical Reference Manual Page 309 of 455


The Invoice Header record, see [Link], SQL table name SPMFINVddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-L-REC-TYPE 001 001 X - - - Record Type Mandatory,
value ’L’
FILLER 002 005 X - - - -
- - - - - INV_REF char(10) Invoice Reference Mandatory
SPMF-L-REF-PREFIX 007 004 X - - - Invoice Ref. Prefix
SPMF-L-REF-SUFFIX 011 006 N - - - Invoice Ref. Suffix Mandatory
FILLER 017 004 X - - - -
SPMF-L-KEY-1-ID 021 001 X - - - Alternate Key 1 Id Value Space
SPMF-L-SUPP-ADDRESS 022 010 X - SUPP_CODE char(10) Supplier Address Code Mandatory
SPMF-L-INV-DATE 032 005 N - INV_DATE int Invoice Date Mandatory,
PIC 9(8)
COMP-3
FILLER 037 013 X - - - -
SPMF-L-KEY-2-ID 050 001 X - - - Alternate Key 2 Id Mandatory,
value’L’
SPMF-L-SUPP-INV-REF 051 015 X - SUPP_INV_REF char(15) Supplier’s Invoice Mandatory
Ref.
- - - - - STATUS char(2) Invoice Status 1 & 2 Not used -
value zero
SPMF-L-STATUS-1 066 001 N - - - Invoice Status 1 Not used -
value zero
SPMF-L-STATUS-2 067 001 N - - - Invoice Status 2 Not used -
value zero
SPMF-L-CD 068 001 X - INV_CD char(1) Credit/Debit Value ’C’ or
Indicator ’D’
SPMF-L-TRANS-TYPE 069 005 X - TRANS_TYPE char(5) Purchase Order Type Mandatory
FILLER 074 010 X - - - -
SPMF-L-COMMENTS 084 025 X - COMMENTS char(25) Comments
SPMF-L-PAY-DATE 109 005 N - PAY_DATE int Payment Date PIC 9(8)
COMP-3
SPMF-L-MATCHED-TOT-QTY 114 010 S - MATCH_QTY numeric Total Matched PICS 9(13)
Quantity V99999 COMP-3
SPMF-L-MATCHED-TOT-VAL 124 010 S - MATCH_VAL numeric Total Matched Value PICS 9(13)
V99999 COMP-3
SPMF-L-INV-PERIOD 134 007 N - INV_PRD int Period Invoiced Mandatory
SPMF-L-INV-TOT-QTY 141 010 S - INV_QTY numeric Total Invoice PICS 9(13)
Quantity V99999 COMP-3
SPMF-L-INV-TOT-VAL 151 010 S - INV_VAL numeric Total Invoice Value PICS 9(13)
V99999 COMP-3
FILLER 161 005 X - - - -
SPMF-L-ORDER-REFERENCE 166 010 X - ORDER_REF char(10) Order Reference Mandatory
SPMF-L-LINKED-TEXT 176 001 X - LINK_TEXT char (1) Not used at version
4.2

SunSystems 4 – Technical Reference Manual Page 310 of 455


The Invoice Header record, see [Link], SQL table name SPMFINVddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-L-ANAL-CODE-0 177 015 X - ANAL_M0 char(15) Analysis Code 0
SPMF-L-ANAL-CODE-1 192 015 X - ANAL_M1 char(15) Analysis Code 1
SPMF-L-ANAL-CODE-2 207 015 X - ANAL_M2 char(15) Analysis Code 2
SPMF-L-ANAL-CODE-3 222 015 X - ANAL_M3 char(15) Analysis Code 3
SPMF-L-ANAL-CODE-4 237 015 X - ANAL_M4 char(15) Analysis Code 4
SPMF-L-ANAL-CODE-5 252 015 X - ANAL_M5 char(15) Analysis Code 5
SPMF-L-ANAL-CODE-6 267 015 X - ANAL_M6 char(15) Analysis Code 6
SPMF-L-ANAL-CODE-7 282 015 X - ANAL_M7 char(15) Analysis Code 7
SPMF-L-ANAL-CODE-8 297 015 X - ANAL_M8 char(15) Analysis Code 8
SPMF-L-ANAL-CODE-9 312 015 X - ANAL_M9 char(15) Analysis Code 9
SPMF-L-ID-RELEASED 327 003 X - ID_RELEASED char(3) Release User Id
SPMF-L-ORDER-DATE 330 005 N - ORDER_DATE int Order Date PIC 9(8) COMP-
3
SPMF-L-VOID-STATUS 335 001 X - VOID_STATUS char (1) Values 0, 1 or 2
SPMF-L-EXTRA-CUST-CODE1 336 010 X - EX_CUST_CODE_1 char(10) Purchase Order
Header; Additional
Data
SPMF-L-EXTRA-CUST-CODE2 346 010 X - EX_CUST_CODE_2 char(10) Purchase Order
Header; Additional
Data
SPMF-L-EXTRA-TEXT1 356 030 X - EX_TEXT1 char(30) Purchase
SPMF-L-EXTRA-TEXT2 386 030 X - EX_TEXT2 char(30) Purchase
SPMF-L-EXTRA-TEXT3 416 015 X - EX_TEXT3 char(15) Purchase
SPMF-L-EXTRA-TEXT4 431 015 X - EX_TEXT4 char(15) Purchase
SPMF-L-EXTRA-TEXT5 446 015 X - EX_TEXT5 char(15) Purchase
SPMF-L-EXTRA-TEXT6 461 010 X - EX_TEXT6 char(10) Purchase
SPMF-L-EXTRA-TEXT7 471 010 X - EX_TEXT7 char(10) Purchase
SPMF-L-EXTRA-VALUE1 481 010 S - EX_VAL1 Numeric Purchase
SPMF-L-EXTRA-VALUE2 491 010 S - EX_VAL2 Numeric Purchase
SPMF-L-EXTRA-VALUE3 501 010 S - EX_VAL3 Numeric Sales
FILLER 511 514 - - - - -

SunSystems 4 – Technical Reference Manual Page 311 of 455


The Order/Invoice Detail record, see [Link], SQL table name SPMFDETddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-S-REC-TYPE 001 001 X - REC_TYPE char(1) Record Type Mandatory,
value’S’
FILLER 002 005 X - - - -
- - - - - TRANS_REF char(10) Order Reference Mandatory
SPMF-S-REF-PREFIX 007 004 X - - - Order Ref. Prefix
SPMF-S-REF-SUFFIX 011 006 N - - - Order Ref. Suffix Mandatory
- - - - - TRANS_LINE char(4) Transaction Line No. Mandatory,
1st 3 chars.
numeric
SPMF-S-LINE-NO-A 017 003 N - - - Transaction Line No. Mandatory
A
SPMF-S-LINE-NO-B 020 001 X - - - Transaction Line No.
B
SPMF-S-KEY-1-ID 021 001 X - - - Alternate Key 1 Id Mandatory,
value Space
SPMF-S-LOCATION 022 005 X - LOCATION char(5) Location Code Mandatory
SPMF-S-ITEM-CODE 027 015 X - ITEM_CODE char(15) Item Code Mandatory
SPMF-S-DEL-DATE 042 005 N - DEL_DATE int Delivery Date Mandatory,
PIC 9(8)
COMP-3
SPMF-S-SEQUENCE 047 003 N - - - Sequence PIC 9(4)
COMP-3
SPMF-S-KEY-2-ID 050 001 X - ITM_TYPE char(1) Alternate Key 2 Id Mandatory,
value:
‘Q’ for Order
‘S’ for
Invoice
FILLER 051 005 X - - - -
SPMF-S-HIGHEST-REFERENCE 056 010 X - HIGH_REF char(10) Highest Reference May be Order,
GRN, or
Invoice
Reference
- - - - - ORD_STATUS char(2) Order Status 1 & 2 See below
SPMF-S-ORDER-STATUS-1 066 001 N - - - Order Status 1 Value may be:
0=Held/
Released
6=Issued
(Printed)
9=Dummy -
Invoice/
Receipt entry

SunSystems 4 – Technical Reference Manual Page 312 of 455


The Order/Invoice Detail record, see [Link], SQL table name SPMFDETddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-S-ORDER-STATUS-2 067 001 N - - - Order Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
- - - - - GRN_STATUS char(2) GRN Status 1 & 2 See below
SPMF-S-GRN-STATUS-1 068 001 N - - - GRN Status 1 Value may be:
0=Awaited
1=Matched
(Held)
2=Matched
(Held),
Approved
(Held)
3=Matched
(Released)
4=Matched
(Released),
Approved
(Held)
5=Matched
(Released),
Approved
(Released)
9=No Goods
Expected
SPMF-S-GRN-STATUS-2 069 001 N - - - GRN Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
4=Over-
delivered
- - - - - INV_STATUS char(2) Invoice Status 1 & 2 See below

SunSystems 4 – Technical Reference Manual Page 313 of 455


The Order/Invoice Detail record, see [Link], SQL table name SPMFDETddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-S-INVOICE-STATUS-1 070 001 N - - - Invoice Status 1 Value may be:
0=Awaited
1=Matched
(Held)
2=Matched
(Held),
Approved
(Held)
3=Matched
(Released)
4=Matched
(Released),
Approved
(Held)
5=Matched
(Released),
Approved
(Released)
SPMF-S-INVOICE-STATUS-2 071 001 N - - - Invoice Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
SPMF-S-CD 072 001 X - TRANS_CD char(1) Credit/Debit Value ’C’ or
Indicator ’D’
SPMF-S-LINKED-TEXT 073 001 X - LINK_TEXT char(1) Not used at version
4.2
SPMF-S-ID-ORDER 074 003 X - ID_ORDER char(3) Order Id
SPMF-S-ID-GRN 077 003 X - ID_GRN char(3) User Id
SPMF-S-ID-INVOICED 080 003 X - ID_INV char(3) Invoice Id
SPMF-S-SUPP-ITEM-DESC 083 030 X - SUPP_DESCR char(30) Supplier Item
Description
SPMF-S-SUPP-ITEM-CODE 113 015 X - SUPP_ITEM_CODE char(15) Supplier Item Code
SPMF-S-PURCH-QTY 128 010 S - PURCH_QTY numeric Purchase Quantity PICS 9(13)
V99999 COMP-3
SPMF-S-PURCH-UNIT 138 005 X - PURCH_UNIT char(5) Unit of Purchase
SPMF-S-STOCK-QTY 143 010 S - STOCK_QTY numeric Stock Quantity PICS 9(13)
V99999 COMP-3
SPMF-S-BASE-COST 153 010 S - BASE_COST numeric Base Purchase Cost PICS 9(13)
V9(5) COMP-3
SPMF-S-CALC-VALUE-1 163 010 S - VALUE_1 numeric Value of Calc’n Code PICS 9(13)
1 V99999 COMP-3

SunSystems 4 – Technical Reference Manual Page 314 of 455


The Order/Invoice Detail record, see [Link], SQL table name SPMFDETddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-S-CALC-VALUE-2 173 010 S - VALUE_2 numeric Value of Calc’n Code PICS 9(13)
2 V99999 COMP-3
SPMF-S-CALC-VALUE-3 183 010 S - VALUE_3 numeric Value of Calc’n Code PICS 9(13)
3 V99999 COMP-3
SPMF-S-CALC-VALUE-4 193 010 S - VALUE_4 numeric Value of Calc’n Code PICS 9(13)
4 V99999 COMP-3
SPMF-S-CALC-VALUE-5 203 010 S - VALUE_5 numeric Value of Calc’n Code PICS 9(13)
5 V99999 COMP-3
SPMF-S-CALC-VALUE-6 213 010 S - VALUE_6 numeric Value of Calc’n Code PICS 9(13)
6 V99999 COMP-3
SPMF-S-CALC-VALUE-7 223 010 S - VALUE_7 numeric Value of Calc’n Code PICS 9(13)
7 V99999 COMP-3
SPMF-S-CALC-VALUE-8 233 010 S - VALUE_8 numeric Value of Calc’n Code PICS 9(13)
8 V99999 COMP-3
SPMF-S-CALC-VALUE-9 243 010 S - VALUE_9 numeric Value of Calc’n Code PICS 9(13)
9 V99999 COMP-3
SPMF-S-CALC-VALUE-10 253 010 S - VALUE_10 numeric Value of Calc’n Code PICS 9(13)
10 V99999 COMP-3
SPMF-S-CALC-VALUE-11 263 010 S - VALUE_11 numeric Value of Calc’n Code PICS 9(13)
11 V99999 COMP-3
SPMF-S-CALC-VALUE-12 273 010 S - VALUE_12 numeric Value of Calc’n Code PICS 9(13)
12 V99999 COMP-3
SPMF-S-CALC-VALUE-13 283 010 S - VALUE_13 numeric Value of Calc’n Code PICS 9(13)
13 V99999 COMP-3

SunSystems 4 – Technical Reference Manual Page 315 of 455


The Order/Invoice Detail record, see [Link], SQL table name SPMFDETddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-S-CALC-VALUE-14 293 010 S - VALUE_14 numeric Value of Calc’n Code PICS 9(13)
14 V99999 COMP-3
SPMF-S-CALC-VALUE-15 303 010 S - VALUE_15 numeric Value of Calc’n Code PICS 9(13)
15 V99999 COMP-3
SPMF-S-CALC-VALUE-16 313 010 S - VALUE_16 numeric Value of Calc’n Code PICS 9(13)
16 V99999 COMP-3
SPMF-S-CALC-VALUE-17 323 010 S - VALUE_17 numeric Value of Calc’n Code PICS 9(13)
17 V99999 COMP-3
FILLER 333 020 X - - - -
SPMF-S-GRN-REFERENCE 353 010 X - GRN_REF char(10) GRN Reference
SPMF-S-GRN-DATE 363 005 N - GRN_DATE int GRN Date PIC 9(8)
COMP-3
SPMF-S-DEL-ADVISED 368 001 X - DEL_ADVISD char(1) Delivery Advised
SPMF-S-INV-DATE 369 005 N - INV_DATE int Invoice Date PIC 9(8)
COMP-3
SPMF-S-INV-PERIOD 374 007 N - INV_PRD int Period Invoiced
SPMF-S-INV-APPROV-DATE 381 005 N - INV_APPR_DATE int Approval Date PIC 9(8)
COMP-3
SPMF-S-TRANS-TYPE 386 005 X - TRANS_TYPE char(5) Purchase Order Type
SPMF-S-STOCK-UPDATED 391 001 X - STOCK_UPD char(1) Stock Updated
Indicator
SPMF-S-REASON-CODE 392 001 X - REASON char(1) Reason Code
SPMF-S-LINE-VALUE 393 002 N - LINE_VAL char(2) Line value calc’n
code no.
SPMF-S-MATCH-VALUE 395 002 N - MATCH_VAL char(2) Match value calc’n
code no.
SPMF-S-COST-VALUE 397 002 N - COST_VAL char(2) Cost value calc’n
code no.
SPMF-S-ACCOUNT-CODE 399 015 X - ACCNT_CODE char(15) Account Code
SPMF-S-ASSET-CODE 414 010 X - ASSET_CODE char(10) Asset Code
SPMF-S-ASSET-SUB-CODE 424 005 X - ASSET_SUB char(5) Asset Sub-Code
SPMF-S-ASSET-IND 429 001 X - ASSET_IND char(1) Asset Marker
SPMF-S-RECEIPT-REF 430 015 X - RECEIPT_REF char(15) Receipt Reference
SPMF-S-AUDIT-DATE 445 005 N - AUDIT_DATE int Audit Date PIC 9(8)
COMP-3
SPMF-S-ANAL-CODE-0 450 015 X - ANAL_M0 char(15) Analysis Code 0
SPMF-S-ANAL-CODE-1 465 015 X - ANAL_M1 char(15) Analysis Code 1
SPMF-S-ANAL-CODE-2 480 015 X - ANAL_M2 char(15) Analysis Code 2
SPMF-S-ANAL-CODE-3 495 015 X - ANAL_M3 char(15) Analysis Code 3
SPMF-S-ANAL-CODE-4 510 015 X - ANAL_M4 char(15) Analysis Code 4
SPMF-S-ANAL-CODE-5 525 015 X - ANAL_M5 char(15) Analysis Code 5
SPMF-S-ANAL-CODE-6 540 015 X - ANAL_M6 char(15) Analysis Code 6
SPMF-S-ANAL-CODE-7 555 015 X - ANAL_M7 char(15) Analysis Code 7

SunSystems 4 – Technical Reference Manual Page 316 of 455


The Order/Invoice Detail record, see [Link], SQL table name SPMFDETddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-S-ANAL-CODE-8 570 015 X - ANAL_M8 char(15) Analysis Code 8
SPMF-S-ANAL-CODE-9 585 015 X - ANAL_M9 char(15) Analysis Code 9
SPMF-S-UNAPP-PERIOD- 600 007 N - UNAPP_PRD_POSTED int Unapproved Posting
POSTED Date
SPMF-S-ORDER-DATE 607 005 N - ORDER_DATE int Order Date PIC 9(8) COMP-
3.
SPMF-S-STOCK-PERIOD- 612 007 N - STOCK_PRD_POSTED int Period SI posted
POSTED
SPMF-S-PERIOD-ORDERED 619 007 N - PERIOD_ORDERED int Period Ordered
SPMF-S-AMEND-DATE 626 005 N - AMEND_DATE int Amended Date PIC 9(8) COMP-
3.
SPMF-S-ORIG-LINE-NO-A 631 003 N - ORIG_LINE_NO char(4) Original Line Number
SPMF-S-ORIG-LINE-NO-B 634 001 X -
SPMF-S-MVT-VALUE 635 010 9 - MOVEMENT_VALUE numeric Movement Value PICS 9(13)
V9(5) COMP-3.
SPMF-S-BCHECK-VALUE 645 002 N - BCHECK_VALUE int Budget Check
SPMF-S-EXPEND-CHECK-VALUE 647 002 N - EXP_CHECK_VALUE int Expenditure Check
SPMF-S-MISC-DOC-PRINT(1) 649 001 X - MISC_DOC_PRINT1 char(1)
SPMF-S-MISC-DOC-PRINT(2) 650 001 X - MISC_DOC_PRINT2 char(1)
SPMF-S-MISC-DOC-PRINT(3) 651 001 X - MISC_DOC_PRINT3 char(1)
SPMF-S-MISC-DOC-PRINT(4) 652 001 X - MISC_DOC_PRINT4 char(1)
SPMF-S-MISC-DOC-PRINT(5) 653 001 X - MISC_DOC_PRINT5 char(1)
SPMF-S-ACV-INVOICE1 654 010 X - ADD_COST_VOUCHER1 char(10)
SPMF-S-ACV-INVOICE2 664 010 X - ADD_COST_VOUCHER2 char(10)
SPMF-S-ACV-INVOICE3 674 010 X - ADD_COST_VOUCHER31 char(10)
SPMF-S-ACV-INVOICE4 684 010 X - ADD_COST_VOUCHER41 char(10)
FILLER 694 331 X - - -

SunSystems 4 – Technical Reference Manual Page 317 of 455


[Link] contains Order/GRN/Invoice Header, as in [Link], plus the following:
The Order Issue Stage record, see [Link] SQL table name SPMFDTOddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-M-REC-TYPE 001 001 X - REC_TYPE char(1) Record Type Mandatory,
value ’M’
FILLER 002 005 X - - - -
- - - - - TRANS_REF char(10) Order Reference Mandatory
SPMF-M-REF-PREFIX 007 004 X - - - Order Ref. Prefix
SPMF-M-REF-SUFFIX 011 006 N - - - Order Ref. Suffix Mandatory
- - - - - TRANS_LINE char(4) Transaction Line No. Mandatory,
1st 3 chars.
numeric
SPMF-M-LINE-NO-A 017 003 N - - - Transaction Line No. Mandatory
A
SPMF-M-LINE-NO-B 020 001 X - - - Transaction Line No.
B
SPMF-M-KEY-1-ID 021 001 X - - - Alternate Key 1 Id Mandatory,
value Space
SPMF-M-LOCATION 022 005 X - LOCATION char(5) Location Code Mandatory
SPMF-M-ITEM-CODE 027 015 X - ITEM_CODE char(15) Item Code Mandatory
SPMF-M-DEL-DATE 042 005 N - DEL_DATE int Delivery Date Mandatory,
PIC 9(8)
COMP-3
SPMF-M-SEQUENCE 047 003 N - - - Sequence PIC 9(4)
COMP-3
SPMF-M-KEY-2-ID 050 001 X - ITM_TYPE char(1) Alternate Key 2 Id Mandatory,
value:
‘Q’ for Order
‘S’ for
Invoice
FILLER 051 005 X - - - -
SPMF-M-HIGHEST-REFERENCE 056 010 X - HIGH_REF char(10) Highest Reference May be Order,
GRN, or
Invoice
Reference
- - - - - ORD_STATUS char(2) Order Status 1 & 2 See below

SunSystems 4 – Technical Reference Manual Page 318 of 455


The Order Issue Stage record, see [Link] SQL table name SPMFDTOddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-M-ORDER-STATUS-1 066 001 N - - - Order Status 1 Value may be:
0=Held/
Released
6=Issued
(Printed)
9=Dummy -
Invoice/
Receipt entry
SPMF-M-ORDER-STATUS-2 067 001 N - - - Order Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
- - - - - GRN_STATUS char(2) GRN Status 1 & 2 See below
SPMF-M-GRN-STATUS-1 068 001 N - - - GRN Status 1 Value may be:
0=Awaited
1=Matched
(Held)
2=Matched
(Held),
Approved
(Held)
3=Matched
(Released)
4=Matched
(Released),
Approved
(Held)
5=Matched
(Released),
Approved
(Released)
9=No Goods
Expected
SPMF-M-GRN-STATUS-2 069 001 N - - - GRN Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
4=Over-
delivered
- - - - - INV_STATUS char(2) Invoice Status 1 & 2 See below

SunSystems 4 – Technical Reference Manual Page 319 of 455


The Order Issue Stage record, see [Link] SQL table name SPMFDTOddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-M-INVOICE-STATUS-1 070 001 N - - - Invoice Status 1 Value may be:
0=Awaited
1=Matched
(Held)
2=Matched
(Held),
Approved
(Held)
3=Matched
(Released)
4=Matched
(Released),
Approved
(Held)
5=Matched
(Released),
Approved
(Released)
SPMF-M-INVOICE-STATUS-2 071 001 N - - - Invoice Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
SPMF-M-CD 072 001 X - TRANS_CD char(1) Credit/Debit Indicator
Value ’C’ or
’D’
SPMF-M-LINKED-TEXT 073 001 X - LINK_TEXT char(1) Not used at version
4.2
SPMF-M-ID-ORDER 074 003 X - ID_ORDER char(3) Order Id
SPMF-M-ID-GRN 077 003 X - ID_GRN char(3) User Id
SPMF-M-ID-INVOICED 080 003 X - ID_INV char(3) Invoice Id
SPMF-M-SUPP-ITEM-DESC 083 030 X - SUPP_DESCR char(30) Supplier Item
Description
SPMF-M-SUPP-ITEM-CODE 113 015 X - SUPP_ITEM_CODE char(15) Supplier Item Code
SPMF-M-PURCH-QTY 128 010 S - PURCH_QTY numeric Purchase Quantity PICS 9(13)
V99999 COMP-3
SPMF-M-PURCH-UNIT 138 005 X - PURCH_UNIT char(5) Unit of Purchase
SPMF-M-STOCK-QTY 143 010 S - STOCK_QTY numeric Stock Quantity PICS 9(13)
V99999 COMP-3
SPMF-M-BASE-COST 153 010 S - BASE_COST numeric Base Purchase Cost PICS 9(13)
V9(5) COMP-3
SPMF-M-CALC-VALUE-1 163 010 S - VALUE_1 numeric Value of Calc’n Code PICS 9(13)
1 V99999 COMP-3

SunSystems 4 – Technical Reference Manual Page 320 of 455


The Order Issue Stage record, see [Link] SQL table name SPMFDTOddd – (continued)

COBO POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-M-CALC-VALUE-2 173 010 S - VALUE_2 numeric Value of Calc’n Code PICS 9(13)
2 V99999 COMP-3
SPMF-M-CALC-VALUE-3 183 010 S - VALUE_3 numeric Value of Calc’n Code PICS 9(13)
3 V99999 COMP-3
SPMF-M-CALC-VALUE-4 193 010 S - VALUE_4 numeric Value of Calc’n Code PICS 9(13)
4 V99999 COMP-3
SPMF-M-CALC-VALUE-5 203 010 S - VALUE_5 numeric Value of Calc’n Code PICS 9(13)
5 V99999 COMP-3
SPMF-M-CALC-VALUE-6 213 010 S - VALUE_6 numeric Value of Calc’n Code PICS 9(13)
6 V99999 COMP-3
SPMF-M-CALC-VALUE-7 223 010 S - VALUE_7 numeric Value of Calc’n Code PICS 9(13)
7 V99999 COMP-3
SPMF-M-CALC-VALUE-8 233 010 S - VALUE_8 numeric Value of Calc’n Code PICS 9(13)
8 V99999 COMP-3
SPMF-M-CALC-VALUE-9 243 010 S - VALUE_9 numeric Value of Calc’n Code PICS 9(13)
9 V99999 COMP-3
SPMF-M-CALC-VALUE-10 253 010 S - VALUE_10 numeric Value of Calc’n Code PICS 9(13)
10 V99999 COMP-3
SPMF-M-CALC-VALUE-11 263 010 S - VALUE_11 numeric Value of Calc’n Code PICS 9(13)
11 V99999 COMP-3
SPMF-M-CALC-VALUE-12 273 010 S - VALUE_12 numeric Value of Calc’n Code PICS 9(13)
12 V99999 COMP-3
SPMF-M-CALC-VALUE-13 283 010 S - VALUE_13 numeric Value of Calc’n Code PICS 9(13)
13 V99999 COMP-3
SPMF-M-CALC-VALUE-14 293 010 S - VALUE_14 numeric Value of Calc’n Code PICS 9(13)
14 V99999 COMP-3
SPMF-M-CALC-VALUE-15 303 010 S - VALUE_15 numeric Value of Calc’n Code PICS 9(13)
15 V99999 COMP-3
SPMF-M-CALC-VALUE-16 313 010 S - VALUE_16 numeric Value of Calc’n Code PICS 9(13)
16 V99999 COMP-3
SPMF-M-CALC-VALUE-17 323 010 S - VALUE_17 numeric Value of Calc’n Code PICS 9(13)
17 V99999 COMP-3
FILLER 333 020 X - - - -
SPMF-M-GRN-REFERENCE 353 010 X - GRN_REF char(10) GRN Reference
SPMF-M-GRN-DATE 363 005 N - GRN_DATE int GRN Date PIC 9(8)
COMP-3
SPMF-M-DEL-ADVISED 368 001 X - DEL_ADVISD char(1) Delivery Advised

SunSystems 4 – Technical Reference Manual Page 321 of 455


The Order Issue Stage record, see [Link] SQL table name SPMFDTOddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-M-INV-DATE 369 005 N - INV_DATE int Invoice Date PIC 9(8)
COMP-3
SPMF-M-INV-PERIOD 374 007 N - INV_PRD int Period Invoiced
SPMF-M-INV-APPROV-DATE 381 005 N - INV_APPR_DATE int Approval Date PIC 9(8)
COMP-3
SPMF-M-TRANS-TYPE 386 005 X - TRANS_TYPE char(5) Purchase Order Type
SPMF-M-STOCK-UPDATED 391 001 X - STOCK_UPD char(1) Stock Updated
Indicator
SPMF-M-REASON-CODE 392 001 X - REASON char(1) Reason Code
SPMF-M-LINE-VALUE 393 002 N - LINE_VAL char(2) Line value calc’n
code no.
SPMF-M-MATCH-VALUE 395 002 N - MATCH_VAL char(2) Match value calc’n
code no.
SPMF-M-COST-VALUE 397 002 N - COST_VAL char(2) Cost value calc’n
code no.
SPMF-M-ACCOUNT-CODE 399 015 X - ACCNT_CODE char(15) Account Code
SPMF-M-ASSET-CODE 414 010 X - ASSET_CODE char(10) Asset Code
SPMF-M-ASSET-SUB-CODE 424 005 X - ASSET_SUB char(5) Asset Sub-Code
SPMF-M-ASSET-IND 429 001 X - ASSET_IND char(1) Asset Marker
SPMF-M-RECEIPT-REF 430 015 X - RECEIPT_REF char(15) Rece ipt Reference
SPMF-M-AUDIT-DATE 445 005 N - AUDIT_DATE int Audit Date PIC 9(8)
COMP-3
SPMF-M-ANAL-CODE-0 450 015 X - ANAL_M0 char(15) Analysis Code 0
SPMF-M-ANAL-CODE-1 465 015 X - ANAL_M1 char(15) Analysis Code 1
SPMF-M-ANAL-CODE-2 480 015 X - ANAL_M2 char(15) Analysis Code 2
SPMF-M-ANAL-CODE-3 495 015 X - ANAL_M3 char(15) Analysis Code 3
SPMF-M-ANAL-CODE-4 510 015 X - ANAL_M4 char(15) Analysis Code 4
SPMF-M-ANAL-CODE-5 525 015 X - ANAL_M5 char(15) Analysis Code 5
SPMF-M-ANAL-CODE-6 540 015 X - ANAL_M6 char(15) Analysis Code 6
SPMF-M-ANAL-CODE-7 555 015 X - ANAL_M7 char(15) Analysis Code 7
SPMF-M-ANAL-CODE-8 570 015 X - ANAL_M8 char(15) Analysis Code 8
SPMF-M-ANAL-CODE-9 585 015 X - ANAL_M9 char(15) Analysis Code 9
SPMF-M-UNAPP-PERIOD-POSTED 600 007 N - UNAPP_PRD_POSTED int Unapproved Posting
Date
SPMF-M-ORDER-DATE 607 005 N - ORDER_DATE int Order Date PIC 9(8)
COMP-3.
SPMF-M-STOCK-PERIOD-POSTED 612 007 N - STOCK_PRD_POSTED int Period SI posted
SPMF-M-PERIOD-ORDERED 619 007 N - PERIOD_ORDERED int Period Ordered

SunSystems 4 – Technical Reference Manual Page 322 of 455


The Order Issue Stage record, see [Link] SQL table name SPMFDTOddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-M-AMEND-DATE 626 005 N - AMEND_DATE int Amended Date PIC 9(8)
COMP-3.
SPMF-M-ORIG-LINE-NO-A 631 003 N - ORIG_LINE_NUMBER char(4) Original Line Number
SPMF-M-ORIG-LINE-NO-B 634 001 X -
SPMF-M-MVT-VALUE 635 010 N - MOVEMENT_VALUE numeric Movement Value PICS 9(13)
V9(5) COMP-3.
SPMF-M-BCHECK-VALUE 645 002 N - BCHECK_VALUE int Budget Check
SPMF-M-EXPEND-CHECK-VALUE 647 002 N - EXP_CHECK_VALUE int Expenditure Check
SPMF-M-MISC-DOC-PRINT(1) 649 001 X - MISC_DOC_PRINT1 Char (1)
SPMF-M-MISC-DOC-PRINT(2) 650 001 X - MISC_DOC_PRINT2 Char (1)
SPMF-M-MISC-DOC-PRINT(3) 651 001 X - MISC_DOC_PRINT3 Char (1)
SPMF-M-MISC-DOC-PRINT(4) 652 001 X - MISC_DOC_PRINT4 Char (1)
SPMF-M-MISC-DOC-PRINT(5) 653 001 X - MISC_DOC_PRINT5 Char (1)
FILLER 654 371 X - - -

SunSystems 4 – Technical Reference Manual Page 323 of 455


The Goods Receipt Stage record, see [Link] SQL table name SPMFDTGddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-O-REC-TYPE 001 001 X - REC_TYPE char(1) Record Type Mandatory,
value ’O’
FILLER 002 005 X - - - -
- - - - - TRANS_REF char(10) Order Reference Mandatory
SPMF-O-REF-PREFIX 007 004 X - - - Order Ref. Prefix
SPMF-O-REF-SUFFIX 011 006 N - - - Order Ref. Suffix Mandatory
- - - - - TRANS_LINE char(4) Transaction Line No. Mandatory,
1st 3 chars.
numeric
SPMF-O-LINE-NO-A 017 003 N - - - Transaction Line No. Mandatory
A
SPMF-O-LINE-NO-B 020 001 X - - - Transaction Line No.
B
SPMF-O-KEY-1-ID 021 001 X - - - Alternate Key 1 Id Mandatory,
value Space
SPMF-O-LOCATION 022 005 X - LOCATION char(5) Location Code Mandatory
SPMF-O-ITEM-CODE 027 015 X - ITEM_CODE char(15) Item Code Mandatory
SPMF-O-DEL-DATE 042 005 N - DEL_DATE int Delivery Date Mandatory,
PIC 9(8)
COMP-3
SPMF-O-SEQUENCE 047 003 N - - - Sequence PIC 9(4)
COMP-3
SPMF-O-KEY-2-ID 050 001 X - ITM_TYPE char(1) Alternate Key 2 Id Mandatory,
value:
‘Q’ for Order
‘S’ for
Invoice
FILLER 051 005 X - - - -
SPMF-O-HIGHEST-REFERENCE 056 010 X - HIGH_REF char(10) Highest Reference May be Order,
GRN, or
Invoice
Reference
- - - - - ORD_STATUS char(2) Order Status 1 & 2 See below
SPMF-O-ORDER-STATUS-1 066 001 N - - - Order Status 1 Value may be:
0=Held/
Released
6=Issued
(Printed)
9=Dummy-
Invoice/
Receipt entry

SunSystems 4 – Technical Reference Manual Page 324 of 455


The Goods Receipt Stage record, see [Link] SQL table name SPMFDTGddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-O-ORDER-STATUS-2 067 001 N - - - Order Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
- - - - - GRN_STATUS char(2) GRN Status 1 & 2 See below
SPMF-O-GRN-STATUS-1 068 001 N - - - GRN Status 1 Value may be:
0=Awaited
1=Matched
(Held)
2=Matched
(Held),
Approved
(Held)
3=Matched
(Released)
4=Matched
(Released),
Approved
(Held)
5=Matched
(Released),
Approved
(Released)
9=No Goods
Expected
SPMF-O-GRN-STATUS-2 069 001 N - - - GRN Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
4=Over-
delivered
- - - - - INV_STATUS char(2) Invoice Status 1 & 2 See below

SunSystems 4 – Technical Reference Manual Page 325 of 455


The Goods Receipt Stage record, see [Link] SQL table name SPMFDTGddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-O-INVOICE-STATUS-1 070 001 N - - - Invoice Status 1 Value may be:
0=Awaited
1=Matched
(Held)
2=Matched
(Held),
Approved
(Held)
3=Matched
(Released)
4=Matched
(Released),
Approved
(Held)
5=Matched
(Released),
Approved
(Released)
SPMF-O-INVOICE-STATUS-2 071 001 N - - - Invoice Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
SPMF-O-CD 072 001 X - TRANS_CD char(1) Credit/Debit Value ’C’ or
Indicator ’D’
SPMF-O-LINKED-TEXT 073 001 X - LINK_TEXT char(1) Not used at version
4.2
SPMF-O-ID-ORDER 074 003 X - ID_ORDER char(3) Order Id
SPMF-O-ID-GRN 077 003 X - ID_GRN char(3) User Id
SPMF-O-ID-INVOICED 080 003 X - ID_INV char (3) Invoice Id
SPMF-O-SUPP-ITEM-DESC 083 030 X - SUPP_DESCR char(30) Supplier Item
Description
SPMF-O-SUPP-ITEM-CODE 113 015 X - SUPP_ITEM_CODE char(15) Supplier Item Code
SPMF-O-PURCH-QTY 128 010 S - PURCH_QTY numeric Purchase Quantity PICS 9(13)
V99999 COMP-3
SPMF-O-PURCH-UNIT 138 005 X - PURCH_UNIT char (5) Unit of Purchase
SPMF-O-STOCK-QTY 143 010 S - STOCK_QTY numeric Stock Quantity PICS 9(13)
V99999 COMP-3
SPMF-O-BASE-COST 153 010 S - BASE_COST numeric Base Purchase Cost PICS 9(13)
V9(5) COMP-3
SPMF-O-CALC-VALUE-1 163 010 S - VALUE_1 numeric Value of Calc’n Code PICS 9(13)
1 V99999 COMP-3

SunSystems 4 – Technical Reference Manual Page 326 of 455


The Goods Receipt Stage record, see [Link] SQL table name SPMFDTGddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-O-CALC-VALUE-2 173 010 S - VALUE_2 numeric Value of Calc’n Code PICS 9(13)
2 V99999 COMP-3
SPMF-O-CALC-VALUE-3 183 010 S - VALUE_3 numeric Value of Calc’n Code PICS 9(13)
3 V99999 COMP-3
SPMF-O-CALC-VALUE-4 193 010 S - VALUE_4 numeric Value of Calc’n Code PICS 9(13)
4 V99999 COMP-3
SPMF-O-CALC-VALUE-5 203 010 S - VALUE_5 numeric Value of Calc’n Code PICS 9(13)
5 V99999 COMP-3
SPMF-O-CALC-VALUE-6 213 010 S - VALUE_6 numeric Value of Calc’n Code PICS 9(13)
6 V99999 COMP-3
SPMF-O-CALC-VALUE-7 223 010 S - VALUE_7 numeric Value of Calc’n Code PICS 9(13)
7 V99999 COMP-3
SPMF-O-CALC-VALUE-8 233 010 S - VALUE_8 numeric Value of Calc’n Code PICS 9(13)
8 V99999 COMP-3
SPMF-O-CALC-VALUE-9 243 010 S - VALUE_9 numeric Value of Calc’n Code PICS 9(13)
9 V99999 COMP-3
SPMF-O-CALC-VALUE-10 253 010 S - VALUE_10 numeric Value of Calc’n Code PICS 9(13)
10 V99999 COMP-3
SPMF-O-CALC-VALUE-11 263 010 S - VALUE_11 numeric Value of Calc’n Code PICS 9(13)
11 V99999 COMP-3
SPMF-O-CALC-VALUE-12 273 010 S - VALUE_12 numeric Value of Calc’n Code PICS 9(13)
12 V99999 COMP-3
SPMF-O-CALC-VALUE-13 283 010 S - VALUE_13 numeric Value of Calc’n Code PICS 9(13)
13 V99999 COMP-3
SPMF-O-CALC-VALUE-14 293 010 S - VALUE_14 numeric Value of Calc’n Code PICS 9(13)
14 V99999 COMP-3
SPMF-O-CALC-VALUE-15 303 010 S - VALUE_15 numeric Value of Calc’n Code PICS 9(13)
15 V99999 COMP-3
SPMF-O-CALC-VALUE-16 313 010 S - VALUE_16 numeric Value of Calc’n Code PICS 9(13)
16 V99999 COMP-3
SPMF-O-CALC-VALUE-17 323 010 S - VALUE_17 numeric Value of Calc’n Code PICS 9(13)
17 V99999 COMP-3
FILLER 333 020 X - - - -
SPMF-O-GRN-REFERENCE 353 010 X - GRN_REF char(10) GRN Reference
SPMF-O-GRN-DATE 363 005 N - GRN_DATE int GRN Date PIC 9(8)
COMP-3
SPMF-O-DEL-ADVISED 368 001 X - DEL_ADVISD char(1) Delivery Advised
SPMF-O-INV-DATE 369 005 N - INV_DATE int Invoice Date PIC 9(8)
COMP-3

SunSystems 4 – Technical Reference Manual Page 327 of 455


The Goods Receipt Stage record, see [Link] SQL table name SPMFDTGddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-O-INV-PERIOD 374 007 N - INV_PRD int Period Invoiced
SPMF-O-INV-APPROV-DATE 381 005 N - INV_APPR_DATE int Approval Date PIC 9(8)
COMP-3
SPMF-O-TRANS-TYPE 386 005 X - TRANS_TYPE char(5) Purchase Order Type
SPMF-O-STOCK-UPDATED 391 001 X - STOCK_UPD char(1) Stock Updated
Indicator
SPMF-O-REASON-CODE 392 001 X - REASON char(1) Reason Code
SPMF-O-LINE-VALUE 393 002 N - LINE_VAL char(2) Line value calc’n
code no.
SPMF-O-MATCH-VALUE 395 002 N - MATCH_VAL char(2) Match value calc’n
code no.
SPMF-O-COST-VALUE 397 002 N - COST_VAL char(2) Cost value calc’n
code no.
SPMF-O-ACCOUNT-CODE 399 015 X - ACCNT_CODE char(15) Account Code
SPMF-O-ASSET-CODE 414 010 X - ASSET_CODE char(10) Asset Code
SPMF-O-ASSET-SUB-CODE 424 005 X - ASSET_SUB char(5) Asset Sub-Code
SPMF-O-ASSET-IND 429 001 X - ASSET_IND char(1) Asset Marker
SPMF-O-RECEIPT-REF 430 015 X - RECEIPT_REF char(15) Receipt Reference
SPMF-O-AUDIT-DATE 445 005 N - AUDIT_DATE int(4) Audit Date PIC 9(8)
COMP-3
SPMF-O-ANAL-CODE-0 450 015 X - ANAL_M0 char(15) Analysis Code 0
SPMF-O-ANAL-CODE-1 465 015 X - ANAL_M1 char(15) Analysis Code 1
SPMF-O-ANAL-CODE-2 480 015 X - ANAL_M2 char(15) Analysis Code 2
SPMF-O-ANAL-CODE-3 495 015 X - ANAL_M3 char(15) Analysis Code 3
SPMF-O-ANAL-CODE-4 510 015 X - ANAL_M4 char(15) Analysis Code 4
SPMF-O-ANAL-CODE-5 525 015 X - ANAL_M5 char(15) Analysis Code 5
SPMF-O-ANAL-CODE-6 540 015 X - ANAL_M6 char(15) Analysis Code 6
SPMF-O-ANAL-CODE-7 555 015 X - ANAL_M7 char(15) Analysis Code 7
SPMF-O-ANAL-CODE-8 570 015 X - ANAL_M8 char(15) Analysis Code 8
SPMF-O-ANAL-CODE-9 585 015 X - ANAL_M9 char(15) Analysis Code 9
SPMF-O-UNAPP-PERIOD- 600 007 N - UNAPP_PRD_POST int Unapproved Posting
POSTED Date
SPMF-O-ORDER-DATE 607 005 N - ORDER_DATE int Order Date PIC 9(8) COMP-
3.
SPMF-O-STOCK-PERIOD- 612 007 N - STOCK_PRD_POSTED int Period SI posted
POSTED
SPMF-O-PERIOD-ORDERED 619 007 N - PERIOD_ORDERED int Period Ordered
SPMF-O-AMEND-DATE 626 005 N - AMEND_DATE int Amended Date PIC9(8)COMP-3.
SPMF-O-ORIG-LINE-NO-A 631 003 N - ORIG_LINE_NUMBER char(4) Original Line Number
SPMF-O-ORIG-LINE-NO-B 634 001 X - - - -

SunSystems 4 – Technical Reference Manual Page 328 of 455


The Goods Receipt Stage record, see [Link] SQL table name SPMFDTGddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-O-MVT-VALUE 635 010 N - MOVEMENT_VALUE numeric Movement Value PICS9(13)V9(5)
COMP-3.
SPMF-O-BCHECK-VALUE 645 002 N - BCHECK_VALUE int Budget Check
SPMF-O-EXPEND-CHECK-VALUE 647 002 N - EXP_CHECK_VALUE int Expenditure Check
SPMF-O-MISC-DOC-PRINT(1) 649 001 X - MISC_DOC_PRINT1 char(1)
SPMF-O-MISC-DOC-PRINT(2) 650 001 X - MISC_DOC_PRINT2 char(1)
SPMF-O-MISC-DOC-PRINT(3) 651 001 X - MISC_DOC_PRINT3 char(1)
SPMF-O-MISC-DOC-PRINT(4) 652 001 X - MISC_DOC_PRINT4 char(1)
SPMF-O-MISC-DOC-PRINT(5) 653 001 X - MISC_DOC_PRINT5 char(1)
FILLER 654 371 X - - -

SunSystems 4 – Technical Reference Manual Page 329 of 455


The Unapproved Invoice Stage record, see [Link] SQL table name SPMFDTIddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-P -REC-TYPE 001 001 X - REC_TYPE char(1) Record Type Mandatory,
value ’P’
FILLER 002 005 X - - - -
- - - - - TRANS_REF char(10) Order Reference Mandatory
SPMF-P-REF-PREFIX 007 004 X - - - Order Ref. Prefix
SPMF-P-REF-SUFFIX 011 006 N - - - Order Ref. Suffix Mandatory
- - - - - TRANS_LINE char(4) Transaction Line No. Mandatory,
1st 3 chars.
numeric
SPMF-P-LINE-NO-A 017 003 N - - - Transaction Line No. Mandatory
A
SPMF-P-LINE-NO-B 020 001 X - - - Transaction Line No.
B
SPMF-P-KEY-1-ID 021 001 X - - - Alternate Key 1 Id Mandatory,
value Space
SPMF-P-LOCATION 022 005 X - LOCATION char(5) Location Code Mandatory
SPMF-P-ITEM-CODE 027 015 X - ITEM_CODE char(15) Item Code Mandatory
SPMF-P-DEL-DATE 042 005 N - DEL_DATE int Delivery Date Mandatory,
PIC 9(8)
COMP-3
SPMF-P-SEQUENCE 047 003 N - - - Sequence PIC 9(4)
COMP-3
SPMF-P-KEY-2-ID 050 001 X - ITM_TYPE char(1) Alternate Key 2 Id Mandatory,
value:
‘Q’ for Order
‘S’ for
Invoice
FILLER 051 005 X - - - -
SPMF-P-HIGHEST-REFERENCE 056 010 X - HIGH_REF char(10) Highest Reference May be Order,
GRN, or
Invoice
Reference
- - - - - ORD_STATUS char(2) Order Status 1 & 2 See below
SPMF-P-ORDER-STATUS-1 066 001 N - - - Order Status 1 Value may be:
0=Held/
Released
6=Issued
(Printed)
9=Dummy-
Invoice/
Receipt entry

SunSystems 4 – Technical Reference Manual Page 330 of 455


The Unapproved Invoice Stage record, see [Link] SQL table name SPMFDTIddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-P-ORDER-STATUS-2 067 001 N - - - Order Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
- - - - - GRN_STATUS char(2) GRN Status 1 & 2 See below
SPMF-P-GRN-STATUS-1 068 001 N - - - GRN Status 1 Value may be:
0=Awaited
1=Matched
(Held)
2=Matched
(Held),
Approved
(Held)
3=Matched
(Released)
4=Matched
(Released),
Approved
(Held)
5=Matched
(Released),
Approved
(Released)
9=No Goods
Expected
SPMF-P-GRN-STATUS-2 069 001 N - - - GRN Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
4=Over-
delivered
- - - - - INV_STATUS char(2) Invoice Status 1 & 2 See below

SunSystems 4 – Technical Reference Manual Page 331 of 455


The Unapproved Invoice Stage record, see [Link] SQL table name SPMFDTIddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-P-INVOICE-STATUS-1 070 001 N - - - Invoice Status 1 Value may be:
0=Awaited
1=Matched
(Held)
2=Matched
(Held),
Approved
(Held)
3=Matched
(Released)
4=Matched
(Released),
Approved
(Held)
5=Matched
(Released),
Approved
(Released)
SPMF-P-INVOICE-STATUS-2 071 001 N - - - Invoice Status 2 Value may be:
1=Cancelled
2=Undelivered
3=Rejected
SPMF-P-CD 072 001 X - TRANS_CD char(1) Credit/Debit Value ’C’ or
Indicator ’D’
SPMF-P-LINKED-TEXT 073 001 X - LINK_TEXT char(1) Not used at version
4.2
SPMF-P-ID-ORDER 074 003 X - ID_ORDER char(3) Order Id
SPMF-P-ID-GRN 077 003 X - ID_GRN char(3) User Id
SPMF-P-ID-INVOICED 080 003 X - ID_INV char(3) Invoice Id
SPMF-P-SUPP-ITEM-DESC 083 030 X - SUPP_DESCR char(30) Supplier Item
Description
SPMF-P-SUPP-ITEM-CODE 113 015 X - SUPP_ITEM_CODE char(15) Supplier Item Code
SPMF-P-PURCH-QTY 128 010 S - PURCH_QTY numeric Purchase Quantity PICS 9(13)
V99999 COMP-3
SPMF-P-PURCH-UNIT 138 005 X - PURCH_UNIT char(5) Unit of Purchase
SPMF-P-STOCK-QTY 143 010 S - STOCK_QTY numeric Stock Quantity PICS 9(13)
V99999 COMP-3
SPMF-P-BASE-COST 153 010 S - BASE_COST numeric Base Purchase Cost PICS 9(13)
V9(5) COMP-3

SunSystems 4 – Technical Reference Manual Page 332 of 455


The Unapproved Invoice Stage record, see [Link] SQL table name SPMFDTIddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-P-CALC-VALUE-1 163 010 S - VALUE_1 numeric Value of Calc’n Code PICS 9(13)
1 V99999 COMP-3
SPMF-P-CALC-VALUE-2 173 010 S - VALUE_2 numeric Value of Calc’n Code PICS 9(13)
2 V99999 COMP-3
SPMF-P-CALC-VALUE-3 183 010 S - VALUE_3 numeric Value of Calc’n Code PICS 9(13)
3 V99999 COMP-3
SPMF-P-CALC-VALUE-4 193 010 S - VALUE_4 numeric Value of Calc’n Code PICS 9(13)
4 V99999 COMP-3
SPMF-P-CALC-VALUE-5 203 010 S - VALUE_5 numeric Value of Calc’n Code PICS 9(13)
5 V99999 COMP-3
SPMF -P-CALC-VALUE-6 213 010 S - VALUE_6 numeric Value of Calc’n Code PICS 9(13)
6 V99999 COMP-3
SPMF-P-CALC-VALUE-7 223 010 S - VALUE_7 numeric Value of Calc’n Code PICS 9(13)
7 V99999 COMP-3
SPMF-P-CALC-VALUE-8 233 010 S - VALUE_8 numeric Value of Calc’n Code PICS 9(13)
8 V99999 COMP-3
SPMF-P-CALC-VALUE-9 243 010 S - VALUE_9 numeric Value of Calc’n Code PICS 9(13)
9 V99999 COMP-3
SPMF-P-CALC-VALUE-10 253 010 S - VALUE_10 numeric Value of Calc’n Code PICS 9(13)
10 V99999 COMP-3
SPMF-P-CALC-VALUE-11 263 010 S - VALUE_11 numeric Value of Calc’n Code PICS 9(13)
11 V99999 COMP-3
SPMF-P-CALC-VALUE-12 273 010 S - VALUE_12 numeric Value of Calc’n Code PICS 9(13)
12 V99999 COMP-3
SPMF-P-CALC-VALUE-13 283 010 S - VALUE_13 numeric Value of Calc’n Code PICS 9(13)
13 V99999 COMP-3
SPMF-P-CALC-VALUE-14 293 010 S - VALUE_14 numeric Value of Calc’n Code PICS 9(13)
14 V99999 COMP-3
SPMF-P-CALC-VALUE-15 303 010 S - VALUE_15 numeric Value of Calc’n Code PICS 9(13)
15 V99999 COMP-3
SPMF-P-CALC-VALUE-16 313 010 S - VALUE_16 numeric Value of Calc’n Code PICS 9(13)
16 V99999 COMP-3
SPMF-P-CALC-VALUE-17 323 010 S - VALUE_17 numeric Value of Calc’n Code PICS 9(13)
17 V99999 COMP-3
FILLER 333 020 X - - - -
SPMF-P-GRN-REFERENCE 353 010 X - GRN_REF char(10) GRN Reference
SPMF-P-GRN-DATE 363 005 N - GRN_DATE int GRN Date PIC 9(8)
COMP-3
SPMF-P-DEL-ADVISED 368 001 X - DEL_ADVISD char(1) Delivery Advised

SunSystems 4 – Technical Reference Manual Page 333 of 455


The Unapproved Invoice Stage record, see [Link] SQL table name SPMFDTIddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-P-INV-DATE 369 005 N - INV_DATE int Invoice Date PIC 9(8)
COMP-3
SPMF-P-INV-PERIOD 374 007 N - INV_PRD int Period Invoiced
SPMF-P-INV-APPROV-DATE 381 005 N - INV_APPR_DATE int Approval Date PIC 9(8)
COMP-3
SPMF-P-TRANS-TYPE 386 005 X - TRANS_TYPE char(5) Purchase Order Type
SPMF-P-STOCK-UPDATED 391 001 X - STOCK_UPD char(1) Stock Updated
Indicator
SPMF-P-REASON-CODE 392 001 X - REASON char(1) Reason Code
SPMF-P-LINE-VALUE 393 002 N - LINE_VAL char(2) Line value calc’n
code no.
SPMF-P-MATCH-VALUE 395 002 N - MATCH_VAL char(2) Match value calc’n
code no.
SPMF-P-COST-VALUE 397 002 N - COST_VAL char(2) Cost value calc’n
code no.
SPMF-P-ACCOUNT-CODE 399 015 X - ACCNT_CODE char(15) Account Code
SPMF-P-ASSET-CODE 414 010 X - ASSET_CODE char(10) Asset Code
SPMF-O-ASSET-SUB-CODE 424 005 X - ASSET_SUB char(5) Asset Sub-Code
SPMF-O-ASSET-IND 429 001 X - ASSET_IND char(1) Asset Marker
SPMF-O-RECEIPT-REF 430 015 X - RECEIPT_REF char(15) Receipt Reference
SPMF-O-AUDIT-DATE 445 005 N - AUDIT_DATE int(4) Audit Date PIC 9(8) COMP-
3
SPMF-O-ANAL-CODE-0 450 015 X - ANAL_M0 char(15) Analysis Code 0
SPMF-O-ANAL-CODE-1 465 015 X - ANAL_M1 char(15) Analysis Code 1
SPMF-O-ANAL-CODE-2 480 015 X - ANAL_M2 char(15) Analysis Code 2
SPMF-O-ANAL-CODE-3 495 015 X - ANAL_M3 char(15) Analysis Code 3
SPMF-O-ANAL-CODE-4 510 015 X - ANAL_M4 char(15) Analysis Code 4
SPMF-O-ANAL-CODE-5 525 015 X - ANAL_M5 char(15) Analysis Code 5
SPMF-O-ANAL-CODE-6 540 015 X - ANAL_M6 char(15) Analysis Code 6
SPMF-O-ANAL-CODE-7 555 015 X - ANAL_M7 char(15) Analysis Code 7

SunSystems 4 – Technical Reference Manual Page 334 of 455


The Unapproved Invoice Stage record, see [Link] SQL table name SPMFDTIddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPMF-O-ANAL-CODE-8 570 015 X - ANAL_M8 char(15) Analysis Code 8
SPMF-O-ANAL-CODE-9 585 015 X - ANAL_M9 char(15) Analysis Code 9
SPMF-O-UNAPP-PERIOD- 600 007 N - UNAPP_PRD_POST int Unapproved Posting
POSTED Date
SPMF-O-ORDER-DATE 607 005 N - ORDER_DATE int Order Date PIC 9(8) COMP-
3.
SPMF-O-STOCK-PERIOD- 612 007 N - STOCK_PRD_POSTED int Period SI posted
POSTED
SPMF-O-PERIOD-ORDERED 619 007 N - PERIOD_ORDERED int Period Ordered
SPMF-O-AMEND-DATE 626 005 N - AMEND_DATE int Amended Date PIC9(8)COMP-3.
SPMF-O-ORIG-LINE-NO-A 631 003 N - ORIG_LINE_NUMBER char(4) Original Line Number
SPMF-O-ORIG-LINE-NO-B 634 001 X - - - -
SPMF-O-MVT-VALUE 635 010 N - MOVEMENT_VALUE numeric Movement Value PICS9(13)V9(5)
COMP-3.
SPMF-O-BCHECK-VALUE 645 002 N - BCHECK_VALUE int Budget Check
SPMF-O-EXPEND-CHECK-VALUE 647 002 N - EXP_CHECK_VALUE int Expenditure Check
SPMF-O-MISC-DOC-PRINT(1) 649 001 X - MISC_DOC_PRINT1 char(1)
SPMF-O-MISC-DOC-PRINT(2) 650 001 X - MISC_DOC_PRINT2 char(1)
SPMF-O-MISC-DOC-PRINT(3) 651 001 X - MISC_DOC_PRINT3 char(1)
SPMF-O-MISC-DOC-PRINT(4) 652 001 X - MISC_DOC_PRINT4 char(1)
SPMF-O-MISC-DOC-PRINT(5) 653 001 X - MISC_DOC_PRINT5 char(1)
FILLER 654 371 X - - -

SunSystems 4 – Technical Reference Manual Page 335 of 455


The Sales History File
Description
The Sales History file holds a summary of completed sales orders and invoices that were entered
into SunBusiness through the Sales Order Processing module, and then cleared down through
Period Cleardown.
Summary of Record Types
There are the following types of record on the Sales Order file:
the Control record
the Usage record.
There is one Control record (type ‘C’) per file; there is one Usage (type ‘U’) record per item been
cleared down - this depends on the amount of consolidation being performed at the cleardown.
Cobol Select...Assign Statement
SELECT HISTORY-FILE ASSIGN
M HISTORY-FILE-NAME
V * “SOHF_DEM.DAT”
ORGANISATION SEQUENTIAL
STATUS HISTORY-FILE-STATUS.
Cobol File Description (FD)
M FD HISTORY-FILE.
V *FD HISTORY-FILE VALUE OF ID IS HISTORY-FILE-NAME.
MV COPY ‘[Link]’.
The record length is 1024 bytes.

SunSystems 4 – Technical Reference Manual Page 336 of 455


Sales History File Record Descriptions
The Control record, see [Link], SQL table name SOHFMSC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - D_BASE char(3) Database Code Mandatory
HC-TRANS-TYPE 001 001 X - - - Record Type Mandatory,
value ’C’
HC-VERSION 002 003 N - VERSION char(3) Version Mandatory,
value 420
FILLER 005 398 X - - - -
FILLER 403 098 X - - - -

SunSystems 4 – Technical Reference Manual Page 337 of 455


The Usage record, see [Link], SQL table name SOHFOHFddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
BD-TRANS-TYPE 001 001 X - - - Record Type Mandatory,
value ’U’
BD-PERIOD 002 007 N - PERIOD int Period Mandatory
BD-LOCATION 009 005 X - LOCATION char(5) Location Code
BD-ITEM-CODE 014 015 X - ITEM_CODE char(15) Item Code
BD-TRANS-DATE 029 008 N - TRANS_DATE int Transaction Date
BD-TRANS-CD 037 001 X - TRANS_CD char(1) -
Not used - value zero
BD-VALUE-1 038 010 S - VALUE_1 numeric Value of Calc’n Code PICS 9(13)
1 V99999 COMP-3
BD-VALUE-2 048 010 S - VALUE_2 numeric Value of Calc’n Code PICS 9(13)
2 V99999 COMP-3
BD-VALUE-3 058 010 S - VALUE_3 numeric Value of Calc’n Code PICS 9(13)
3 V99999 COMP-3
BD-VALUE-4 068 010 S - VALUE_4 numeric Value of Calc’n Code PICS 9(13)
4 V99999 COMP-3
BD-VALUE-5 078 010 S - VALUE_5 numeric Value of Calc’n Code PICS 9(13)
5 V99999 COMP-3
BD-VALUE-6 088 010 S - VALUE_6 numeric Value of Calc’n Code PICS 9(13)
6 V99999 COMP-3
BD-VALUE-7 098 010 S - VALUE_7 numeric Value of Calc’n Code PICS 9(13)
7 V99999 COMP-3
BD-VALUE-8 108 010 S - VALUE_8 numeric Value of Calc’n Code PICS 9(13)
8 V99999 COMP-3
BD-VALUE-9 118 010 S - VALUE_9 numeric Value of Calc’n Code PICS 9(13)
9 V99999 COMP-3
BD-VALUE-10 128 010 S - VALUE_10 numeric Value of Calc’n Code PICS 9(13)
10 V99999 COMP-3
BD-VALUE-11 138 010 S - VALUE_11 numeric Value of Calc’n Code PICS 9(13)
11 V99999 COMP-3
BD-VALUE-12 148 010 S - VALUE_12 numeric Value of Calc’n Code PICS 9(13)
12 V99999 COMP-3
BD-VALUE-13 158 010 S - VALUE_13 numeric Value of Calc’n Code PICS 9(13)
13 V99999 COMP-3
BD-VALUE-14 168 010 S - VALUE_14 numeric Value of Calc’n Code PICS 9(13)
14 V99999 COMP-3
BD-VALUE-15 178 010 S - VALUE_15 numeric Value of Calc’n Code PICS 9(13)
15 V99999 COMP-3

SunSystems 4 – Technical Reference Manual Page 338 of 455


The Usage record, see [Link], SQL table name SOHFOHFddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
BD-VALUE-16 188 010 S - VALUE_16 numeric Value of Calc’n Code PICS 9(13)
16 V99999 COMP-3
BD-VALUE-17 198 010 S - VALUE_17 numeric Value of Calc’n Code PICS 9(13)
17 V99999 COMP-3
BD-VALUE-18 208 010 S - VALUE_18 numeric Value of Calc’n Code PICS 9(13)
18 V99999 COMP-3
BD-VALUE-19 218 010 S - VALUE_19 numeric Value of Calc’n Code PICS 9(13)
19 V99999 COMP-3
BD-VALUE-20 228 010 S - VALUE_20 numeric Value of Calc’n Code PICS 9(13)
20 V99999 COMP-3
BD-TRANS-CODE 238 005 X - TRANS_CODE char(5) Sales Order Type
BD-CUSTOMER-CODE 243 010 X - CUSTOMER_CODE char(10) Customer Address Code
BD-ANALYSIS-CODE-0 253 015 X - ANALYSIS_CODE_0 char(15) Analysis Code 0
BD-ANALYSIS-CODE-1 268 015 X - ANALYSIS_CODE_1 char(15) Analysis Code 1
BD-ANALYSIS-CODE-2 283 015 X - ANALYSIS_CODE_2 char(15) Analysis Code 2
BD-ANALYSIS-CODE-3 298 015 X - ANALYSIS_CODE_3 char(15) Analysis Code 3
BD-ANALYSIS-CODE-4 313 015 X - ANALYSIS_CODE_4 char(15) Analysis Code 4
BD-ANALYSIS-CODE-5 328 015 X - ANALYSIS_CODE_5 char(15) Analysis Code 5
BD-ANALYSIS-CODE-6 343 015 X - ANALYSIS_CODE_6 char(15) Analysis Code 6
BD-ANALYSIS-CODE-7 358 015 X - ANALYSIS_CODE_7 char(15) Analysis Code 7
BD-ANALYSIS-CODE-8 373 015 X - ANALYSIS_CODE_8 char(15) Analysis Code 8
BD-ANALYSIS-CODE-9 388 015 X - ANALYSIS_CODE_9 char(15) Analysis Code 9
FILLER 403 098 X - - - -

SunSystems 4 – Technical Reference Manual Page 339 of 455


The Purchase History File
Description
The Purchase History file holds a summary of completed purchase orders and invoices that were
entered into SunBusiness through the Purchase Order Processing module, and then cleared
down through Period Cleardown.
Summary of Record Types
There are the following types of record on the Purchase Order file:
the Control record
the Balance record.
There is one Control record (type ‘C’) per file: there is one Balance (type ‘S’) record per item been
cleared down - this depends on the amount of consolidation being performed at the cleardown.
Cobol Select...Assign Statement
SELECT HISTORY-FILE ASSIGN
M HISTORY-FILE-NAME
V * “SPHF_DEM.DAT”
ORGANISATION SEQUENTIAL
STATUS HISTORY-FILE-STATUS.
Cobol File Description (FD)
M FD HISTORY-FILE.
V *FD HISTORY-FILE VALUE OF ID IS HISTORY-FILE-NAME.
MV COPY “[Link]”.
The record length is 1024 bytes.

SunSystems 4 – Technical Reference Manual Page 340 of 455


Purchase History File Record Descriptions
The Control record, see [Link], SQL table name SPHFMSC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - D_BASE char(3) Database Code Mandatory
SPHF-C-REC-TYPE 001 001 X - - - Record Type Mandatory,
value’C’
SPHF-C-VERSION 002 003 N - VERSION char(3) Version Mandatory,
value 420
FILLER 005 496 X - - - -

SunSystems 4 – Technical Reference Manual Page 341 of 455


The Balance record, see [Link], SQL table name SPHFPHFddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPHF-S-REC-TYPE 001 001 X - - - Record Type Mandatory,
value ’S’
SPHF-S-INV-PERIOD 002 007 N - INV_PERIOD int Period Invoiced
SPHF-S-LOCATION 009 005 X - LOCATION char(5) Location Code
SPHF-S-ITEM-CODE 014 015 X - ITEM_CODE char(15) Item Code
SPHF-S-DEL-DATE 029 005 N - DEL_DATE int Delivery Date PIC 9(8)
COMP-3
SPHF-S-CD 034 001 X - CD char(1) Credit/Debit Value ’C’ or
Indicator ’D’
SPHF-S-PURCH-QTY 035 010 S - PURCH_QTY numeric Purchase Quantity PICS 9(13)
V99999 COMP-3
SPHF-S-STOCK-QTY 045 010 S - STOCK_QTY numeric Stock Quantity PICS 9(13)
V99999 COMP-3
SPHF-S-CALC-VALUE-1 055 010 S - CALC_VALUE_1 numeric Value of Calc’n Code PICS 9(13)
1 V99999 COMP-3
SPHF-S-CALC-VALUE-2 065 010 S - CALC_VALUE_2 numeric Value of Calc’n Code PICS 9(13)
2 V99999 COMP-3
SPHF-S-CALC-VALUE-3 075 010 S - CALC_VALUE_3 numeric Value of Calc’n Code PICS 9(13)
3 V99999 COMP-3
SPHF-S-CALC-VALUE-4 085 010 S - CALC_VALUE_4 numeric Value of Calc’n Code PICS 9(13)
4 V99999 COMP-3
SPHF-S-CALC-VALUE-5 095 010 S - CALC_VALUE_5 numeric Value of Calc’n Code PICS 9(13)
5 V99999 COMP-3
SPHF-S-CALC-VALUE-6 105 010 S - CALC_VALUE_6 numeric Value of Calc’n Code PICS 9(13)
6 V99999 COMP-3
SPHF-S-CALC-VALUE-7 115 010 S - CALC_VALUE_7 numeric Value of Calc’n Code PICS 9(13)
7 V99999 COMP-3
SPHF-S-CALC-VALUE-8 125 010 S - CALC_VALUE_8 numeric Value of Calc’n Code PICS 9(13)
8 V99999 COMP-3
SPHF-S-CALC-VALUE-9 135 010 S - CALC_VALUE_9 numeric Value of Calc’n Code PICS 9(13)
9 V99999 COMP-3
SPHF-S-CALC-VALUE-10 145 010 S - CALC_VALUE_10 numeric Value of Calc’n Code PICS 9(13)
10 V99999 COMP-3
SPHF-S-CALC-VALUE-11 155 010 S - CALC_VALUE_11 numeric Value of Calc’n Code PICS 9(13)
11 V99999 COMP-3
SPHF-S-CALC-VALUE-12 165 010 S - CALC_VALUE_12 numeric Value of Calc’n Code PICS 9(13)
12 V99999 COMP-3
SPHF-S-CALC-VALUE-13 175 010 S - CALC_VALUE_13 numeric Value of Calc’n Code PICS 9(13)
13 V99999 COMP-3

SunSystems 4 – Technical Reference Manual Page 342 of 455


The Balance record, see [Link], SQL table name SPHFPHFddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
SPHF-S-CALC-VALUE-14 185 010 S - CALC_VALUE_14 numeric Value of Calc’n Code PICS 9(13)
14 V99999 COMP-3
SPHF-S-CALC-VALUE-15 195 010 S - CALC_VALUE_15 numeric Value of Calc’n Code PICS 9(13)
15 V99999 COMP-3
SPHF-S-CALC-VALUE-16 205 010 S - CALC_VALUE_16 numeric Value of Calc’n Code PICS 9(13)
16 V99999 COMP-3
SPHF-S-CALC-VALUE-17 215 010 S - CALC_VALUE_17 numeric Value of Calc’n Code PICS 9(13)
17 V99999 COMP-3
SPHF-S-TRANS-TYPE 225 005 X - TRANS_TYPE char(5) Purchase Order Type
SPHF-S-SUPPLIER-CODE 230 010 X - SUPPLIER_CODE char(10) Supplier Address Code
SPHF-S-REASON-CODE 240 001 X - REASON_CODE char(1) Reason Code
SPHF-S-ANAL-CODE-0 241 015 X - ANAL_CODE_0 char(15) Analysis Code 0
SPHF-S-ANAL-CODE-1 256 015 X - ANAL_CODE_1 char(15) Analysis Code 1
SPHF-S-ANAL-CODE-2 271 015 X - ANAL_CODE_2 char(15) Analysis Code 2
SPHF-S-ANAL-CODE-3 286 015 X - ANAL_CODE_3 char(15) Analysis Code 3
SPHF-S-ANAL-CODE-4 301 015 X - ANAL_CODE_4 char(15) Analysis Code 4
SPHF-S-ANAL-CODE-5 316 015 X - ANAL_CODE_5 char(15) Analysis Code 5
SPHF-S-ANAL-CODE-6 331 015 X - ANAL_CODE_6 char(15) Analysis Code 6
SPHF-S-ANAL-CODE-7 346 015 X - ANAL_CODE_7 char(15) Analysis Code 7
SPHF-S-ANAL-CODE-8 361 015 X - ANAL_CODE_8 char(15) Analysis Code 8
SPHF-S-ANAL-CODE-9 376 015 X - ANAL_CODE_9 char(15) Analysis Code 9
FILLER 391 110 X - - - -

SunSystems 4 – Technical Reference Manual Page 343 of 455


The Reference Audit File
Description
The Reference Audit file holds the audit trail details for the relevant Reference data. See the
subsection Data File Naming, in the section Naming Conventions for further information about
naming and usage of Reference Audit files.
Cobol Select...Assign Statement
M SELECT REF-AUDIT-FILE ASSIGN
V * SELECT OPTIONAL REF-AUDIT-FILE ASSIGN
M REF-AUDIT-FILE-NAME
M ORGANISATION LINE SEQUENTIAL
V * “SSRA_XXX.YYY”
V * ORGANISATION SEQUENTIAL
STATUS REF-AUDIT-FILE-STATUS.
Cobol File Description (FD)
M FD REF-AUDIT-FILE.
V *FD REF-AUDIT-FILE
V * VALUE OF ID IS REF-AUDIT-FILE-NAME.
01 REF-AUDIT-RECORD PIC X(1024).

SunSystems 4 – Technical Reference Manual Page 344 of 455


Reference Audit File Record Descriptions
The Reference Audit record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
REF-AUDIT-BEFORE-AFTER 001 001 X - Before/After Indicator
REF-AUDIT-SELECTION 002 001 X - Selection (Create, Amend etc)
REF-AUDIT-OP-ID 003 003 X - Operator Id
FILLER 006 064 X - Key Fields
REF-AUDIT-LOOKUP-ID 070 003 X - Lookup Id
FILLER 073 010 X - Lookup Code
REF-AUDIT-DATE-UPDATED 083 008 N - Date Updated
FILLER 091 939 X - Rest of Reference Data
FILLER 103 007 X - Rest of Reference Data

SunSystems 4 – Technical Reference Manual Page 345 of 455


In SQL systems, the data is stored in the following table, called SSRAINS for the installation file
audit trail, and SSRAREF for the Reference file.

FIELD NAME FIELD TYPE COMMENT


DATA_1 char(5) Contains Before/After Indicator,Selection, and Operator Id
DATA_2 char(29) Rest of key fields and Lookup fields
DATA_3 char(255) Rest of Reference Data
REC_TYPE char(3) Record Type
UPDTE_DATE char(8) Date Updated
UPDTE_TIME char(8) Extra Field, not on non-SQL

Note: Oracle (O) fields have different datatype to SQL Server fields (S)

SunSystems 4 – Technical Reference Manual Page 346 of 455


The SunBusiness Transfer File
Description
The SunBusiness Transfer files hold transactions that have been created in SunBusiness, ready
to be posted into SunAccount. This may be sales invoices, purchase invoices, or inventory
movements. The file is called [Link] and is indexed-sequential. There is a separate file
for purchase commitments, though the layout is the same. The Purchase Commitment File is
called [Link]. This file is a sequential file.
Summary of Record Types
There are the following types of record on the Transfer files:
the Control record
the Transaction record.
There is one Control record (type ‘C’) per file; there is one Transaction (type ‘L’) record per journal
line that is to be posted to the ledger.
Cobol Select...Assign Statement
M SELECT TRANSFER-FILE ASSIGN
V * SELECT OPTIONAL TRANSFER FILE ASSIGN
M TRANSFER-FILE-NAME
V * ‘SBTR_DEM.DAT’
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY TRANSFER-KEY
M LOCK MODE MANUAL
V * BLOCK CONTAINS 512 CHARACTERS
V * RESERVE 8 AREAS
STATUS TRANSFER-FILE-STATUS.
Cobol File Description (FD)
M FD TRANSFER-FILE.
V *FD TRANSFER-FILE VALUE OF ID IS TRANSFER-FILE-NAME.
01 TRANSFER-RECORD.
03 TRANSFER-DATA-1 PIC X(033).
03 TRANSFER-KEY PIC X(014).
03 TRANSFER-DATA-2 PIC X(353).
03 FILLER PIC X(25).

SunSystems 4 – Technical Reference Manual Page 347 of 455


Transfer File Record Descriptions
The Transaction record, see [Link], SQL table name SBTRTRNddd or SPTRTRNddd

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
L-B-AC 001 015 X - ACCNT_CODE char(15) Account Code
L-B-AP 016 007 N 0 PERIOD int Accounting Period
L-B-DT 023 008 N 0 TRANS_DATE int Transaction Date
FILLER 031 002 X - - - -
L-B-RECORD-TYPE 033 001 X - RECORD_TYPE char - Record Type
- - - - - JRNAL_REF char(14) See below
L-B-SB-SOURCE 034 002 N - - - Value may be:
If in SOP
’1’= Invoice
trans’n
or ’2’=
Inventory
trans’n
or in IC ’0’=
Inventory
trans’n
or in POP
’6’=
Inventory
trans’n
‘3’=
UnApproved
Invoice
trans’n
‘4’=
UnApproved
Invoice
reversal
‘5’= Approved
Invoice
trans’n
L-B-SB-SEQ 036 005 N - - - Next Sequence No.
from Control record
L-B-SB-LINE 041 007 N - - - Sequence No. within
L-B-SEQ
L-B-AM-3DP 048 018 N 3 AMOUNT numeric Base Amount
L-B-DC 066 001 X - D_C char(1) Debit/Credit
Indicator

SunSystems 4 – Technical Reference Manual Page 348 of 455


The Transaction record, see [Link], SQL table name SBTRTRNddd or SPTRTRNddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
L-B-AI 067 001 X - ALLOCATION char(1) Allocation Indicator
L-B-TT 068 005 X - JRNAL_TYPE char(5) Journal Type
L-B-JR 073 005 X - JRNAL_SRCE char(5) Journal Source
L-B-RF 078 015 X - TREFERENCE char(15) Transaction Reference
L-B-DS 093 025 X - DESCRIPTN char(25) Transaction
Description
L-B-ED 118 008 N - ENTRY_DATE int Entry Date
L-B-EP 126 007 N - ENTRY_PRD int Entry Period
L-B-ADD-DATE 133 008 N - DUE_DATE int Due Date
FILLER 141 006 X - -
L-B-ALLOC-RF 147 009 N 0 ALLOC_REF char(15) Payment/Allocation
Ref.
L-B-ALLOC-DT 156 008 N 0 ALLOC_DATE int Payment/Allocation
Date
L-B-ALLOC-AP 164 007 N 0 ALLOC_PERIOD int Payment/Allocation
Period
L-B-ASSET-IND 171 001 X - ASSET_IND char(1) Asset Marker
L-B-ASSET-CODE 172 010 X - ASSET_CODE char(10) Asset Code
L-B-ASSET-SUB-CODE 182 005 X - ASSET_SUB char(5) Asset Sub-Code
L-B-CONV-CODE 187 005 X - CONV_CODE char(5) Conversion Code
L-B-CONV-RATE 192 018 N 9 CONV_RATE numeric Conversion Rate
L-B-OTHER-AM 210 018 N 3 OTHER_AMT numeric Other Amount
L-B-OTHER-DP 228 001 X - OTHER_DP char(1) Other Amount d.p.
L-B-CLEARDOWN 229 005 N - CLEARDOWN numeric period cleardown
number
FILLER 234 004 X - -
L-B-REVERSAL 238 001 X - REVERSAL char(1) Next Period Reversal
L-B-LOSS-GAIN 239 001 X - LOSS_GAIN char(1) G=Gains L=Losses
Revaluation Flag
L-B-ROUGH-FLAG 240 001 X - ROUGH_FLAG char(1) Rough Book Status
L-B-IN-USE-FLAG 241 001 X - IN_USE_FLAG char(1) Rough Line Recalled
Flag
L-B-AN-0 242 015 X - ANAL_T0 char(15) Analysis Code 0
L-B-AN-1 257 015 X - ANAL_T1 char(15) Analysis Code 1
L-B-AN-2 272 015 X - ANAL_T2 char(15) Analysis Code 2
L-B-AN-3 287 015 X - ANAL_T3 char(15) Analysis Code 3
L-B-AN-4 302 015 X - ANAL_T4 char(15) Analysis Code 4
L-B-AN-5 317 015 X - ANAL_T5 char(15) Analysis Code 5
L-B-AN-6 332 015 X - ANAL_T6 char(15) Analysis Code 6
L-B-AN-7 347 015 X - ANAL_T7 char(15) Analysis Code 7
L-B-AN-8 362 015 X - ANAL_T8 char(15) Analysis Code 8

SunSystems 4 – Technical Reference Manual Page 349 of 455


The Transaction record, see [Link], SQL table name SBTRTRNddd or SPTRTRNddd – (continued)

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
L-B-AN-9 377 015 X - ANAL_T9 char(15) Analysis Code 9
L-B-POSTING-DATE 392 008 N 0 POSTING_DATE int Posting Date
L-B-UOB 400 001 X - UOB char(1) Update Order Balance
Ind’r
L-B- 400 001 X - UOB char(1) Update Order Balance
on SunBusiness
L-B-ALLOC-IN-PROGRESS 401 001 X - ALLOC_IN_PROGRESS char(1) Allocation in
Progress
L-B-HOLD-REF 402 005 N - HOLD_REF int Held Journal
Reference No
L-B-HOLD-OP-ID 407 003 X - HOLD_OP_ID char(3) Held Journal Operator
ID
L-B-BCHECK-ACCT 410 015 X - BCHECK_ACCT char(15) Budget Check Account
Number
FILLER 425 088 X - - - -

SunSystems 4 – Technical Reference Manual Page 350 of 455


The Control record for the SunBusiness Transfer File, see [Link], SQL table name SBTRMSC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - D_BASE char(3) Database Code Mandatory
- - - - - CONTROL_IND char(1) -
FILLER 001 032 X - - - -
FILLER 033 001 X - - - Record Type Value ’C’
L-B-KEY 034 014 X - - - Key fields Value
Spaces
FILLER 048 003 X - - - -
L-B-LAST-SEQ-NO 051 005 N - LAST_SEQNO char(5) Last Sequence No.
used
- - - - - VERSION char(3) -
- - - - - LANG_CODE char(2) -
FILLER 056 244 X - - - -
FILLER 300 213 X - - - -

SunSystems 4 – Technical Reference Manual Page 351 of 455


The Control record for the Purchase Commitment File, SQL table name SPTRMSC

COBOL POS’N IN FIELD FIELD DEC. SQL COLUMN SQL DESCRIPTION COMMENT
FIELD NAME RECORD LENGTH TYPE PLACES FIELD
TYPE
- - - - - D_BASE char(3) Database Code Mandatory
TRANSFER-HEADER-KEY 001 032 X - - - Control Key Value all ’P’
- - - - - CONTROL_IND char(1) -
TRANSFER-HEADER-LEDGER 033 001 X - PCF_BUDGET char(1) Budget Code Mandatory
- - - - - VERSION char(3) -
- - - - - LANG_CODE char(2) -

SunSystems 4 – Technical Reference Manual Page 352 of 455


The SunAccount Bank Payment File
Description
The Bank Payments file holds details of payments made by the Generate Payments or Generate
Debits programs, for further processing. It is created when running Generate Payments/Debits, if
the Ledger Definition Automatic Bank Payments box is set to Y, and the Payment Method you
have selected is B. The Bank Payment file is for use with automated payments systems, such as
BACS. This file is a sequential file: there is no index. There is no SQL table for this data – the file
is the same for all environments. See the SunAccount Reference Manual for more information.
Summary of Record Types
There is one type of record on the Bank Payments file:
the Payment record
This record is created for each account being paid/direct debited.
Cobol Select...Assign Statement
SELECT BANK-FILE ASSIGN
M BANK-FILE-NAME
V * “[Link]”
M ORGANISATION LINE SEQUENTIAL
V ORGANISATION IS SEQUENTIAL
STATUS BANK-FILE-STATUS.
Cobol File Description (FD)
M FD BANK-FILE.
V *FD BANK-FILE VALUE OF ID IS BANK-FILE-NAME.
01 BANK-RECORD.
03 BANK-SORT-CODE PIC X(15).
03 BANK-ACCOUNT-CODE PIC X(34).
03 BANK-ACCOUNT-NAME PIC X(35).
03 BANK-BASE-AMOUNT PIC 9(15)V999.
03 FILLER PIC X(04).
03 BANK-DEBIT-CREDIT PIC X(01).
03 BANK-FIRST-PAYMENT PIC X(01).
03 FILLER PIC X(03).
03 BANK-REFERENCE PIC X(18).
03 FILLER PIC X(07).
03 BANK-PROCESS-DATE PIC X(10).
03 FILLER PIC X(04).
03 BANK-SUN-AC PIC X(15).
03 BANK-CURRENCY PIC X(05).
03 BANK-OTHER-AM PIC 9(15)V999.
03 BANK-OTHER-DC PIC X(01).
03 BANK-PAYER-NUM PIC X(34).

SunSystems 4 – Technical Reference Manual Page 353 of 455


Bank Payments file record description

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
BANK-SORT-CODE 001 015 X - Sort Code from Creditor/Debtor Bank
Details
BANK-ACCOUNT-CODE 016 034 X - Bank Account Number from Creditor/Debtor Bank
Details
BANK-ACCOUNT-NAME 050 035 X - Bank Account Name from Creditor/Debtor Bank
Details
BANK-BASE-AMOUNT 085 018 N 3 Base Amount Paid
FILLER 103 004 X - -
BANK-DEBIT-CREDIT 107 001 X - Base Amount Debit/Credit Ind’r
BANK-FIRST-PAYMENT 108 001 X - First Payment Indicator
FILLER 109 003 X - -
BANK-REFERENCE 112 018 X - Transaction Reference from Creditor/Debtor Bank
Details
FILLER 130 007 X - -
BANK-PROCESS-DATE 137 010 X - Payment Processing Date
FILLER 147 004 X - -
BANK-SUN-AC 151 015 X - Account Code SunSystems Creditor/Debtor
Account Code
BANK-CURRENCY 166 005 X - Conversion Code
BANK-OTHER-AM 171 018 N 3 Other Amount Paid
BANK-OTHER-DC 189 001 X - Other Amount Debit/Credit
BANK-PAYER-NUM 190 034 X - Own Bank Account Number i.e. of
Payment Account

SunSystems 4 – Technical Reference Manual Page 354 of 455


The SunAccount Payment File
Description
The Payment file holds details of payments/direct debits made by the Generate Payments or
Generate Debits programs, for further processing. It is created when running Generate
Payments/Debits. The Payment file contains details of all payments/direct debits being made. It is
used by the Print Remittances program after the Generate Payments has posted the payments to
the ledger. After Generate Debits has posted the direct debit transactions, then the file is cleared,
as it is no longer required.
Summary of Record Types
There are the following types of record on the Payment file:
the Control record
the Account Header record
the Detail record
the Payment record
the Total Discount record.
Cobol Select...Assign Statement
SELECT PAYMT-FILE ASSIGN
M PAYMT-FILE-NAME
V * “[Link]”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY PAYMENT-KEY
STATUS PAYMT-FILE-STATUS.
Cobol File Description (FD)
M FD PAYMT-FILE.
V *FD PAYMT-FILE VALUE OF ID IS PAYMT-FILE-NAME.
COPY “[Link]”.

SunSystems 4 – Technical Reference Manual Page 355 of 455


Payment File record descriptions see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
P-PROFILE-IND 001 001 X - Profile Indicator PIC X
P-AC-SEQ 002 005 N 0 Unique sequence number
P-CONV-CODE 007 005 X - Conversion Code PIC X (5)
P-RECORD-TYPE 012 001 X - Record Type Value ’C’, ’A’, ’P’,
‘D’ or ’Z’
P-DETAIL-COUNT 013 005 N 0 Count of detail records
P-DETAIL-TYPE 018 001 N 0 Detail Type Value
1=Original trans’n
2=Discount Trans’n
FILLER 019 006 X - -
FILLER 025 008 X - -
If the record type is ‘P’ or ‘Z’, then the key includes Analysis Codes rather than the above four fields.
P-HASH-KEY 013 012 X - Hash Analysis Code
FILLER 025 008 X - -
If the record type is ’B’, then the
P-BANK-ACC-KEY 013 015 X -
P-BANK-CONV-CODE 028 005 X -

SunSystems 4 – Technical Reference Manual Page 356 of 455


The data is defined according to the record type, each group being a definition of the first:
The Control record, type ‘C’

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
P-BANK-ACCOUNT 033 015 X - Payment Account Code
P-RECORD-COUNT 048 005 N 0 Count of type ’A’ recs.
P-OTHER-AM-RUN 053 001 X - Other Amount run Y Other Amount
payment
P-STORED-DP 054 001 X - Other Amount d.p. From Conv. Table
P-PAY-DATE 055 008 N 0 Base Date for Payment
P-BANK-ACC-NUM 063 034 X - Payment A/c Bank A/c No. From Bank
Details
P-STORED-OPERATOR 097 001 X Store Conversion operator (*/)
P-NUMBER-PAYMENTS 098 004 N Total number of credit balances PIC 9(6) COMP-3.
P-NUMBER-DEBIT-BAL 102 004 N Total number of debit balances PIC 9(6) COMP-3.
P-NUMBER-DEBIT-SETTLED 106 004 N Number of debit balances settled PIC 9(6) COMP-3.
P-CASH-TOTAL 110 010 S Base Cash Total PICS 9(15) V999 COMP-3.
P-DISCOUNT-TOTAL 120 010 S Base Discount Total PICS 9(15) V999 COMP-3.
P-TAX-TOTAL 130 010 S Base Tax Total PICS 9(15) V999 COMP-3
P-IN-USE-TOTAL 140 010 S Base in-use total PICS 9(15) V999 COMP-3
P-DEBIT-BAL-TOTAL 150 010 S Base Debit Balance Total PICS 9(15) V999 COMP-3
P-DEBIT-SETTLED-TOTAL 160 010 S Base Debit Settled Total PICS 9(15) V999 COMP-3
P-CASH-TOTAL-O 170 010 S Other Cash Total PICS 9(15) V999 COMP-3
P-DISCOUNT-TOTAL-O 180 010 S Other Discount Total PICS 9(15) V999 COMP-3
P-TAX-TOTAL-O 190 010 S Other Tax Total PICS 9(15) V999 COMP-3
P-IN-USE-TOTAL-O 200 010 S Other In-use Total PICS 9(15) V999 COMP-3
P-DEBIT-BAL-TOTAL-O 210 010 S Other Debit Balance PICS 9(15) V999 COMP-3
P-DEBIT-SETTLED-TOTAL-O 220 010 S Other Debit balance settled PICS 9(15) V999 COMP-3
P-NUMBER-ACCEPTED 230 004 N Number Accepted PICS 9(15) V999 COMP-3.
P-NUMBER-REJECTED 234 004 N Number Rejected PICS 9(15) V999 COMP-3
P-BANK-ACCEPT-TOT 238 010 S Accepted Base Value PICS 9(15) V999 COMP-3.
P-BANK-REJECT-TOT 248 010 S Rejected Base Value PICS 9(15) V999 COMP-3
P-BANK-ACCEPT-TOT-O 258 010 S Accepted Other Value PICS 9(15) V999 COMP-3
P-BANK-REJECT-TOT-O 268 010 S Rejected Other Value PICS 9(15) V999 COMP-3
P-D-NUMBER-ACCEPTED 278 004 N Number of debit transactions PIC 9(6) COMP-3
accepted
P-D-NUMBER-REJECTED 282 004 N Number of debit transactions PIC 9(6) COMP-3
rejected
P-D-BANK-ACCEPT-TOT 286 010 S Value accepted PICS 9(15) V999 COMP-3.
-D-BANK-REJECT-TOT 296 010 S Value rejected PICS 9(15) V999 COMP-3
P-D-BANK-ACCEPT-TOT-O 306 010 S Other Accepted Value PICS 9(15) V999 COMP-3
P-D-BANK-REJECT-TOT-O 316 010 S Other Rejected Value PICS 9(15) V999 COMP-3
P-NUMBER-ZERO-BAL 326 003 N Number of zero balances PIC 9(5) COMP-3.
P-NUMBER-C-BAL 329 003 N Number of credit balances PIC 9(5) COMP-3
P-NUMBER-D-BAL 332 003 N Number Of debit balances PIC 9(5) COMP-3

SunSystems 4 – Technical Reference Manual Page 357 of 455


The Control record, type ‘C’ – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
P-NUMBER-TOTAL 335 003 N Number of balances PIC 9(5) COMP-3
AM-D-BAL 338 010 N Total of debit balances PIC 9(15) V999 COMP-3.
AM-C-BAL 348 010 N Total of credit balances PICS 9(15) V999 COMP-3.
AM-D-BAL-O 358 010 N Total of other debit balances PICS 9(15) V999 COMP-3.
AM-C-BAL-O 368 010 N Total of other credit balances PICS 9(15) V999 COMP-3.
AM-TOTAL 378 010 S Total Amount PICS 9(15) V999 COMP-3.
FILLER 388 005 X - -

SunSystems 4 – Technical Reference Manual Page 358 of 455


The Account Header record, type ‘A’

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
P-AC 033 015 X - Account Code
P-AC-NAME 048 030 N 0 Account Name
P-AC-ADD 078 010 X - Address Code
P-AC-AM 088 018 S 3 Payment Base Amount
P-AC-SIGN 106 001 X - Payment Sign
P-AC-PAY-METHOD 107 001 X - Payment Method
P-AC-PROCESSED 108 001 X - Account processed by Print
Remittances
P-AC-OTHER-AM 109 018 S 3 Payment Other Amount
P-AC-PAID 127 001 X - Payment/debit to be generated
P-AC-DISC 128 018 N 0 Base discount PICS 9(15) V999.
P-AC-OTHER-DISC 146 018 N 0 Other Discount PICS 9(15) V999.
P-AC-DP 164 001 X - Decimal places PIC X
P-AC-OPERATOR 165 001 X - Conversion Operator (*/)
P-AC-BANK-ACCOUNT 166 015 X - Payment account PIC X(15)
P-AC-IN-USE-TOTAL 181 018 S 3 Total in-use PICS 915) V999 Comp-3
P-AC-IN-USE-TOTAL-O 199 018 S 3 Total in-use Other PICS 9(15) V999 Comp-3
P-AC-TAX-TOTAL 217 018 S 3 Total Tax PICS 9(15) V999 Comp-3
P-AC-TAX-TOTAL-O 235 018 S 3 Total Tax Other PICS 9(15) V999 Comp-3
P-AC-PROCESSED-PAYMENT 253 001 X - Process payment Ind PIC X
P-AC-BANK-CODE 254 005 X - Bank Code PIC X(5)
FILLER 259 134 - -

SunSystems 4 – Technical Reference Manual Page 359 of 455


The Detail record, type ‘D’

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
PAYMENT-TRANSACTION 033 359 X - Ledger Transaction generated
FILLER 033 208 - - -
P-ANAL-CODE-0 241 015 X - Analysis Code 0
P-ANAL-CODE-1 256 015 X - Analysis Code 1
P-ANAL-CODE-2 271 015 X - Analysis Code 2
P-ANAL-CODE-3 286 015 X - Analysis Code 3
P-ANAL-CODE-4 301 015 X - Analysis Code 4
P-ANAL-CODE-5 316 015 X - Analysis Code 5
P-ANAL-CODE-6 331 015 X - Analysis Code 6
P-ANAL-CODE-7 346 015 X - Analysis Code 7
P-ANAL-CODE-8 361 015 X - Analysis Code 8
P-ANAL-CODE-9 376 015 X - Analysis Code 9
P-D-TRANS-PROCESSED 391 001 X - Set externally if processed PIC X
FILLER 392 001 X - -
The Payment record, type ’P’
P-SUPP-AC-KEY 033 038 X - Key to Payment Trans’n on
Creditor/Debtor A/c
P-CASH-AC-KEY 071 038 X - Key to Payment Trans’n on Payment
A/c
P-PAYMENT-AMOUNT 109 018 S 3 Payment Base Amount
P-PAYMENT-OTHER-AM 127 018 S 3 Payment Other Amount
P-PAY-TWO-RECORDS 145 001 X - Amount and Other Amount same sign
FILLER 146 245 X - -
P-P-TRANS-PROCESSED 246 001 X - Set externally if processed PIC X
FILLER 247 001 X - -
The Total Tax Record, type ’T’
P-TAX-AMOUNT 033 018 S 3 Tax Amount
P-TAX-OTHER-AM 051 018 S 3 Tax Other Amount
FILLER 069 150 - - -
P-TAX-AC 219 015 X - Tax Account
FILLER 234 007 X - -
P-TAX-ANALS 241 150 X - Tax Analysis Codes
FILLER 391 002 X - -

SunSystems 4 – Technical Reference Manual Page 360 of 455


The Total Discount record, type ‘Z’

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
P-DISC-INPUT-AMOUNT 033 018 S 3 Input base amount S 9(15) V999 Comp-3.
P-DISC-INPUT-OTHER-AM 051 018 S 3 Input Other amount S 9(15) V999 Comp-3.
P-DISC-OUTPUT-AMOUNT 069 018 S 3 Output base amount PICS 9(15) v999 Comp-3
P-DISC-OUTPUT-OTHER-AM 087 018 S 3 Output other amount PICS 9(15) V999 Comp-3
P-DISC-INPUT-AC 105 015 X - Input account PIC X(15)
P-DISC-OUTPUT-AC 120 015 X - Output account PIC X(15)
P-DISC-INPUT-ENTER-INDS 135 010 X - Input entry inds PIC X(10)
P-DISC-OUTPUT-ENTER-INDS 145 010 X - Output entry inds PIC X(10)
FILLER 155 086 X - -
P-DISCOUNT-ANALS 241 150 X - Discount analysis codes PIC X(150)
FILLER 391 002 X - -
The Bank Record, type ’B’
P-BANK-BASE 033 010 S 3 Bankbase PICS 9(15) V999 COMP-3.
P-BANK-OTHER 043 010 S 3 Bank Other PICS 9(15) V999 COMP-3.
P-BANK-STORED-DP 053 001 X - Bank decimal places
FILLER 054 339 - - -

SunSystems 4 – Technical Reference Manual Page 361 of 455


In SQL versions, the data is stored in the following table, called SAPYPAYddd:

Field Name Field Type


PROFILE_IND char(1)
AC_SEQ char(5)
CONV_CODE char(5)
REC_TYPE char(1)
DETAIL_KEY char(6)
ANALYSIS KEY char(150)
BANK_KEY char(20)
KEY_FIELDS char(156)
O DATA_1 char(153)
S DATA_1 binary(153)
O DATA_2 char(241)
S DATA_2 binary(241)

Note: Oracle (O) fields have different datatype to SQL Server fields (S).

SunSystems 4 – Technical Reference Manual Page 362 of 455


The SunAccount Journal Hold File
Description
The Journal Hold file holds transactions that have been created in Journal Entry and then held
prior to posting. When a Rough Book is in use, transactions may be recalled from the ledger file
and then held prior to re-posting. The file is called [Link] and is indexed-sequential.
Summary of Record Types
There are the following types of record on the Journal Hold file:
the Standard record
the Journal Control record
the Analysis record
the Transaction Control record
the Transaction Line record
the split record
the Amendment record
the Period record
the Query Record 1
the Query Record 2
the Query Record 3
the Query Record 4
the Query Record 5
the Journal Hold Control record
the Journal Hold Version record
the Journal Hold Actual/Budget record
the Journal Hold Journal record.
Cobol Select...Assign Statement
SELECT HOLD-FILE ASSIGN
M HOLD-FILE-NAME
V * “SAQF_DEM.DAT”
ORGANISATION INDEXED
ACCESS DYNAMIC
RECORD KEY HOLD-KEY
M LOCK MODE MANUAL
V * BLOCK CONTAINS 600 CHARACTERS
V * RESERVE 8 AREAS
STATUS HOLD-FILE-STATUS.

SunSystems 4 – Technical Reference Manual Page 363 of 455


Cobol File Description (FD)
M FD HOLD-FILE.
V *FD HOLD-FILE VALUE OF ID IS HOLD-FILE-NAME.
01 HOLD-RECORD.
03 FILLER PIC X(32).
03 HOLD-KEY PIC X(15).
03 HOLD-DATA PIC X(465).

SunSystems 4 – Technical Reference Manual Page 364 of 455


Journal Hold File Record Descriptions
The Standard Record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-REC-TYPE 001 001 X - Record Type Key 1 Mandatory
SAJE-WORK-REFERENCE 002 015 X - Reference Mandatory
SAJE-WORK-LINE-NO 017 003 N 0 Line Number Key 1 Mandatory
SAJE-WORK-LINE-NO-SUFF 020 002 N 2 Line Number Suffix
SAJE-WORK-REC-TYPE-2 022 001 X - Record Type Key 2
SAJE-WORK-REF-ID 023 005 N 0 Reference Id
SAJE-WORK-LINE-NO-2 028 003 N 0 Line Number Key 2
SAJE-WORK-LINE-NO-2-SUFF 031 002 N 0 Line Number Suffix
SAJH-WORK-TYPE 033 001 X - Journal Held Type
SAJH-WORK-AB 034 001 X - Journal Held Actual/Budget
SAJH-WORK-JOURNAL-REF 035 005 N 0 Journal Held Reference
SAJH-WORK-REC-TYPE 040 001 X - Journal Held Record Type
SAJH-WORK-JOURNAL-SEQ 041 007 N 0 Journal Held Sequence Number
FILLER 048 465 X - -
FILLER 513 512 - - -

SunSystems 4 – Technical Reference Manual Page 365 of 455


The Journal Control Record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-C-REC-TYPE 001 001 X - Record Type Key 1 Mandatory value "C"
SAJE-WORK-C-REFERENCE 002 015 X - Reference Mandatory value
"000000000000000"
SAJE-WORK-C-LINE-NO 017 003 N 0 Line Number Key 1 Mandatory value "000"
SAJE-WORK-C-LINE-NO-SUFF 020 002 N 0 Line number suffix
SAJE-WORK-C-REC-TYPE-2 022 001 X - Record Type Key 2 Value "C"
SAJE-WORK-C-REF-ID 023 005 N 0 Reference Id Value "00000"
SAJE-WORK-C-LINE-NO-2 028 003 N 0 Line Number Key 2 Value "000"
SAJE-WORK-C-LINE-NO-2-SUFF 031 002 N 0 Line number suffix
SAJH-WORK-C-TYPE 033 001 X - Journal Held Type Type "2"
SAJH-WORK-C-AB 034 001 X - Journal Held Actual/Budget
SAJH-WORK-C-JOURNAL-REF 035 005 N 0 Journal Held Reference
SAJH-WORK-C-REC-TYPE 040 001 X - Journal Held Record Type Value "C"
SAJH-WORK-C-JOURNAL-SEQ 041 007 N 0 Journal Held Sequence Number
SAJE-WORK-HIGHEST-REF-ID 048 005 N 0 Highest Reference Id
SAJE-WORK-CURRENT-KEY 053 011 X - Current Key
SAJE-WORK-CURRENT-FIELD 064 003 N 0 Current Field
SAJE-WORK-HIGHEST-PERIOD 067 007 N 0 Highest Period
SAJE-WORK-HIGHEST-PRESET 074 003 N 0 Highest Preset
SAJE-WORK-CURRENT-OVERLAY 077 001 X - Current Overlay
SAJE-WORK-TOTAL-INDICATOR 078 001 X - Total Indicator
SAJE-WORK-JT-INDICATOR 079 001 X - Journal type indicator
SAJE-WORK-ACTUAL-BUDGET 080 001 X - Actual/Budget
SAJE-WORK-AJD-JOURNAL-NAME 081 025 X - Journal Name
SAJE-WORK-AJD-PRESET-CODE 106 005 X - Preset Code
SAJE-WORK-AJD-ANAL-CAT 111 020 X - Analysis Category Occurs 10 Times
SAJE-WORK-AJD-SUPPRESS- 131 001 X - Suppress Ageing
AGEING
SAJE-WORK-AJD-DESC-PER- 132 001 X - Description per Line
LINE
SAJE-WORK-AJD-FORCE- 133 001 X - Force Withhold
WITHHOLD
SAJE-WORK-AJD-NEXT-PERIOD- 134 001 X - Next Period Reversal
REV
SAJE-WORK-AJD-DUE-DATE- 135 001 X - Due Date Entry
ENTRY
SAJE-WORK-AJD-UNIQUE-REFS 136 001 X - Unique References
SAJE-WORK-AJD-CREATE-NO- 137 001 X - Journal Definition Create with no
PAUSE Pause
SAJE-WORK-AJD-CONVERSION 138 001 X - Journal Definition Conversion
SAJE-WORK-AJD-ASSET-ENTRY 139 001 X - Journal Definition Asset Entry
SAJE-WORK-AJD-SUPPRESS-JE 140 001 X - Journal Definition Suppress
Journal Entry

SunSystems 4 – Technical Reference Manual Page 366 of 455


The Journal Control Record, see [Link] – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-AJD-SUPPRESS-JI 141 001 X - Journal Definition Suppress
Journal Import
SAJE-WORK-AJD-SUPPRESS-AA 142 001 X - Journal Definition Suppress
Account Allocation
SAJE-WORK-AJD-SEQ-CODE 143 005 X - Journal Definition Sequence Code
SAJE-WORK-AJD-TRANS-SEQ 148 001 X - Journal Trans sequence
AJE-WORK-AJD-IN-DISC-ACC 149 015 X - Journal definition In discount
account
SAJE-WORK-AJD-OUT-DISC-ACC 164 015 X - Journal definition Out discount
account
SAJE-WORK-AJD-DISC-TOL- 179 011 N 2 Journal definition tolerance
PERC percent
SAJE-WORK-AJD-DISC-TOL-VAL 190 012 N 3 Journal definition tolerance value
SAJE-WORK-AJD-AUTO-TAX-IND 202 001 X - Journal definition auto tax ind
SAJE-WORK-AJD-TAX-ACC-IND- 203 001 X - Journal definition tax ind
CR creditors
SAJE-WORK-AJD-TAX-ACC-IND- 204 001 X - Journal definition tax ind debtors
DB
SAJE-WORK-AJD-TAX-ACC-IND- 205 001 X - Journal definition tax ind clients
CT
SAJE-WORK-AJD-TAX-ACC-IND- 206 001 X - Journal definition tax ind memo
MEM
SAJE-WORK-AJD-TAX-ACC-IND- 207 001 X - Journal definition tax ind profit
PL & loss
SAJE-WORK-AJD-TAX-ACC-IND- 208 001 X - Journal definition tax ind balance
BAL sheet
SAJE-WORK-AJD-STP-ACC-IND- 209 001 X - Journal definition stop ind
CR creditors
SAJE-WORK-AJD-STP-ACC-IND- 210 001 X - Journal definition stop ind
DB debtors
SAJE-WORK-AJD-STP-ACC-IND- 211 001 X - Journal definition stop ind
CT clients
SAJE-WORK-AJD-STP-ACC-IND- 212 001 X - Journal definition stop ind memo
MEM
SAJE-WORK-AJD-STP-ACC-IND- 213 001 X - Journal definition stop ind profit
PL & loss
SAJE-WORK-AJD-STP-ACC-IND- 214 001 X - Journal definition stop ind
BAL balance sheet
SAJE-WORK-AJD-AUTO-TAX-ACC 215 001 X - Auto tax account
SAJE-WORK-ANAL-LOC 216 020 X - Analysis Location (T-Codes) Occurs
10 Times

SunSystems 4 – Technical Reference Manual Page 367 of 455


The Journal Control Record, see [Link] – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-JOURNAL-TYPE 236 005 X - Journal Type
SAJE-WORK-JOURNAL-SOURCE 241 005 X - Journal Source
SAJE-WORK-DATABASE-CODE 246 003 X - Database Code
SAJE-WORK-JOURNAL-NUMBER 249 007 N 0 Journal Number
SAJE-WORK-NUMBER-OF-REFS 256 007 N 0 Number of References
SAJE-WORK-AUTO-SEQ 263 001 X - Auto Sequence
SAJE-WORK-ENTRY-DATE 264 008 N 0 Entry date
SAJE-WORK-ENTRY-PERIOD 272 007 N 0 Entry period
SAJE-WORK-J-BASE-TOTAL-D 279 010 N 3 Base Total Debit PIC 9(15) V9(3) COMP-3
SAJE-WORK-J-BASE-TOTAL-C 289 010 N 3 Base Total Credit PIC 9(15) V9(3) COMP-3
SAJE-WORK-J-OTHER-TOTAL-D 299 010 N 3 Other Total Debit PIC 9(15) V9(3) COMP-3
SAJE-WORK-J-OTHER-TOTAL-C 309 010 N 3 Other Total Credit PIC 9(15) V9(3) COMP-3
SAJE-WORK-J-MEMO-TOTAL-D 319 010 N 3 Memo Total Debit PIC 9(15) V9(3) COMP-3
SAJE-WORK-J-MEMO-TOTAL-C 329 010 N 3 Memo Total Credit PIC 9(15) V9(3) COMP-3
SAJE-WORK-J-RATIO-TOTAL-B 339 010 N 9 Ratio Total Base PIC 9(9) V9(9) COMP-3
SAJE-WORK-J-RATIO-TOTAL-O 349 010 N 9 Ratio Total Other PIC 9(9) V9(9) COMP-3
SAJE-WORK-C-SOURCE-FLAG 359 001 X - Source Flag
SAJE-WORK-JOURNAL-NO 360 007 N 0 Journal Number
SAJE-WORK-NEXT-SEQ-NO 367 005 N 0 Next sequence no from online
allocations
SAJE-WORK-CURRENT-L-KEY 372 032 X - Current key from online
allocations
SAJE-WORK-LAST-TRANS-SEQ 404 001 X - Last transaction sequence from
online allocations
SAJE-WORK-LAST-OVERLAY 405 001 X - Last overlay from online
allocations
SAJE-WORK-NO-OF- 406 005 N 0 No of allocations from online
ALLOCATIONS allocations
SAJE-WORK-NON-ROUGH 411 007 N 0 Non-rough alloactions from online
alloactions
FILLER 418 094 X - -
SAJE-WORK-LAST-SELECTION 512 001 X - Last selection from online
allocations
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 368 of 455


The Analysis Record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-A-REC-TYPE 001 001 X - Record Type Key 1 Mandatory Value "A"
SAJE-WORK-A-FILLER 002 020 X - - Value "000000000000000000"
SAJE-WORK-A-REC-TYPE-2 022 001 X - Record Type Key 2 Mandatory Value "A"
SAJE-WORK-A-FILLER-2 023 010 X - - Value "00000000"
SAJH-WORK-ANALYSIS-TYPE 033 001 X - Journal Held Type Value "2"
SAJH-WORK-ANALYSIS-AB 034 001 X - Journal Held Actual/Budget
SAJH-WORK-ANALYSIS- 035 005 N 0 Journal Held Reference
JOURNAL-REF
SAJH-WORK-ANALYSIS-REC- 040 001 X - Journal Held Record Type Value "A"
TYPE
SAJH-WORK-ANALYSIS- 041 007 N 0 Journal Held Sequence Number
JOURNAL-SEQ
SAJE-WORK-ANAL-CAT-SHORT- 048 050 X - Analysis Category Short Name Occurs 10 Times
NAMES
SAJE-WORK-ANAL-CAT-LONG- 098 200 X - Analysis Category Long Name Occurs 10 Times
NAMES
FILLER 298 215 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 369 of 455


The Transaction Control Record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-T-REC-TYPE 001 001 X - Record Type Key 1 Mandatory Value "T"
SAJE-WORK-T-REFERENCE 002 015 X - Reference
SAJE-WORK-T-LINE-NO 017 003 N 0 Line Number Key 1 Value "000"
SAJE-WORK-T-LINE-NO-SUFF 020 002 N 0 -
SAJE-WORK-T-REC-TYPE-2 022 001 X - Record Type Key 2 Mandatory Value "T"
SAJE-WORK-T-REF-ID 023 005 N 0 Reference Id
SAJE-WORK-T-LINE-NO-2 028 003 N 0 Line Number Key 2 Value "000"
SAJE-WORK-T-LINE-NO-2-SUFF 031 002 N 0 -
SAJH-WORK-TRANS-TYPE 033 001 X - Journal Held Type Type "2"
SAJH-WORK-TRANS-AB 034 001 X - Journal Held Actual/Budget
SAJH-WORK-TRANS-JOURNAL- 035 005 N 0 Journal Held Reference
REF
SAJH-WORK-TRANS-REC-TYPE 040 001 X - Journal Held Record Type Type "T"
SAJH-WORK-TRANS-JOURNAL- 041 007 N 0 Journal Held Sequence Number
SEQ
SAJE-WORK-HIGHEST-LINE-NO 048 003 N 0 Highest Line Number
SAJE-WORK-HIGHEST-PRESET- 051 003 N 0 Highest Preset Used
USED
SAJE-WORK-T-BASE-D 054 010 S 3 Base Total Debit PIC 9(15) V9(3) COMP-3
SAJE-WORK-T-BASE-C 064 010 S 3 Base Total Credit PIC 9(15) V9(3) COMP-3
SAJE-WORK-T-OTHER-D 074 010 S 3 Other Total Debit PIC 9(15) V9(3) COMP-3
SAJE-WORK-T-OTHER-C 084 010 S 3 Other Total Credit PIC 9(15) V9(3) COMP-3
SAJE-WORK-TU-BASE-D 094 010 S 3 Non Posting Base Total Debit PIC 9(15) V9(3) COMP-3
SAJE-WORK-TU-BASE-C 104 010 S 3 Non Posting Base Total Credit PIC 9(15) V9(3) COMP-3
SAJE-WORK-TU-OTHER-D 114 010 S 3 Non Posting Other Total Debit PIC 9(15) V9(3) COMP-3
SAJE-WORK-TU-OTHER-C 124 010 S 3 Non Posting Other Total Credit PIC 9(15) V9(3) COMP-3
SAJE-WORK-TRANS-SEQ-NUM 134 007 N 0 Transaction Sequence Number
SAJE-WORK-NUMBER-OF-TRANS 141 007 N 0 Number of Transactions
SAJE-WORK-NUMBER-OF-SUFF 148 003 N 0 Number of suffixes
FILLER 151 362 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 370 of 455


The Transaction Line Record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-L-REC-TYPE 001 001 X - Record Type Key 1 Mandatory Value "L"
SAJE-WORK-L-REFERENCE 002 015 X - Reference
SAJE-WORK-L-LINE-NO 017 005 N 0 Line Number Key 1
SAJE-WORK-L-LINE-NO-SUFF 022 002 N 0 Line number suffix 1
SAJE-WORK-L-REC-TYPE-2 024 001 X - Record type Key 2 Mandatory Value "L"
SAJE-WORK-L-REF-ID 025 005 N 0 Reference Id
SAJE-WORK-L-LINE-NO-2 030 003 N 0 Line Number Key 2
SAJE-WORK-L-LINE-NO-2-SUFF 033 002 N 0 Line number suffix 2
SAJH-WORK-LINE-TYPE 035 001 X - Journal Held Type Type "2"
SAJH-WORK-LINE-AB 036 001 X - Journal Held Actual/Budget
SAJH-WORK-LINE-JOURNAL-REF 037 005 N 0 Journal Held Reference
SAJH-WORK-LINE-REC-TYPE 042 001 X - Journal Held Record Type Value "L"
SAJH-WORK-LINE-JOURNAL-SEQ 043 007 N 0 Journal Held Sequence Number
SAJE-WORK-LINE-DELETED 050 001 X - Line Deleted
SAJE-WORK-ACC-PERIOD 051 007 N 0 Accounting Period
SAJE-WORK-TRANS-DATE 058 008 N 0 Transaction Date
SAJE-WORK-DUE-DATE 066 008 N 0 Due Date
SAJE-WORK-DESCRIPTION 074 030 X - Description
SAJE-WORK-ACC-CODE 104 015 X - Account Code
SAJE-WORK-AM 119 010 N 3 Base Amount PIC 9(15) V9(3) COMP-3
SAJE-WORK-DC 129 001 X - Debitor Credit Flag
SAJE-WORK-OTHER-AM 130 010 N 3 Other Amount PIC 9(15) V9(3) COMP-3
SAJE-WORK-CONV-CODE 140 005 X - Conversion Code
SAJE-WORK-OTHER-DP 145 001 X - Other Decimal Places
SAJE-WORK-OPERATOR 146 001 X - Conversion Rate Operator (*or/)
SAJE-WORK-CONV-RATE 147 010 N 9 Conversion Rate PIC 9(9) V9(9) COMP-3
SAJE-WORK-ANAL-CODE 157 150 X - Analysis Code Occurs 10 Times
SAJE-WORK-ASSET-CODE 307 010 X - Asset Code
SAJE-WORK-ASSET-SUBCODE 317 005 X - Asset Subcode
SAJE-WORK-VD 322 001 X - Asset VID Marker
SAJE-WORK-ACC-TYPE 323 001 X - Account Type
SAJE-WORK-ACC-NAME 325 030 X - Account Name
SAJE-WORK-ENTER-T 354 010 X - Account T-Code Indicator Occurs 10 Times
SAJE -WORK-AI 364 001 X - Allocation Indicator
SAJE-WORK-ALLOC-RF 365 005 N 0 Allocation Reference PIC 9(9) COMP-3
SAJE-WORK-ALLOC-DT 370 008 N 0 Allocation Date

SunSystems 4 – Technical Reference Manual Page 371 of 455


The Transaction Line Record, see [Link] – (continued)

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-ALLOC-AP 378 007 N 0 Allocation Period
SAJE-WORK-LINE-ROUGH-FLAG 385 001 X - Rough Flag
SAJE-WORK-L-JOURNAL-TYPE 386 005 X - Journal Type
SAJE-WORK-L-JOURNAL-SOURCE 391 005 X - Journal Source
SAJE-WORK-L-ENTRY-DATE 396 008 X 0 Entry Date
SAJE-WORK-L-ENTRY-PERIOD 404 007 N 0 Entry Period
SAJE-WORK-L-ALLOC-IND 411 001 X - Allocated Ind
SAJE-WORK-L-ALLOC-SEQ 412 005 N 0 Allocated Seq
SAJE-WORK-L-JOURNAL-NO 417 007 N 0 Journal Number
SAJE-WORK-L-LEDGER 424 090 N - Online Cash Flag
FILLER 425 090 X - -
FILLER 515 512 X - -

SunSystems 4 – Technical Reference Manual Page 372 of 455


The Split record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-M-REC-TYPE 001 001 X - Record type
SAJE-WORK-M-SEQ-NO 002 005 N 0 Sequence number
SAJE-WORK-M-SEQ-LINE-NO 007 003 N 0 Line number
SAJE-WORK-M-LINE-NO-SUFF 010 002 N 0 Line number suffix
SAJE-WORK-M-REFERENCE 012 010 X - Reference
SAJE-WORK-M-REC-TYPE-2 022 001 X - Record Type 2
SAJE-WORK-M-SEQ-NO-2 023 005 N 0 Sequence number 2
SAJE-WORK-M-SEQ-LINE-NO-2 028 003 N 0 Line number 2
SAJE-WORK-M-LINE-NO-2-SUFF 031 002 N 0 Suffix number 2
SAJH-WORK-M-TYPE 033 001 X - Type
SAJH-WORK-M-AB 034 001 X - Actualor Budget
SAJH-WORK-M-JOURNAL-REF 035 005 N 0 Journal reference
SAJH-WORK-M-REC-TYPE 040 001 X - record type
SAJH-WORK-M-JOURNAL-SEQ 041 007 N 0 Sequence number
SAJE-M-ALLOC 048 001 X - Allocation
SAJE-M-LEDGER-KEY 049 038 X - Ledger Key
SAJE-M-LEDGER-DATA 087 400 X - Ledger data
FILLER 487 026 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 373 of 455


The Amendment record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-N-REC-TYPE 001 001 X - Record Type 1
SAJE-WORK-N-SEQ-NO 002 005 N 0 Sequence number 1
SAJE-WORK-N-SEQ-LINE-NO 007 003 N 0 Line number 1
SAJE-WORK-N-LINE-NO-SUFF 010 002 N 0 Suffix 1
FILLER 012 010 X - -
SAJE-WORK-N-REC-TYPE-2 022 001 X - Record Type 2
SAJE-WORK-N-SEQ-NO-2 023 005 N 0 Sequence number 2
SAJE-WORK-N-SEQ-LINE-NO-2 028 003 N 0 Line number 2
SAJE-WORK-N-LINE-NO-2-SUFF 031 002 N 0 Suffix number 2
SAJH-WORK-N-TYPE 033 001 X - Type
SAJH-WORK-N-AB 034 001 X - Actual or Budget
SAJH-WORK-N-JOURNAL-REF 035 005 N 0 Journal reference
SAJH-WORK-N-REC-TYPE 040 001 X - Record type
SAJH-WORK-N-JOURNAL-SEQ 041 007 N 0 Journal sequence
SAJE-N-ALLOC 048 001 X - Allocation
SAJE-N-LEDGER-KEY 049 038 X - Ledger key
SAJE-N-LEDGER-DATA 087 400 X - Ledger data
FILLER 487 026 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 374 of 455


The Period Record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-P-REC-TYPE 001 001 X - Record Type Key 1 Mandatory Value "P"
SAJE-WORK-P-PERIOD 002 007 N 0 Period Key 1
SAJE-WORK-P-FILLER 009 013 X - - Value "0000000000000"
SAJE-WORK-P-REC-TYPE-2 022 001 X - Record Type Key 2 Mandatory Value "P"
SAJE-WORK-P-PERIOD-2 023 007 N 0 Period Key 2
SAJE-WORK-P-FILLER-2 030 003 X - - Value "0"
SAJH-WORK-PERIOD-TYPE 033 001 X - Journal Held Type "2"
SAJH-WORK-PERIOD-AB 034 001 X - Journal Held Actual/Budget
SAJH-WORK-PERIOD-JOURNAL- 035 005 N 0 Journal Held Reference
REF
SAJH-WORK-PERIOD-REC-TYPE 040 001 X - Journal Held Record Type Type "P"
SAJH-WORK-PERIOD-JOURNAL- 041 007 N 0 Journal Held Sequence Number
SEQ
SAJE-WORK-P-BASE-D 048 010 N 3 Base Total Debit PIC 9(15) V9(3) COMP-3
SAJE-WORK-P-BASE-C 058 010 N 3 Base Total Credit PIC 9(15) V9(3) COMP-3
SAJE-WORK-P-OTHER-D 068 010 N 3 Other Total Debit PIC 9(15) V9(3) COMP-3
SAJE-WORK-P-OTHER-C 078 010 N 3 Other Total Credit PIC 9(15) V9(3) COMP-3
FILLER 088 425 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 375 of 455


The Query Record 1, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-Q1-REC-TYPE 001 001 X - Record type Value "Q"
SAJE-WORK-Q1-FILLER 002 020 X - Filler Value "00000000000000000001"
SAJE-WORK-Q1-REC-TYPE-2 022 001 X - Record type 2 Value "Q"
SAJE-WORK-Q1-FILLER-2 023 010 X - Filler Value "0000000001"
SAJH-WORK-QUERY1-TYPE 033 001 X - Query type Type "2"
SAJH-WORK-QUERY1-AB 034 001 X - Actual or budget
SAJH-WORK-QUERY1-JOURNAL- 035 005 N 0 Journal reference
REF
SAJH-WORK-QUERY1-REC-TYPE 040 001 X - Record type Value "Q"
SAJH-WORK-QUERY1-JOURNAL- 041 007 N 0 Journal sequence
SEQ
SAJE-WORK-Q1-PROCESS-MODE 048 002 X - Process mode
SAJE-WORK-Q1-TRANS-DATA 050 020 X - Trans data
SAJE-WORK-Q1-LINE-DATA 070 367 X - Line data
FILLER 437 076 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 376 of 455


The Query record 2, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-Q2-REC-TYPE 001 001 X - Record type Value "Q"
SAJE-WORK-Q2-FILLER 002 020 X - Filler Value "00000000000000000002"
SAJE-WORK-Q2-REC-TYPE-2 022 001 X - Record type 2 Value "Q"
SAJE-WORK-Q2-FILLER-2 023 010 X - Filler Value "0000000002"
SAJH-WORK-QUERY2-TYPE 033 001 X - Query type Type "2"
SAJH-WORK-QUERY2-AB 034 001 X - Actual or Budget
SAJH-WORK-QUERY2-JOURNAL- 035 005 N 0 Journal reference
REF
SAJH-WORK-QUERY2-REC-TYPE 040 001 X - Record Type "Q"
SAJH-WORK-QUERY2-JOURNAL- 041 007 N 0 Journal sequence
SEQ
SAJE-WORK-Q2-LINE-PRESETS 048 333 X - Journal Presets
SAJE-WORK-Q2-ANAL-VALIDATE 381 010 X - -
FILLER 391 122 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 377 of 455


The Query Record 3, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-Q3-REC-TYPE 001 001 X - Record type Value "Q"
SAJE-WORK-Q3-FILLER 002 020 X - Filler Value "00000000000000000003"
SAJE-WORK-Q3-REC-TYPE-2 022 001 X - Record type 2 Value "Q"
SAJE-WORK-Q3-FILLER-2 023 010 X - Filler Value "0000000003"
SAJH-WORK-QUERY3-TYPE 033 001 X - Query type Type "2"
SAJH-WORK-QUERY3-AB 034 001 X - Actual or Budget
SAJH-WORK-QUERY3-JOURNAL- 035 005 N 0 Journal reference
REF
SAJH-WORK-QUERY3-REC-TYPE 040 001 X - Record type "Q"
SAJH-WORK-QUERY3-JOURNAL- 041 007 N 0 Journal sequence
SEQ
SAJE-WORK-TEMP-TRANS-DATA 048 020 X - Temp Trans data
SAJE-WORK-TEMP-LINE-DATA 068 367 X - Temp Line data
SAJE-WORK-TEMP-HIGHEST- 435 005 N 0 Highest ref Id
REF-ID
SAJE-WORK-TEMP-HIGHEST- 440 003 N 0 Highest line number
LINE-NO
SAJE-WORK-TEMP-TRANS-LINE- 443 003 N 0 Trans line number
NO
SAJE-WORK-TEMP-TRANS-LINE- 446 002 N 0 Trans line suffix
SUFF
SAJE-WORK-TEMP-HIGHEST- 448 003 N 0 -
PRESET
FILLER 451 062 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 378 of 455


The Query record 4, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-Q4-REC-TYPE 001 001 X - Record Type Value "Q"
SAJE-WORK-Q4-FILLER 002 020 X - Filler Value "00000000000000000004"
SAJE-WORK-Q4-REC-TYPE-2 022 001 X - Record type 2 Value "Q"
SAJE-WORK-Q4-FILLER-2 023 010 X - Filler Value "0000000004"
SAJH-WORK-QUERY4-TYPE 033 001 X - Query type Type "2"
SAJH-WORK-QUERY4-AB 034 001 X - Actual or Budget
SAJH-WORK-QUERY4-JOURNAL- 035 005 N 0 Journal reference
REF
SAJH-WORK-QUERY4-REC-TYPE 040 001 X - Record type
SAJH-WORK-QUERY4-JOURNAL- 041 007 N 0 Journal sequence
SEQ
SAJE-WORK-Q4-TRANS-TOTALS 048 040 X - Trans totals
SAJE-WORK-Q4-T-UNPOST- 088 040 X - Unposted total
TOTALS
SAJE-WORK-Q4-HIGHEST-LINE- 128 003 N 0 Highest line no
NO
SAJE-WORK-Q4-HIGHEST- 131 003 N 0 Highest preset
PRESET
SAJE-WORK-Q4-TEMP-TOTALS 134 160 X - Temp totals
SAJE-WORK-Q4-PRIOR-ACC- 294 001 X - Prior account type B
TYPE-B
SAJE-WORK-Q4-PRIOR-ACC- 295 001 X - Prior account type O
TYPE-O
SAJE-WORK-Q4-CUR-PRESET- 296 003 N 0 Current preset line number
LINENO
SAJE-WORK-Q4-DISPLAY-CONV 299 001 X - Display conversion
SAJE-WORK-Q4-CONV-CODE- 300 001 X - Conversion code control
CONTROL
FILLER 301 069 X - -
SAJE-WORK-Q4-STR-ACC-TYPE 370 001 X - Account type
FILLER 371 142 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 379 of 455


The Query 5 record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-Q5-REC-TYPE 001 001 X - Record Type Value "Q"
SAJE-WORK-Q5-FILLER 002 020 X - Filler Value "00000000000000000005"
SAJE-WORK-Q5-REC-TYPE-2 022 001 X - Record type 2 Value "Q"
SAJE-WORK-Q5-FILLER-2 023 010 X - Filler Value "0000000005"
SAJH-WORK-QUERY5-TYPE 033 001 X - Type "2"
SAJH-WORK-QUERY5-AB 034 001 X - Actual or Budget
SAJH-WORK-QUERY5-JOURNAL- 035 005 N 0 Journal Reference
REF
SAJH-WORK-QUERY5-REC-TYPE 040 001 X - Record type "Q"
SAJH-WORK-QUERY5-JOURNAL- 041 007 N 0 Journal Sequence number
SEQ
FILLER 048 002 X - -
FILLER 050 020 X - -
SAJE-WORK-Q5-PREV-LINE- 070 361 X - Previous Line data
DATA
SAJE-WORK-Q5-PREV-JOURNAL- 431 043 X - Previous Journal data
DATA
AJE-WORK-Q5-PREV-TRANS- 474 020 X - Previous Trans data
DATA
SAJE-WORK-Q5-PREV-LINE-NO 494 003 N 0 Previous Line number
SAJE-WORK-Q5-PREV-LINE-NO- 497 002 N 0 Previous line suffix
SUFF
FILLER 499 014 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 380 of 455


The Journal Hold Control Record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-WORK-HOLD-J-REC-TYPE 001 001 X - Record Type Key 1 Mandatory Value "Z"
SAJE-WORK-HOLD-J-FILLER 002 020 X - - Value "00000000000000000000"
SAJE-WORK-HOLD-J-REC-TYPE- 022 001 X - Record Type Key 2 Mandatory Value "Z"
2
SAJE-WORK-HOLD-J-FILLER-2 023 010 X - - Value "0000000000"
SAJH-WORK-HOLD-J-TYPE 033 001 X - Journal Held Type Value "5"
SAJH-WORK-HOLD-J-AB 034 001 X - Journal Held Actual/Budget
SAJH-WORK-HOLD-J-JOURNAL- 035 005 N 0 Journal Held Reference
REF
SAJH-WORK-HOLD-L-REC-TYPE 040 001 X - Journal Held Record Type
SAJH-WORK-HOLD-J-JOURNAL- 041 007 N 0 Journal Held Sequence Number
SEQ
SAJE-WORK-HOLD-J-REFERENCE 048 005 N 0 Reference
SAJE-WORK-HOLD-J-OPERATOR 053 003 X - Operator Id
FILLER 056 457 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 381 of 455


The Journal Hold Version Record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 032 X - -
SAJH-VERSION-TYPE 033 001 X - Journal Held Type Mandatory Type "4"
SAJH-VERSION-AB 034 001 X - Journal Held Actual/Budget
SAJH-VERSION-JOURNAL-REF 035 005 N 0 Journal Held Reference
SAJH-VERSION-REC-TYPE 040 001 X - Journal Held Record Type
SAJH-VERSION-JOURNAL-SEQ 041 007 N 0 Journal Held Sequence Number
SAJH-VERSION 048 003 N 0 Version Number
SAJH-LAN-CODE 051 002 N 0 Language Code
FILLER 053 460 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 382 of 455


The Journal Hold Actual/Budget Record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 032 X - -
SAJH-CONTROL-TYPE 033 001 X - Journal Held Type Mandatory Type "0"
SAJH-CONTROL-AB 034 001 X - Journal Held Actual/Budget
SAJH-CONTROL-JOURNAL-REF 035 005 N 0 Journal Held Reference
SAJH-CONTROL-REC-TYPE 040 001 X - Journal Held Record Type
SAJH-CONTROL-JOURNAL-SEQ 041 007 N 0 Journal Held Sequence Number
SAJH-CONTROL-NEXT-REF 048 005 N 0 Next Journal Reference
FILLER 053 460 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 383 of 455


The Journal Hold Journal Record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 032 X - -
SAJH-JOURNAL-C-TYPE 033 001 X - Journal Held Type Mandatory Type "1"
SAJH-JOURNAL-C-AB 034 001 X - Journal Held Actual/Budget
SAJH-JOURNAL-C-JOURNAL-REF 035 005 N 0 Journal Held Reference
SAJH-JOURNAL-C-REC-TYPE 040 001 X - Journal Held Record Type
SAJH-JOURNAL-C-JOURNAL-SEQ 041 007 N 0 Journal Held Sequence Number
SAJH-JOURNAL-C-JT 048 005 X - Journal Type
SAJH-JOURNAL-C-JS 053 005 X - Journal Source
SAJH-JOURNAL-C-CHANGED 058 008 N 0 Date Last Changed
SAJH-JOURNAL-C-TRANS-CT 066 007 N 0 Count of Transactions
SAJH-JOURNAL-C-DEBIT 073 010 N 3 Base Total Debit PIC 9(15) V9(3) COMP-3
SAJH-JOURNAL-C-CREDIT 083 010 N 3 Base Total Credit PIC 9(15) V9(3) COMP-3
SAJH-JOURNAL-C-OPERATOR 093 003 X - Operator Id
SAJH-JOURNAL-C-BUSY 096 001 X - Journal in Use
SAJH-JOURNAL-C-ROUGH 097 001 X - Rough Source
SAJH-JOURNAL-C-NUMBER 098 007 N 0 Journal Number if Rough Source
FILLER 105 408 X - -
FILLER 513 512 X - -

SunSystems 4 – Technical Reference Manual Page 384 of 455


In SQL versions, the data is stored in the following table, called SAQFHLDxxx:

Field Name Field Type


DATA_1 char (32)
KEY_FIELDS char (15)
O DATA_2 char (250)
S DATA_2 binary (250)
O DATA_3 char (221)
S DATA_3 char (221)

Note: Oracle (O) fields have different datatype to SQL Server fields (S).

SunSystems 4 – Technical Reference Manual Page 385 of 455


The Purchase Import File
Description
The Purchase Import file holds details of purchase orders, GRN’s and invoices to be used to
update the Purchase Order Master file, via the Purchase Import function within SunBusiness
Purchase Order Processing.
Summary of Record
There are the following record types on the Purchase Import file:
the Order Header record
the Order Detail record
the Order Description record
the GRN Header record
the GRN Detail record
the Invoice Header Record
the Invoice Detail record
the Direct Invoice Header record
the Direct Invoice Detail record
the Direct Invoice Description record

SunSystems 4 – Technical Reference Manual Page 386 of 455


The Purchase Import Order Header record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
OENTH-TYPE 001 005 X - Record type Value ‘OENTH’ , mandatory
OENTH-OPERATOR-ID 006 003 X - Operator I.D.
OENTH-REF-PREFIX 009 004 X - Order Reference prefix
OENTH-REF-SUFFIX 013 006 X - Order Reference suffix
OENTH-SUPP-ADDRESS 019 010 X - Supplier Address Code
OENTH-ORDER-DATE 029 008 X - Order Date
OENTH-SECOND-REF 037 010 X - Second Reference
OENTH-ORDER-STATUS-1 047 001 N - Order status 1 Value may be :
0 = Held
3 = Released
6 = Issued (Printed)
OENTH-TRANS-TYPE 048 005 X - Transaction Type
OENTH-DEL-ADDRESS 053 010 X - Delivery Address Code
OENTH-COMMENTS 063 025 X - Comments
OENTH-ACK-REF 088 010 X - Acknowledgement Reference
OENTH-ACK-DATE 098 008 X - Acknowledgement Date
OENTH-DEL-DATE 106 008 X - Delivery Date
OENTH-DEL-ADVISED 114 001 X - Delivery Advised
OENTH-ORDER-PERIOD 115 007 X - Period Ordered
OENTH-ANAL-CODE 122 150 X - Analysis Codes 10 x 15 bytes
OENTH-DOC-ISSUE-DATE 272 008 X - Document Issue Date
OENTH-DEL-AUX 280 210 X - Auxiliary Delivery Address 6 x 35
bytes
FILLER 490 211 X - -

SunSystems 4 – Technical Reference Manual Page 387 of 455


The Purchase Import Order Detail record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
OENTI-TYPE 001 005 X - Record Type Value ‘OENTI’, mandatory
OENTI-UP-BPC 006 001 X - Update Base Cost Indicator
OENTI-OPERATOR-ID 007 003 X - Operator I.D.
OENTI-REF-PREFIX 010 004 X - Order Reference Suffix
OENTI-REF-SUFFIX 014 006 X - Order Reference Prefix
OENTI-LINE-NO-A 020 003 N - Transaction Line Number A
OENTI-LINE-NO-B 023 001 X - Transaction Line Number B
OENTI-LOCATION 024 005 X - Location Code
OENTI-ITEM-CODE 029 015 X - Item Code
OENTI-SUPP-ITEM-DESC 044 030 X - Supplier Item Description
OENTI-DEL-DATE 074 008 X - Delivery Date
OENTI-DEL-ADVISED 082 001 X - Delivery Advised
OENTI-ORDER-STATUS-1 083 001 N - Order Status 1 Value may be :
0 = Held
6 = Issued (printed)
OENTI-ORDER-STATUS-2 084 001 N - Order status 2 Value may be :
0 = O.K.
1 = Cancelled
2 = Undelivered
OENTI-PURCH-QTY 085 019 N - Purchase quantity PIC S9(13)V9(5)
Leading sign separate
OENTI-STOCK-QTY 104 019 N - Stock Quantity PIC S9(13)V9(5)
Leading sign separate
OENTI-BASE-COST 123 019 N - Base Purchase Cost PIC S9(13)V9(5)
Leading sign separate
OENTI-CALC-VALUE 142 323 N - Calculation Values 17 x 19 bytes PIC S9(13)V9(5)
Leading sign separate
OENTI-ACCOUNT-CODE 465 010 X - Account Code
OENTI-ASSET-CODE 475 010 X - Asset Code
OENTI-ASSET-SUB-CODE 485 005 X - Asset Subcode
OENTI-ANAL-CODE 490 150 X - Analysis Code 10 x 15 bytes
FILLER 640 061 X - -

SunSystems 4 – Technical Reference Manual Page 388 of 455


The Purchase Import Order Description record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
OENTT-TYPE 001 005 X - Record Type
OENTT-OPERATOR-ID 006 003 X - Operator I.D.
OENTT-REF-PREFIX 009 004 X - Order Reference Prefix
OENTT-REF-SUFFIX 013 006 X - Order reference Suffix
OENTT-LINE-NO-A 019 003 N - Transaction Line Number A
OENTT-LINE-NO-B 022 001 X - Transaction Line Number B
OENTT-ITEM-CODE 023 015 X - Item Code
OENTT-SUPP-ITEM-DESC 038 030 X - Suppliers Item Description
FILLER 068 633 X - -

SunSystems 4 – Technical Reference Manual Page 389 of 455


The Purchase Import GRN Header record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
OGRNH-TYPE 001 005 X - Record Type
OGRNH-TOTAL-QTY 006 019 N - Total Quantity PIC S9(13)V9(5)
Leading sign separate
OGRNH-OPERATOR-ID 025 003 X - Operator I.D.
OGRNH-REF-PREFIX 028 004 X - Order Reference Prefix
OGRNH-REF-SUFFIX 032 006 X - Order reference Suffix
OGRNH-SUPP-GRN-REF 038 010 X - Suppliers GRN Reference
OGRNH-GRN-DATE 048 008 X - GRN Date
OGRNH-COMMENTS 056 025 X - Comments
OGRNH-PAYMENT-DATE 081 008 X - Payment Date
FILLER 089 612 X - -

SunSystems 4 – Technical Reference Manual Page 390 of 455


The Purchase Import GRN Detail record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
OGRNI-TYPE 001 005 X - Record Type
OGRNI-POST-PERIOD 006 007 X - Posting Period
OGRNI-OPERATOR-ID 013 003 X - Operator I.D.
OGRNI-REF-PREFIX 016 004 X - Order Reference Prefix
OGRNI-REF-SUFFIX 020 006 X - Order Reference Suffix
OGRNI-GRN-REFERENCE 026 010 X - GRN Reference
OGRNI-LINE-NO-A 036 003 N - Line Number A
OGRNI-LINE-NO-B 039 001 X - Line Number B
OGRNI-STATUS-1 040 001 N - GRN Status 1 Value may be:
1 = Matched (Held)
2 = Matched (Held), Approved
(Held)
3 = Matched (Released)
4 = Matched (Released),
Approved (Held)
5 = Matched (Released),
Approved (Released)
OGRNI-STATUS-2 041 001 N - GRN Status 2 Value may be:
0 = O.K.
1 = Cancelled
2 = Undelivered
4 = Over delivered
OGRNI-PURCH-QTY 042 019 N - Purchase Quantity PIC S9(13)V9(5)
Leading sign separate
OGRNI-RECEIPT-REF 061 010 X - Receipt Reference
OGRNI-AUDIT-DATE 071 008 X - Audit Date
FILLER 079 622 X - -

SunSystems 4 – Technical Reference Manual Page 391 of 455


The Purchase Import Invoice Header record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
OINVH-TYPE 001 005 X - Record Type
OINVH-OPERATOR-ID 006 003 X - Operator I.D.
OINVH-TOTAL-QTY 009 019 N - Total Invoice Quantity PIC S9(13)V9(5)
Leading sign separate
OINVH-TOTAL-VALUE 028 019 N - Total Invoice Value PIC S9(13)V9(5)
Leading sign separate
OINVH-REF-PREFIX 047 004 X - Order Reference prefix
OINVH-REF-SUFFIX 051 006 X - Order Reference Suffix
OINVH-SUPP-INV-REF 057 010 X - Suppliers Invoice Reference
OINVH-INV-DATE 067 008 X - Invoice date
OINVH-COMMENTS 075 025 X - Comments
OINVH-PAY-DATE 100 008 X - Payment Date
OINVH-INV-PERIOD 108 007 X - Period Invoiced
FILLER 115 586 X - -

SunSystems 4 – Technical Reference Manual Page 392 of 455


The Purchase Import Invoice Detail record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
OINVI-TYPE 001 005 X - Record Type
OINVI-OPERATOR-ID 006 003 X - Operator I.D.
OINVI-UP-BPC 009 001 X - Update Base Base Cost Indicator
OINVI-REF-PREFIX 010 004 X - Order Reference Preffix
OINVI-REF-SUFFIX 014 006 X - Order Reference Suffix
OINVI-INV-REFERENCE 020 010 X - Invoice reference
OINVI-LINE-NO-A 030 003 N - Line Number A
OINVI-LINE-NO-B 033 001 X - Line Number B
OINVI-DEL-DATE 034 008 X - Delivery Date
OINVI-DEL-ADVISED 042 001 X - Delivery advised
OINVI-STATUS-1 043 001 N - Invoice Status 1 Value may be:
1 = Matched (Held)
2 = Matched (Held), Approved
(Held)
3 = Matched (Released)
4 = Matched (Released),
Approved (Held)
5 = Matched (Released),
Approved (Released)
OINVI-STATUS-2 044 001 N - Invoice Status 2 Value may be:
0 = O.K.
1 = Cancelled
2 = Undelivered
OINVI-PURCH-QTY 045 019 N - Purchase Quantity PIC S9(13)V9(5)
Leading sign separate
OINVI-STOCK-QTY 064 019 N - Stock Quantity PIC S9(13)V9(5)
Leading sign separate
OINVI-BASE-COST 083 019 N - Base Cost PIC S9(13)V9(5)
Leading sign separate
OINVI-CALC-VALUE 102 323 N - Calculation Values 17 x 19 bytes PIC S9(13)V9(5)
Leading sign separate
OINVI-INV-PERIOD 425 007 X - Period Invoiced
OINVI-INV-APP-DATE 432 008 X - Invoice Approval Date
OINVI-RECEIPT-REF 440 015 X - Receipt Reference
OINVI-AUDIT-DATE 455 008 X - Audit date
OINVI-ACCOUNT-CODE 463 010 X - Account Code
OINVI-ASSET-CODE 473 010 X - Asset Code
OINVI-ASSET-SUB-CODE 483 005 X - Asset Sub Code
FILLER 488 213 X - -

SunSystems 4 – Technical Reference Manual Page 393 of 455


The Purchase Import Direct Invoice Header record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
DINVH-TYPE 001 005 X - Record Type
DINVH-TOTAL-QTY 006 019 N - Total Invoice Quantity PIC S9(13)V9(5)
Leading sign separate
DINVH-TOTAL-VALUE 025 019 N - Total Invoice Value PIC S9(13)V9(5)
Leading sign separate
DINVH-OPERATOR-ID 044 003 X - Operator I.D.
DINVH-REF-PREFIX 047 004 X - Order Reference Prefix
DINVH-REF-SUFFIX 051 006 X - Order Reference Suffix
DINVH-SUP P-ADDRESS 057 010 X - Suppliers Address Code
DINVH-INV-DATE 067 008 X - Invoice Date
DINVH-SUPP-INV-REF 075 010 X - Suppliers Invoice Reference
DINVH-TRANS-TYPE 085 005 X - Transaction Type
DINVH-DEL-ADDRESS 090 010 X - Delivery Address Code
DINVH-COMMENTS 100 025 X - Comments
DINVH-PAY-DATE 125 008 X - Payment Date
DINVH-INV-PERIOD 133 007 X - Period Invoiced
DINVH-ANAL-CODE 140 150 X - Analysis Codes 10 x 15 bytes
DINVH-DEL-AUX 290 210 X - Auxiliary Delivery Address 6 x 35
bytes
FILLER 500 201 X - -

SunSystems 4 – Technical Reference Manual Page 394 of 455


The Purchase Import Direct Invoice Detail record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
DINVI-TYPE 001 005 X - Record Type
DINVI-POST-PERIOD 006 007 X - Posting Period
DINVI-UP-BPC 013 001 X - Update Base Cost Indicator
DINVI-OPERATOR-ID 014 003 X - Operator I.D.
DINVI-REF-PREFIX 017 004 X - Order Reference Prefix
DINVI-REF-SUFFIX 021 006 X - Order reference Suffix
DINVI-INV-REFERENCE 027 010 X - Invoice Reference
DINVI-LINE-NO-A 037 003 N - Line number A
DINVI-LINE-NO-B 040 001 X - Line Number B
DINVI-LOCATION 041 005 X - Location
DINVI-ITEM-CODE 046 015 X - Item Code
DINVI-SUPP-ITEM-DESC 061 030 X - Suppliers Item Description
DINVI-DEL-DATE 091 008 X - Delivery Date
DINVI-DEL-ADVISED 099 001 X - Delivery Advised
DINVI-INVOICE-STATUS-1 100 001 N - Invoice Status 1 Value may be:
1 = Matched (Held)
2 = Matched (Held), Approved
(Held)
3 = Matched (Released)
4 = Matched (Released),
Approved (Held)
5 = Matched (Released),
Approved (Released)
DINVI-INVOICE-STATUS-2 101 001 N - Invoice Status 2 Value may be:
0 = O.K.
1 = Cancelled
2 = Undelivered
DINVI-PURCH-QTY 102 019 N - Purchase Quantity PIC S9(13)V9(5)
Leading sign separate
DINVI-STOCK-QTY 121 019 N - Stock Quantity PIC S9(13)V9(5)
Leading sign separate
DINVI-BASE-COST 140 019 N - Base Cost PIC S9(13)V9(5)
Leading sign separate
DINVI-CALC-VALUE 159 323 N - Calculation Values 17 x 19 bytes PIC S9(13)V9(5)
Leading sign separate
DINVI-ACCOUNT-CODE 482 010 X - Account Code
DINVI-ASSET-CODE 492 010 X - Asset Code
DINVI-ASSET-SUB-CODE 502 005 X - Asset Sub Code
DINVI-RECEIPT-REF 507 010 X - Receipt Reference
DINVI-AUDIT-DATE 517 008 X - Audit Date
DINVI-ANAL-CODE 525 150 X - Analysis Codes 10 x 15 bytes
FILLER 675 026 X - -

SunSystems 4 – Technical Reference Manual Page 395 of 455


The Purchase Import Direct Invoice Description record, see [Link]

COBOL POS’N IN FIELD FIELD DEC. DESCRIPTION COMMENT


FIELD NAME RECORD LENGTH TYPE PLACES
DINVT-TYPE 001 005 X - Record Type
DINVT-OPERATOR-ID 006 003 X - Operator I.D.
DINVT-REF-PREFIX 009 004 X - Order Reference Prefix
DINVT-REF-SUFFIX 013 006 X - Order Reference Suffix
DINVT-INV-REFERENCE 019 010 X - Invoice Reference
DINVT-LINE-NO-A 029 003 N - Line Number A
DINVT-LINE-NO-B 032 001 X - Line Number B
DINVT-ITEM-CODE 033 015 X - Item Code
DINVT-SUPP-ITEM-DESC 048 030 X - Suppliers Item Description
FILLER 078 623 X - -

SunSystems 4 – Technical Reference Manual Page 396 of 455


Technical Reference Manual
Appendix C: SunSystems Backup Files

The Backup files (created using FB=File Backup/Restore) are sequential text files with no index
keys. The records are variable length, and are terminated by carriage return, line feed or line feed
alone depending on the environment.
All Backup files have a Version Control record, which is the first record on the file. This is the
same format on each file (see below). Note that some files have their own Control record too,
which is not connected with the Version Control record.
The Version Control record has the following layout:
bytes 01 to 07 contain the word ‘VERSION’
bytes 08 to 32 contain spaces
bytes 33 to 35 contain the version, currently ‘420’ in all cases
bytes 36 to 37 contain the language code.
The Backup files are compatible over all operating systems.

The Reference Backup File


Description
The Reference Backup file is called [Link]. Each record on the data file has a
corresponding record on the Backup file.
Summary of Record Types
The three character code at the beginning of each record identifies the record type. See the
subsection Standards for Reference Record Types, in the section Reference Maintenance, for a
complete list of the record types.
Reference Backup File Record Descriptions
The layout of the records on this file is identical to the layout of the records on the master indexed
data file, [Link]. Therefore, see Appendix B: Master Data Files for the record
descriptions.

The Ledger, Budget and Archive Backup File


Description
The Ledger Backup file is called [Link]. Note that the layout of this file is used as the
basis for the SunBusiness Transfer file (see Appendix B). Note also that the Budget Backup files
and the Archive Backup files share the same record layout. Each record on the Data file has a
corresponding record on the Backup file.
Summary of Record Types
There are the following record types on the Ledger Backup File:
the Control record
the Transaction record
There is one Control (type ‘C’) record per file. Note that the SunBusiness Transfer files also have
a Control record, which is not the same as the Ledger Control record. There is one Transaction
(type ‘L’) record for each transaction line posted to the ledger.
Note: Earlier formats of transaction backup records (Types ‘E’ and ‘T’) are still available
when using this layout for a SAF format import file to Journal Import.

SunSystems 4 – Technical Reference Manual Page 397 of 455


Ledger Backup File Record Descriptions
See Appendix B, subsection Ledger File Record Descriptions, for descriptions of the individual
fields on the record.

The Transaction Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
L-B-AC 001 015 X -
L-B-AP 016 007 N 0
L-B-DT 023 008 N 0
FILLER 031 002 X -
L-B-RECORD-TYPE 033 001 X -
L-B-JN 034 007 N 0
L-B-TN 041 007 N 0
L-B-AM-3DP 048 018 N 3
L-B-DC 066 001 X -
L-B-AI 067 001 X -
L-B-TT 068 005 X -
L-B-JR 073 005 X -
L-B-RF 078 015 X -
L-B-DS 093 025 X -
L-B-ED 118 008 N 0
L-B-EP 126 007 N 0
L-B-ADD-DATE 133 008 N 0
FILLER 141 006 X 0
L-B-ALLOC-RF 147 009 X -
L-B-ALLOC-DT 156 008 N 0
L-B-ALLOC-AP 164 007 N 0
L-B-ASSET-IND 171 001 X -
L-B-ASSET-CODE 172 010 X -
L-B-ASSET-SUB-CODE 182 005 X -
L-B-CONV-CODE 187 005 X -
L-B-CONV-RATE 192 018 N 9
L-B-OTHER-AM 210 018 N 3
L-B-OTHER-DP 228 001 X -
L-B-CLEARDOWN 229 005 N 0
FILLER 234 004 X -
L-B- REVERSAL 238 001 X -
L-B-LOSS-GAIN 239 001 X -
L-B-ROUGH-FLAG 240 001 X -
L-B-IN-USE-FLAG 241 001 X -
L-B-AN-0 242 015 X -
L-B-AN-1 257 015 X -
L-B-AN-2 272 015 X -
L-B-AN-3 287 015 X -
L-B-AN-4 302 015 X -
L-B-AN-5 317 015 X -
L-B-AN-6 332 015 X -
L-B-AN-7 347 015 X -
L-B-AN-8 362 015 X -
L-B-AN-9 377 015 X -
L-B-POSTING-DATE 392 008 N 0
L-B-UOB 400 001 X -
L-B-ALLOC-IN-PROGRESS 401 001 X -
L-B-HOLD-REF 402 005 N 0
L-B-HOLD-OP-ID 407 003 X -
L-B-BCHECK-ACCT 410 015 X -
L-B-ALLOC-MARKER-ID 425 003 X -
L-B-ALLOC-MARKER-DATE 428 008 N 0
FILLER 436 077 X -

SunSystems 4 – Technical Reference Manual Page 398 of 455


The Control Backup Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 032 X -
FILLER 033 001 X -
L-B-HIGHEST-JN 034 007 N 0
L-B-HIGHEST-CLEARDOWN 041 005 N 0
FILLER 046 002 X -
L-B-LANGUAGE-ID 048 002 N -
FILLER 050 001 X -
FILLER 051 248 X -
FILLER 299 214 X -

The Ledger Backup file record layout is also used as the import record layout for Journal Import
SunAccount Format (SAF) transactions. In version 4.2, you may use the record layout above with
record type ‘M’, or if you wish you may use the version 3 or 4 record layouts as described below.
The Journal Import program will check the record type, and will assume that you are using a
version 3 format if the record type is ‘E’ or ‘T’, or version 4 if the record type if ‘N’.

Version 4.0
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
L-B-AC 001 015 X -
L-B-AP 016 007 N 0
L-B-DT 023 008 N 0
FILLER 031 002 X -
L-B-RECORD-TYPE 033 001 X -
L-B-JN 034 007 N 0
L-B-TN 041 007 N 0
L-B-AM-3DP 048 018 N 3
L-B-DC 066 001 X -
L-B-AI 067 001 X -
L-B-TT 068 005 X -
L-B-JR 073 005 X -
L-B-RF 078 015 X -
L-B-DS 093 025 X -
L-B-ED 118 008 N 0
L-B-EP 126 007 N 0
L-B-ADD-DATE 133 008 N 0
L-B-PAID-RF 141 015 X -
L-B-PAID-DT 156 008 N 0
L-B-PAID-AP 164 007 N 0
L-B-ASSET-IND 171 001 X -
L-B-ASSET-CODE 172 010 X -
L-B-ASSET-SUB-CODE 182 005 X -
L-B-CONV-CODE 187 005 X -
L-B-CONV-RATE 192 018 N 9
L-B-OTHER-AM 210 018 N 3
L-B-OTHER-DP 228 001 X -
L-B-CLEARDOWN 229 005 N 0
FILLER 234 006 X -
L-B-AN-1 240 005 X -
L-B-AN-2 245 005 X -
L-B-AN-3 250 005 X -
L-B-AN-4 255 005 X -
L-B-AN-5 260 005 X -
L-B-AN-EXTRA 265 034 X -
L-B-UOB 299 001 X -
FILLER 300 213 X -

SunSystems 4 – Technical Reference Manual Page 399 of 455


The Control Backup Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 032 X -
FILLER 033 001 X -
L-B-HIGHEST-JN 034 007 N 0
L-B-HIGHEST-CLEARDOWN 041 005 N 0
FILLER 046 002 X -
L-B-LANGUAGE-ID 048 003 X -
FILLER 051 248 X -
FILLER 299 214 X -
Version 3
L-B-AC 001 010 X -
L-B-AP 011 004 N 0
L-B-DT 015 006 N 0
L-B-RF 021 010 X -
FILLER 031 002 X -
L-B-RECORD-TYPE 033 001 X -
FILLER 034 001 X -
If Record Type is “T”
FILLER 035 008 - -
L-B-AM-2DP 035 010 N 2
If Record Type is “E”
L-B-AM-3DP 035 018 N 3
L-B-DC 053 001 X -
L-B-TT 054 005 X -
L-B-ED 059 006 N 0
L-B-AI 065 001 X -
L-B-JN 066 005 N 0
L-B-TN 071 005 N 0
L-B-JR 076 005 X -
L-B-EP 081 004 N 0
L-B-DS 085 030 X -
L-B-AN-1 115 005 X -
L-B-AN-2 120 005 X -
L-B-AN-3 125 005 X -
L-B-AN-4 130 005 X -
L-B-AN-5 135 005 X -
L-B-CONV-CODE 140 005 X -
L-B-OTHER-AM 145 018 N 3
L-B-ADD-DATE 163 006 N 0
FILLER 169 001 X -
L-B-CONV-RATE 170 018 N 9
L-B-OTHER-DP 188 001 X -
L-B-ASSET-IND 189 001 X -
L-B-ASSET-CODE 190 010 X -
L-B-ASSET-SUB-CODE 200 005 X -

SunSystems 4 – Technical Reference Manual Page 400 of 455


The Sales Order Backup File
Description
The Sales Order Backup file is called [Link]. Each record on the Data file (SOMF-
[Link]) has a corresponding record on the Backup file. Note that the Sales Order Import file
has the same layout as this file.
Summary of Record Types
There are the following record types on the Sales Order Backup file:
the Order Header record
the Invoice Header record
the Detail record.
See Appendix B, subsection Summary of Record Types, for further information about the
existence of the different types of record.
Sales Order Backup File Record Descriptions
See Appendix B, subsection Sales Order File Record Descriptions, for descriptions of the
individual fields on the records.

The Sales Order/Invoice Header Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
OHB3-TRANS-TYPE 001 001 X -
FILLER 002 005 X -
OHB3-TRANS-PREF 007 004 X -
OHB3-TRANS-SUFF 011 006 X 0
FILLER 017 005 X -
OHB3-KEY-ID 022 001 X -
OHB3-CUSTOMER-CODE 023 010 X -
OHB3-TRANS-DATE 033 008 N 0
FILLER 041 014 X -
OHB3-STATUS-1 055 001 N 0
OHB3-STATUS-2 056 001 N 0
OHB3-TRANS-CD 057 001 X -
OHB3-TRANS-CODE 058 005 X -
FILLER 063 005 X -
OHB3-ORDER-NO 068 010 X -
OHB3-D-NOTE-NO 078 015 X -
OHB3-DELIVERY-CODE 093 010 X -
OHB3-DATE-ORDER 103 008 N 0
OHB3-DATE-ACKNOWLEDGED 111 008 N 0
OHB3-DATE-PICKED 119 008 N 0
OHB3-DATE-DELIVERED 127 008 N 0
OHB3-DATE-INVOICED 135 008 N 0
OHB3-PERIOD-INVOICED 143 007 N 0
OHB3-CUSTOMER-REF 150 025 X -
OHB3-COMMENTS 175 025 X -
OHB3-TRANS-VALUE 200 019 S 5 (Leading sign separate)
OHB3-PAYMENT-DUE-DATE 219 008 X -
OHB3-ANALYSIS-ADDRESS 227 001 X -
OHB3-LINKED-TEXT 228 001 X -
OHB3-ANALYSIS-CODE-0 229 015 X -
OHB3-ANALYSIS-CODE-1 244 015 X -
OHB3-ANALYSIS-CODE-2 259 015 X -
OHB3-ANALYSIS-CODE-3 274 015 X -
OHB3-ANALYSIS-CODE-4 289 015 X -
OHB3-ANALYSIS-CODE-5 304 015 X -

SunSystems 4 – Technical Reference Manual Page 401 of 455


The Sales Order/Invoice Header Backup Record – (continued)
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
OHB3-ANALYSIS-CODE-6 319 015 X -
OHB3-ANALYSIS-CODE-7 334 015 X -
OHB3-ANALYSIS-CODE-8 349 015 X -
OHB3-ANALYSIS-CODE-9 364 015 X -
OHB3-QUOTE-CONVERT 379 001 X -
OHB3-QUOTE-PRINT 380 001 X -
OHB3-QUOTE-EXPIRY-DATE 381 008 N 0
OHB3-PERIOD-QUOTED 389 007 N 0
FILLER 396 005 X -
OHB3-QUOTATION-REF 401 010 X -
OHB3-DATE-QUOTED 411 008 N 0
OHB3-VOID-STATUS 419 001 X -
OHB3-EXTRA-CUST-CODE1 420 010 X -
OHB3-EXTRA-CUST-CODE2 430 010 X -
OHB3-EXTRA-TEXT1 440 030 X -
OHB3-EXTRA-TEXT2 470 030 X -
OHB3-EXTRA-TEXT3 500 015 X -
OHB3-EXTRA-TEXT4 515 015 X -
OHB3-EXTRA-TEXT5 530 015 X -
OHB3-EXTRA-TEXT6 545 010 X -
OHB3-EXTRA-TEXT7 555 010 X -
OHB3-EXTRA-VALUE1 565 019 S 5
OHB3-EXTRA-VALUE2 584 019 S 5
OHB3-EXTRA-VALUE3 603 019 S 5
FILLER 622 176 - -

SunSystems 4 – Technical Reference Manual Page 402 of 455


The Sales Order Detail Backup Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SDB3-TRANS-TYPE 001 001 X -
FILLER 002 005 X -
SDB3-TRANS-PREF 007 004 X -
SDB3-TRANS-SUFF 011 006 X -
SDB3-TRANS-LINE-NUMBER 017 003 N 0
SDB3-TRANS-LINE-SUFF 020 002 X -
SDB3-KEY-ID 022 001 X -
SDB3-LOCATION 023 005 X -
SDB3-ITEM-CODE 028 015 X -
SDB3-TRANS-DATE 043 008 N 0
SDB3-SEQUENCE 051 004 N 0
SDB3-STATUS-1 055 001 N 0
SDB3-STATUS-2 056 001 N 0
SDB3-TRANS-CD 057 001 X -
SDB3-ITEM-DESCRIPTION 058 030 X -
SDB3-VALUE-1 088 019 S 5 (Leading sign separate)
SDB3-VALUE-2 107 019 S 5 (Leading sign separate)
SDB3-VALUE-3 126 019 S 5 (Leading sign separate)
SDB3-VALUE-4 145 019 S 5 (Leading sign separate)
SDB3-VALUE-5 164 019 S 5 (Leading sign separate)
SDB3-VALUE-6 183 019 S 5 (Leading sign separate)
SDB3-VALUE-7 202 019 S 5 (Leading sign separate)
SDB3-VALUE-8 221 019 S 5 (Leading sign separate)
SDB3-VALUE-9 240 019 S 5 (Leading sign separate)
SDB3-VALUE-10 259 019 S 5 (Leading sign separate)
SDB3-VALUE-11 278 019 S 5 (Leading sign separate)
SDB3-VALUE-12 297 019 S 5 (Leading sign separate)
SDB3-VALUE-13 316 019 S 5 (Leading sign separate)
SDB3-VALUE-14 335 019 S 5 (Leading sign separate)
SDB3-VALUE-15 354 019 S 5 (Leading sign separate)
SDB3-VALUE-16 373 019 S 5 (Leading sign separate)
SDB3-VALUE-17 392 019 S 5 (Leading sign separate)
SDB3-VALUE-18 411 019 S 5 (Leading sign separate)
SDB3-VALUE-19 430 019 S 5 (Leading sign separate)
SDB3-VALUE-20 449 019 S 5 (Leading sign separate)
SDB3-TRANS-CODE 468 005 X -
SDB3-DATE-DELIVERED 473 008 N 0
SDB3-DATE-INVOICED 481 008 N 0
SDB3-PERIOD-ORDERED 489 007 N 0
SDB3-PERIOD-INVOICED 496 007 N 0
SDB3-UNIT-SALE 503 005 X -
FILLER 508 005 X -
SDB3-INVOICE-NO 513 010 X -
SDB3-ACK-PRINT 523 001 X -
SDB3-MISC-PRINT 524 001 X -
SDB3-ALLOCATION-REF 525 019 X -
SDB3-RECPT-REF 544 015 X -
SDB3-LINE-ANAL-IND 559 001 X -
SDB3-ACCOUNT-CODE 560 015 X -
SDB3-ASSET-CODE 575 010 X -
SDB3-ASSET-SUB-CODE 585 005 X -
SDB3-ASSET-IND 590 001 X -
SDB3-ID-ENTERED 591 003 X -
SDB3-ID-INVOICED 594 003 X -
SDB3-LINKED-TEXT 597 001 X -
SDB3-ANALYSIS-CODE-0 598 015 X -
SDB3-ANALYSIS-CODE-1 613 015 X -
SDB3-ANALYSIS-CODE-2 628 015 X -
SDB3-ANALYSIS-CODE-3 643 015 X -
SDB3-ANALYSIS-CODE-4 658 015 X -
SDB3-ANALYSIS-CODE-5 673 015 X -
SDB3-ANALYSIS-CODE-6 688 015 X -
SDB3-ANALYSIS-CODE-7 703 015 X -
SDB3-ANALYSIS-CODE-8 718 015 X -
SDB3-ANALYSIS-CODE-9 733 015 X -
SDB3-ASSEMBLY-IND 748 001 X -
SDB3-ASSEMBLY-DESC-IND 749 001 X -

SunSystems 4 – Technical Reference Manual Page 403 of 455


The Sales Order Detail Backup Record – (continued)
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SDB3-ASSEMBLY-LEVEL-IND 750 001 X -
SDB3-PRICE-BOOK 751 005 X -
SDB3-SALES-QTY-VALUE 756 002 N 0
SDB3-STOCK-QTY-VALUE 758 002 N 0
SDB3-TOTAL-VALUE 760 002 N 0
SDB3-DISPLAY-VALUE-1 762 002 N 0
SDB3-DISPLAY-VALUE-2 764 002 N 0
SDB3-DISPLAY-VALUE-3 766 002 N 0
SDB3-MISC-DOC-PRINT(1) 768 001 X -
SDB3-MISC-DOC-PRINT(2) 769 001 X -
SDB3-MISC-DOC-PRINT(3) 770 001 X -
SDB3-MISC-DOC-PRINT(4) 771 001 X -
SDB3-MISC-DOC-PRINT(5) 772 001 X -
SDB3-D-NOTE-NO 773 010 X -
SDB3-AUDIT-DATE 783 008 N 0
FILLER 791 007 X -

The Sales Order Detail Extra Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
ODXB-TRANS-TYPE 001 001 X -
FILLER 002 005 X -
ODXB-TRANS-PREF 007 004 X -
ODXB-TRANS-SUFF 011 006 X -
ODXB-TRANS-LINE-NUMBER 017 003 N 0
FILLER 020 005 X -
FILLER 025 033 X -
ODXB-ORIG-QTY 055 019 S 5
ODXB-AMB-TEMP 074 019 S 5
ODXB-AMB-VOLUME 093 019 S 5
ODXB-AMB-WEIGHT 112 019 S 5
ODXB-AMB-DENSITY 131 019 S 5
ODXB-AMB-PROD-DENS 150 019 S 5
ODXB-AMB-PROD-TEMP 169 019 S 5
ODXB-AMB-HCF 188 001 N 0
ODXB-AMB-DATE 189 008 N 0
FILLER 197 631 - -

SunSystems 4 – Technical Reference Manual Page 404 of 455


The Movement File
Description
The Movement Backup file is called [Link]. Each record on the data file has a
corresponding record on the backup file.
Summary of Record Types
the Control record
the Movement record
the Summary record
See Appendix B, subsection The Movement File, for more details about the existence of the
different types of record.
Movement Backup File Record Descriptions
See Appendix B, subsection Movement File Record Descriptions, for descriptions of the individual
fields on the records.

The Control Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
MCB3-REC-TYPE 001 001 X -
MCB3-CONTROL 002 019 X -
MCB3-KEY-ID 021 001 X -
FILLER 022 032 X -
FILLER 054 003 X -
MCB3-HIGHEST-BATCH 057 005 N 0
MCB3-HIGHEST-USAGE 062 009 N 0
MCB3-LANGUAGE 071 003 X -
FILLER 074 342 X -

The Movement Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
MMB3-REC-TYPE 001 001 X -
MMB3-MVT-REF 002 015 X -
MMB3-MVT-LINE-NO 017 004 N 0
MMB3-KEY-ID 021 001 X -
MMB3-LOCATION 022 005 X -
MMB3-ITEM-CODE 027 015 X -
MMB3-MVT-DATE 042 008 N 0
MMB3-SEQUENCE 050 004 N 0
MMB3-STATUS-1 054 001 N 0
MMB3-STATUS-2 055 001 N 0
MMB3-RI-IND 056 001 X -
MMB3-BATCH-NO 057 005 N 0
MMB3-BATCH-LINE-NO 062 005 N 0
MMB3-RECPT-REF 067 015 X -
MMB3-MVT-QTY 082 019 S 5 (Leading sign separate)
MMB3-VALUE-1 101 019 S 5 (Leading sign separate)
MMB3-VALUE-2 120 019 S 5 (Leading sign separate)
MMB3-VALUE-3 139 019 S 5 (Leading sign separate)
FILLER 158 001 X -
MMB3-PERIOD-POSTED 159 007 N 0
MMB3-UNIT-STOCK 166 005 X -
MMB3-MVT-CODE 171 005 X -
MMB3-UPDATE-PHYSICAL 176 001 X -
MMB3-UPDATE-ON-ORDER 177 001 X -

SunSystems 4 – Technical Reference Manual Page 405 of 455


The Movement Backup Record – (continued)
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
MMB3-ALLOCATION-REF 178 020 X -
MMB3-AUDIT-DATE 198 008 N 0
MMB3-SERIAL-NO-INDEX 206 001 X -
MMB3-LINKED-TEXT 207 001 X -
MMB3-ID-ENTERED 208 003 X -
MMB3-ID-ALLOCATED 211 003 X -
MMB3-ACCOUNT-CODE 214 015 X -
MMB3-ASSET-CODE 229 010 X -
MMB3-ASSET-SUB-CODE 239 005 X -
MMB3-ANALYSIS-CODE-0 244 015 X -
MMB3-ANALYSIS-CODE-1 259 015 X -
MMB3-ANALYSIS-CODE-2 274 015 X -
MMB3-ANALYSIS-CODE-3 289 015 X -
MMB3-ANALYSIS-CODE-4 304 015 X -
MMB3-ANALYSIS-CODE-5 319 015 X -
MMB3-ANALYSIS-CODE-6 334 015 X -
MMB3-ANALYSIS-CODE-7 349 015 X -
MMB3-ANALYSIS-CODE-8 364 015 X -
MMB3-ANALYSIS-CODE-9 379 015 X -
MMB3-PO-LINE-NO-A 394 003 N -
MMB3-PO-LINE-NO-B 397 001 X -
MMB3-PO-VALUE 398 018 N -

SunSystems 4 – Technical Reference Manual Page 406 of 455


The Stock Take Backup File
Description
The Stock Take Backup file is called [Link]. Each record on the data file has a
corresponding record on the Backup file.
Summary of Record Types
the Control record
the Header record
the Detail record.
See Appendix B, subsection The Stock Take File, for more details about the existence of these
records.
Stock Take Backup File Record Descriptions
See Appendix B, subsection Stock Take File Record Descriptions, for descriptions of the
individual fields on the records.

The Control Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
TC-BK-REC-TYPE 001 001 X -
FILLER 002 055 X -
TC-BK-KEY-ID 057 001 X -
FILLER 058 020 X -
TC-BK-VERSION-NO 078 003 X -
TC-BK-NEXT-STOCK-TAKE-NO 081 005 N 0
FILLER 086 501 X -

The Stock Take Header Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
TH-BK-REC-TYPE 001 001 X -
TH-BK-STOCK-TAKE-NO 002 005 N 0
FILLER 007 050 X -
TH-BK-KEY-ID 057 001 X -
FILLER 058 020 X -
TH-BK-PERIOD-EXTRACTED 078 007 N 0
TH-BK-STOCK-TAKE-CODE 085 005 X -
TH-BK-STOCK-TAKE-SEQ 090 004 X -
TH-BK-OPERATOR-ID 094 003 X -
TH-BK-STOCK-TAKE-DATE 097 008 N 0
TH-BK-ANALYSIS-CATEGORY 105 002 X -
FILLER 107 480 X -

SunSystems 4 – Technical Reference Manual Page 407 of 455


The Stock Take Detail Backup Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
TD-BK-REC-TYPE 001 001 X -
TD-BK-STOCK-TAKE-NO 002 005 N 0
TD-BK-COMPOSITE-KEY 007 050 X -
TD-BK-KEY-ID 057 001 X -
TD-BK-ITEM-CODE 058 015 X -
TD-BK-LOCATION-CODE 073 005 X -
TD-BK-ANALYSIS-CODE 078 015 X -
TD-BK-STOCK-TAKE-CODE 093 005 X -
TD-BK-STOCK-TAKE-LINE-NO 098 004 N 0
TD-BK-RECEIPT-REFERENCE 102 015 X -
TD-BK-OPERATOR-ENTER 117 003 X -
TD-BK-OPERATOR-APPROVED 120 003 X -
TD-BK-OPERATOR-POSTED 123 003 X -
TD-BK-PERIOD-POSTED 126 007 N 0
TD-BK-ORIGINAL-QTY 133 019 S 5 (Leading sign separate)
TD-BK-ORIGINAL-VALUE-1 152 019 S 5 (Leading sign separate)
TD-BK-ORIGINAL-VALUE-2 171 019 S 5 (Leading sign separate)
TD-BK-ORIGINAL-VALUE-3 190 019 S 5 (Leading sign separate)
TD-BK-VARIANCE-QTY 209 019 S 5 (Leading sign separate)
TD-BK-VARIANCE-VALUE-1 228 019 S 5 (Leading sign separate)
TD-BK-VARIANCE-VALUE-2 247 019 S 5 (Leading sign separate)
TD-BK-VARIANCE-VALUE-3 266 019 S 5 (Leading sign separate)
TD-BK-REPORT-COST 285 003 X -
TD-BK-UNIT-OF-STOCK 288 005 X -
TD-BK-MOVEMENT-CODE 293 005 X -
TD-BK-UPDATE-PHYSICAL 298 001 X -
TD-BK-UPDATE-ON-ORDER 299 001 X -
TD-BK-AUDIT-DATE 300 008 N 0
TD-BK-ACCOUNT-CODE 308 015 X -
TD-BK-ASSET-CODE 323 010 X -
TD-BK-ASSET-SUB-CODE 333 005 X -
TD-BK-STATUS 338 001 X -
TD-BK-CLEAR-ON-ORDER 339 001 X -
TD-BK-CNV-RATE-2 340 018 N 9
TD-BK-CNV-RATE-OP2 358 001 X -
TD-BK-CNV-OTHER-DP2 359 001 X -
TD-BK-CNV-RATE-3 360 018 N 9
TD-BK-CNV-RATE-OP3 378 001 X -
TD-BK-CNV-OTHER-DP3 379 001 X -
TD-BK-COST-1 380 019 S 5 (Leading sign separate)
TD-BK-COST-2 399 019 S 5 (Leading sign separate)
TD-BK-COST-3 418 019 S 5 (Leading sign separate)
TD-BK-MVT-ANALYSIS-CODE-0 437 015 X -
TD-BK-MVT-ANALYSIS-CODE-1 452 015 X -
TD-BK-MVT-ANALYSIS-CODE-2 467 015 X -
TD-BK-MVT-ANALYSIS-CODE-3 482 015 X -
TD-BK-MVT-ANALYSIS-CODE-4 497 015 X -
TD-BK-MVT-ANALYSIS-CODE-5 512 015 X -
TD-BK-MVT-ANALYSIS-CODE-6 527 015 X -
TD-BK-MVT-ANALYSIS-CODE-7 542 015 X -
TD-BK-MVT-ANALYSIS-CODE-8 557 015 X -
TD-BK-MVT-ANALYSIS-CODE-9 572 015 X -
TD-BK-BIN-NAME 587 015 X -

SunSystems 4 – Technical Reference Manual Page 408 of 455


The Purchase Order Backup File
Description
The Purchase Order Backup file is called [Link]. It contains the same data as the
Purchase Order file, in backup format.
Summary of Record Types
There are the following record types on the Purchase Order Backup file:
the Control record
the Purchase Order Header record
the Goods Received Note Header record
the Purchase Invoice Header record
the Detail record
See Appendix B, subsection The Purchase Order File, for further information about the existence
of these records.
Purchase Order Backup File Record Descriptions
See Appendix B, subsection Purchase Order File Record Descriptions, for descriptions of the
individual fields on the records.

The Control Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SPMFBK-C-REC-TYPE 001 001 X -
SPMFBK-C-CONTROL 002 019 X -
SPMFBK-C-KEY-1-ID 021 001 X -
FILLER 022 032 X -
SPMFBK-C-KEY-2-ID 054 001 X -
FILLER 055 015 X -
SPMFBK-C-VERSION 070 003 N 0
SPMFBK-C-LAST-GRN-REF 073 015 N 0
SPMFBK-C-LAST-INV-REF 088 015 N 0
SPMFBK-C-LANGUAGE 103 003 X -
FILLER 106 919 X -

SunSystems 4 – Technical Reference Manual Page 409 of 455


The Purchase Order Header Backup Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SPMFBK-J-REC-TYPE 001 001 X -
FILLER 002 005 X -
SPMFBK-J-REF-PREFIX 007 004 X -
SPMFBK-J-REF-SUFFIX 011 006 N 0
FILLER 017 004 X -
SPMFBK-J-KEY-1-ID 021 001 X -
SPMFBK-J-SUPP-ADDRESS 022 010 X -
SPMFBK-J-ORDER-DATE 032 008 N 0
FILLER 040 014 X -
SPMFBK-J-KEY-2-ID 054 001 X -
SPMFBK-J-SECOND-REF 055 015 X -
SPMFBK-J-STATUS-1 070 001 N 0
SPMFBK-J-STATUS-2 071 001 N 0
SPMFBK-J-CD 072 001 X -
SPMFBK-J-TRANS-TYPE 073 005 X -
SPMFBK-J-DEL-ADDRESS 078 010 X -
SPMFBK-J-COMMENTS 088 025 X -
SPMFBK-J-ACK-REF 113 015 X -
SPMFBK-J-ACK-DATE 128 008 N 0
SPMFBK-J-DEL-DATE 136 008 N 0
SPMFBK-J-DEL-ADVISED 144 001 X -
SPMFBK-J-ORDER-VALUE 145 019 S 5 (Leading sign separate)
SPMFBK-J-ORDER-QUANTITY 164 019 S 5 (Leading sign separate)
SPMFBK-J-ORDER-PERIOD 183 007 N 0
SPMFBK-J-LINKED-TEXT 190 001 X -
SPMFBK-J-ANAL-CODE-0 191 015 X -
SPMFBK-J-ANAL-CODE-1 206 015 X -
SPMFBK-J-ANAL-CODE-2 221 015 X -
SPMFBK-J-ANAL-CODE-3 236 015 X -
SPMFBK-J-ANAL-CODE-4 251 015 X -
SPMFBK-J-ANAL-CODE-5 266 015 X -
SPMFBK-J-ANAL-CODE-6 281 015 X -
SPMFBK-J-ANAL-CODE-7 296 015 X -
SPMFBK-J-ANAL-CODE-8 311 015 X -
SPMFBK-J-ANAL-CODE-9 326 015 X -
SPMFBK-J-DOC-ISSUE-DATE 341 008 N 0
SPMFBK-J-GRN-IND 349 001 X -
SPMFBK-J-ID-RELEASED 350 003 X -
SPMFBK-J-POST-UNAPP-GRN 353 001 X -
FILLER 354 012 X -
SPMFBK-J-VOID-STATUS 366 001 X -
SPMFBK-J-EXTRA-SUPP-CODE1 367 010 X -
SPMFBK-J-EXTRA-SUPP-CODE2 377 010 X -
SPMFBK-J-EXTRA-TEXT1 387 030 X -
SPMFBK-J-EXTRA-TEXT2 417 030 X -
SPMFBK-J-EXTRA-TEXT3 447 015 X -
SPMFBK-J-EXTRA-TEXT4 462 015 X -
SPMFBK-J-EXTRA-TEXT5 477 015 X -
SPMFBK-J-EXTRA-TEXT6 492 010 X -
SPMFBK-J-EXTRA-TEXT7 502 010 X -
SPMFBK-J-EXTRA-VALUE1 512 019 S 5
SPMFBK-J-EXTRA-VALUE2 531 019 S 5
SPMFBK-J-EXTRA-VALUE3 550 019 S 5
FILLER 569 456 - -

SunSystems 4 – Technical Reference Manual Page 410 of 455


The Goods Received Note Header Backup Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SPMFBK-K-REC-TYPE 001 001 X -
FILLER 002 005 X -
SPMFBK-K-REF-PREFIX 007 004 X -
SPMFBK-K-REF-SUFFIX 011 006 N 0
FILLER 017 004 X -
SPMFBK-K-KEY-1-ID 021 001 X -
SPMFBK-K-SUPP-ADDRESS 022 010 X -
SPMFBK-K-GRN-DATE 032 008 N 0
FILLER 040 014 X -
SPMFBK-K-KEY-2-ID 054 001 X -
SPMFBK-K-SUPP-GRN-REF 055 015 X -
SPMFBK-K-STATUS-1 070 001 N 0
SPMFBK-K-STATUS-2 071 001 N 0
SPMFBK-K-LINKED-TEXT 072 001 X -
SPMFBK-K-CD 073 001 X -
SPMFBK-K-DEL-ADDRESS 074 010 X -
FILLER 084 005 X -
SPMFBK-K-ORDER-REFERENCE 089 010 X -
SPMFBK-K-MATCHED-TOT-QTY 099 019 S 5 (Leading sign separate)
SPMFBK-K-GRN-TOT-QTY 118 019 S 5 (Leading sign separate)
SPMFBK-K-COMMENTS 137 025 X -
SPMFBK-K-ORDER-TRANS-TYPE 162 005 X -
SPMFBK-K-ID-RELEASED 167 003 X -
SPMFBK-K-PAY-DATE 170 008 N O
SPMFBK-K-ORDER-DATE 178 008 N 0
FILLER 186 177 - -
SPMFBK-K-EXTRA-SUPP-CODE1 363 010 X -
SPMFBK-K-EXTRA-SUPP-CODE2 373 010 X -
SPMFBK-K-EXTRA-TEXT1 383 030 X -
SPMFBK-K-EXTRA-TEXT2 413 030 X -
SPMFBK-K-EXTRA-TEXT3 443 015 X -
SPMFBK-K-EXTRA-TEXT4 458 015 X -
SPMFBK-K-EXTRA-TEXT5 473 015 X -
SPMFBK-K-EXTRA-TEXT6 488 010 X -
SPMFBK-K-EXTRA-TEXT7 498 010 X -
SPMFBK-K-EXTRA-VALUE1 508 019 S 5
SPMFBK-K-EXTRA-VALUE2 527 019 S 5
SPMFBK-K-EXTRA-VALUE3 546 019 S 5
FILLER 565 210 X -
FILLER 775 459 X -

SunSystems 4 – Technical Reference Manual Page 411 of 455


The Purchase Invoice Header Backup Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SPMFBK-L-REC-TYPE 001 001 X -
FILLER 002 005 X -
SPMFBK-L-REF-PREFIX 007 004 X -
SPMFBK-L-REF-SUFFIX 011 006 N 0
FILLER 017 004 X -
SPMFBK-L-KEY-1-ID 021 001 X -
SPMFBK-L-SUPP-ADDRESS 022 010 X -
SPMFBK-L-INV-DATE 032 008 N 0
FILLER 040 014 X -
SPMFBK-L-KEY-2-ID 054 001 X -
SPMFBK-L-SUPP-INV-REF 055 015 X -
SPMFBK-L-STATUS-1 070 001 N 0
SPMFBK-L-STATUS-2 071 001 N 0
SPMFBK-L-CD 072 001 X -
SPMFBK-L-TRANS-TYPE 073 005 X -
FILLER 078 010 X -
SPMFBK-L-COMMENTS 088 025 X -
SPMFBK-L-PAY-DATE 113 008 N 0
SPMFBK-L-MATCHED-TOT-QTY 121 019 S 5 (Leading sign separate)
SPMFBK-L-MATCHED-TOT-VAL 140 019 S 5 (Leading sign separate)
SPMFBK-L-INV-PERIOD 159 007 N 0
SPMFBK-L-INV-TOT-QTY 166 019 S 5 (Leading sign separate)
SPMFBK-L-INV-TOT-VAL 185 019 S 5 (Leading sign separate)
FILLER 204 005 X -
SPMFBK-L-ORDER-REFERENCE 209 010 X -
SPMFBK-L-LINKED-TEXT 219 001 X -
SPMFBK-L-ANAL-CODE-0 220 015 X -
SPMFBK-L-ANAL-CODE-1 235 015 X -
SPMFBK-L-ANAL-CODE-2 250 015 X -
SPMFBK-L-ANAL-CODE-3 265 015 X -
SPMFBK-L-ANAL-CODE-4 280 015 X -
SPMFBK-L-ANAL-CODE-5 295 015 X -
SPMFBK-L-ANAL-CODE-6 310 015 X -
SPMFBK-L-ANAL-CODE-7 325 015 X -
SPMFBK-L-ANAL-CODE-8 340 015 X -
SPMFBK-L-ANAL-CODE-9 355 015 X -
SPMFBK-L-ID-RELEASED 370 003 X -
SPMFBK-L-ORDER-DATE 373 008 N 0
SPMFBK-L-VOID-STATUS 381 001 X -
SPMFBK-L-EXTRA-SUPP-CODE1 382 010 X -
SPMFBK-L-EXTRA-SUPP-CODE2 392 010 X -
SPMFBK-L-EXTRA-TEXT1 402 030 X -
SPMFBK-L-EXTRA-TEXT2 432 030 X -
SPMFBK-L-EXTRA-TEXT3 462 015 X -
SPMFBK-L-EXTRA-TEXT4 477 015 X -
SPMFBK-L-EXTRA-TEXT5 492 015 X -
SPMFBK-L-EXTRA-TEXT6 507 010 X -
SPMFBK-L-EXTRA-TEXT7 517 010 X -
SPMFBK-L-EXTRA-VALUE1 527 019 S 5
SPMFBK-L-EXTRA-VALUE2 546 019 S 5
SPMFBK-L-EXTRA-VALUE3 565 019 S 5
SPMFBK-L-MATCHED-TOT-VAL-2 584 019 S 5
SPMFBK-L-MATCHED-TOT-VAL-3 603 019 S 5
SPMFBK-L-MATCHED-TOT-VAL-4 622 019 S 5
SPMFBK-L-INV-TOT-VAL-2 641 019 S 5
SPMFBK-L-INV-TOT-VAL-3 660 019 S 5
SPMFBK-L-INV-TOT-VAL-4 679 019 S 5
FILLER 698 327 - -

SunSystems 4 – Technical Reference Manual Page 412 of 455


The Purchase Order Detail Backup Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SPMFBK-S-REC-TYPE 001 001 X -
FILLER 002 005 X -
SPMFBK-S-REF-PREFIX 007 004 X -
SPMFBK-S-REF-SUFFIX 011 006 N 0
SPMFBK-S-LINE-NO-A 017 003 N 0
SPMFBK-S-LINE-NO-B 020 001 X -
SPMFBK-S-KEY-1-ID 021 001 X -
SPMFBK-S-LOCATION 022 005 X -
SPMFBK-S-ITEM-CODE 027 015 X -
SPMFBK-S-DEL-DATE 042 008 N 0
SPMFBK-S-SEQUENCE 050 004 N 0
SPMFBK-S-KEY-2-ID 054 001 X -
FILLER 055 005 X -
SPMFBK-S-HIGHEST-REFERENCE 060 010 X -
SPMFBK-S-ORDER-STATUS-1 070 001 N 0
SPMFBK-S-ORDER-STATUS-2 071 001 N 0
SPMFBK-S-GRN-STATUS-1 072 001 N 0
SPMFBK-S-GRN-STATUS-2 073 001 N 0
SPMFBK-S-INVOICE-STATUS-1 074 001 N 0
SPMFBK-S-INVOICE-STATUS-2 075 001 N 0
SPMFBK-S-CD 076 001 X -
SPMFBK-S-LINKED-TEXT 077 001 X -
SPMFBK-S-ID-ORDER 078 003 X -
SPMFBK-S-ID-GRN 081 003 X -
SPMFBK-S-ID-INVOICED 084 003 X -
SPMFBK-S-SUPP-ITEM-DESC 087 030 X -
SPMFBK-S-SUPP-ITEM-CODE 117 015 X -
SPMFBK-S-PURCH-QTY 132 019 S 5 (Leading sign separate)
SPMFBK-S-PURCH-UNIT 151 005 X -
SPMFBK-S-STOCK-QTY 156 019 S 5 (Leading sign separate)
SPMFBK-S-BASE-COST 175 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-1 194 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-2 213 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-3 232 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-4 251 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-5 270 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-6 289 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-7 308 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-8 327 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-9 346 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-10 365 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-11 384 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-12 403 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-13 422 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-14 441 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-15 460 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-16 479 019 S 5 (Leading sign separate)
SPMFBK-S-CALC-VALUE-17 498 019 S 5 (Leading sign separate)
FILLER 517 020 X -
SPMFBK-S-GRN-REFERENCE 537 010 X -
SPMFBK-S-GRN-DATE 547 008 N 0
SPMFBK-S-DEL-ADVISED 555 001 X -
SPMFBK-S-INV-DATE 556 008 N 0
SPMFBK-S-INV-PERIOD 564 007 N 0
SPMFBK-S-INV-APPROV-DATE 571 008 N 0
SPMFBK-S-TRANS-TYPE 579 005 X -
SPMFBK-S-STOCK-UPDATED 584 001 X -
SPMFBK-S-REASON-CODE 585 001 X -
SPMFBK-S-LINE-VALUE 586 002 N 0
SPMFBK-S-MATCH-VALUE 588 002 N 0
SPMFBK-S-COST-VALUE 590 002 N 0
SPMFBK-S-ACCOUNT-CODE 592 015 X -

SunSystems 4 – Technical Reference Manual Page 413 of 455


The Purchase Order Detail Backup Record – (continued)
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SPMFBK-S-ASSET-CODE 607 010 X -
SPMFBK-S-ASSET-SUB-CODE 617 005 X -
SPMFBK-S-ASSET-IND 622 001 X -
SPMFBK-S-RECEIPT-REF 623 015 X -
SPMFBK-S-AUDIT-DATE 638 008 N 0
SPMFBK-S-ANAL-CODE-0 646 015 X -
SPMFBK-S-ANAL-CODE-1 661 015 X -
SPMFBK-S-ANAL-CODE-2 676 015 X -
SPMFBK-S-ANAL-CODE-3 691 015 X -
SPMFBK-S-ANAL-CODE-4 706 015 X -
SPMFBK-S-ANAL-CODE-5 721 015 X -
SPMFBK-S-ANAL-CODE-6 736 015 X -
SPMFBK-S-ANAL-CODE-7 751 015 X -
SPMFBK-S-ANAL-CODE-8 766 015 X -
SPMFBK-S-ANAL-CODE-9 781 015 X -
SPMFBK-S-UNAPP-PERIOD-POSTED 796 007 N 0
SPMFBK-S-ORDER-DATE 803 008 N 0
SPMFBK-S-STOCK-PERIOD-POSTED 811 007 N 0
SPMFBK-S-PERIOD-ORDERED 818 007 N 0
SPMFBK-S-AMEND-DATE 825 008 N 0
SPMFBK-S-ORIG-LINE-NO-A 833 003 N 0
SPMFBK-S-ORIG-LINE-NO-B 836 001 X -
SPMFBK-S-MVT-VALUE 837 018 S 5
SPMFBK-S-BCHECK-VALUE 855 002 N 0
SPMFBK-S-EXPEND-CHECK-VALUE 857 002 N 0
SPMFBK-S-MISC-DOC-PRINT(1) 859 001 X -
SPMFBK-S-MISC-DOC-PRINT(2) 860 001 X -
SPMFBK-S-MISC-DOC-PRINT(3) 861 001 X -
SPMFBK-S-MISC-DOC-PRINT(4) 862 001 X -
SPMFBK-S-MISC-DOC-PRINT(5) 863 001 X -
SPMFBK-S-ACV-INVOICE1 864 010 X -
SPMFBK-S-ACV-INVOICE2 874 010 X -
SPMFBK-S-ACV-INVOICE3 884 010 X -
SPMFBK-S-ACV-INVOICE4 894 010 X -
FILLER 904 121 X -

SunSystems 4 – Technical Reference Manual Page 414 of 455


The Sales History Backup File
Description
The Sales History Backup file is called [Link]. It contains the same data as the Sales
History file, only in backup format.
Summary of Record Types
There is the following record type on the Sales History Backup file:
the Usage record
See Appendix B, subsection The Sales History File, for further information about the existence of
the records. Note that there is no Control record - except for the standard Version Control record
found on all Backup files.
Sales History Backup File Record Descriptions
See Appendix B, subsection Sales History File Record Descriptions, for descriptions of the
individual fields on the records.

Sales History Usage Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
BDB3-TRANS-TYPE 001 001 X -
BDB3-PERIOD 002 007 N 0
BDB3-LOCATION 009 005 X -
BDB3-ITEM-CODE 014 015 X -
BDB3-TRANS-DATE 029 008 N 0
BDB3-TRANS-CD 037 001 X -
BDB3-VALUE-1 038 019 S 5 (Leading sign separate)
BDB3-VALUE-2 057 019 S 5 (Leading sign separate)
BDB3-VALUE-3 076 019 S 5 (Leading sign separate)
BDB3-VALUE-4 095 019 S 5 (Leading sign separate)
BDB3-VALUE-5 114 019 S 5 (Leading sign separate)
BDB3-VALUE-6 133 019 S 5 (Leading sign separate)
BDB3-VALUE-7 152 019 S 5 (Leading sign separate)
BDB3-VALUE-8 171 019 S 5 (Leading sign separate)
BDB3-VALUE-9 190 019 S 5 (Leading sign separate)
BDB3-VALUE-10 209 019 S 5 (Leading sign separate)
BDB3-VALUE-11 228 019 S 5 (Leading sign separate)
BDB3-VALUE-12 247 019 S 5 (Leading sign separate)
BDB3-VALUE-13 266 019 S 5 (Leading sign separate)
BDB3-VALUE-14 285 019 S 5 (Leading sign separate)
BDB3-VALUE-15 304 019 S 5 (Leading sign separate)
BDB3-VALUE-16 323 019 S 5 (Leading sign separate)
BDB3-VALUE-17 342 019 S 5 (Leading sign separate)
BDB3-VALUE-18 361 019 S 5 (Leading sign separate)
BDB3-VALUE-19 380 019 S 5 (Leading sign separate)
BDB3-VALUE-20 399 019 S 5 (Leading sign separate)
BDB3-TRANS-CODE 418 005 X -
BDB3-CUSTOMER-CODE 423 010 X -
BDB3-ANALYSIS-CODE-0 433 015 X -
BDB3-ANALYSIS-CODE-1 448 015 X -
BDB3-ANALYSIS-CODE-2 463 015 X -
BDB3-ANALYSIS-CODE-3 478 015 X -
BDB3-ANALYSIS-CODE-4 493 015 X -
BDB3-ANALYSIS-CODE-5 508 015 X -
BDB3-ANALYSIS-CODE-6 523 015 X -
BDB3-ANALYSIS-CODE-7 538 015 X -
BDB3-ANALYSIS-CODE-8 553 015 X -
BDB3-ANALYSIS-CODE-9 568 015 X -

SunSystems 4 – Technical Reference Manual Page 415 of 455


The Purchase History Backup File
Description
The Purchase History Backup file is called [Link]. It contains the same data as the
Purchase History file, only in backup format.
Summary of Record Types
There is the following record type on the Purchase History Backup file:
the Balance record
See Appendix B, subsection The Purchase History File, for further information about the
existence of these records.
Purchase History Backup File Record Descriptions
See Appendix B, subsection Purchase History File Record Descriptions, for descriptions of the
individual fields on the records.

The Balance Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SPHFBK-S-REC-TYPE 001 001 X -
SPHFBK-S-INV-PERIOD 002 007 N 0
SPHFBK-S-LOCATION 009 005 X -
SPHFBK-S-ITEM-CODE 014 015 X -
SPHFBK-S-DEL-DATE 029 008 N 0
SPHFBK-S-CD 037 001 X -
SPHFBK-S-PURCH-QTY 038 019 S 5 (leading sign separate)
SPHFBK-S-STOCK-QTY 057 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-1 076 019 S 5 (leading sign separate)
SPHFBK -S-CALC-VALUE-2 095 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-3 114 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-4 133 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-5 152 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-6 171 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-7 190 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-8 209 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-9 228 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-10 247 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-11 266 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-12 285 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-13 304 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-14 323 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-15 342 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-16 361 019 S 5 (leading sign separate)
SPHFBK-S-CALC-VALUE-17 380 019 S 5 (leading sign separate)
SPHFBK-S-TRANS-TYPE 399 005 X -
SPHFBK-S-SUPPLIER-CODE 404 010 X -
SPHFBK-S-REASON-CODE 414 001 X -
SPHFBK-S-ANAL-CODE-0 415 015 X -
SPHFBK-S-ANAL-CODE-1 430 015 X -
SPHFBK-S-ANAL-CODE-2 445 015 X -
SPHFBK-S-ANAL-CODE-3 460 015 X -
SPHFBK-S-ANAL-CODE-4 475 015 X -
SPHFBK-S-ANAL-CODE-5 490 015 X -
SPHFBK-S-ANAL-CODE-6 505 015 X -
SPHFBK-S-ANAL-CODE-7 520 015 X -
SPHFBK-S-ANAL-CODE-8 535 015 X -
SPHFBK-S-ANAL-CODE-9 550 015 X -

SunSystems 4 – Technical Reference Manual Page 416 of 455


The Journal Hold Backup File
Description
The Journal Hold Backup file is called [Link]. It contains the same data as the Journal
Hold file, only in backup format.
Summary of Record Types
the Standard record
the Journal Control record
the Analysis record
the Transaction Control record
the Transaction Line record
the Split record
the allocation record
the Journal Hold Control record
the Period record
the Journal Hold Version record
the Journal Hold Journal record.
See Appendix B, subsection, The SunAccount Journal Hold File for further information about the
existence of these records.
Journal Hold File Record Descriptions
See Appendix B, The SunAccount Journal Hold File for descriptions of individual fields on the
records.

The Standard Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-B-WORK-REC-TYPE 001 001 X -
SAJE-B-WORK-REFERENCE 002 015 X -
SAJE-B-WORK-LINE-NO 017 003 N 0
SAJE-B-WORK-LINE-NO-SUFF 020 002 N 0
SAJE-B-WORK-REC-TYPE-2 022 001 X -
SAJE-B-WORK-REF-ID 023 005 N 0
SAJE-B-WORK-LINE-NO-2 028 003 N 0
SAJE-B-WORK-LINE-NO-2-SUFF 031 002 N 0
SAJH-B-WORK-TYPE 033 001 X -
SAJH-B-WORK-AB 034 001 X -
SAJH-B-WORK-JOURNAL-REF 035 005 N 0
SAJH-B-WORK-REC-TYPE 040 001 X -
SAJH-B-WORK-JOURNAL-SEQ 041 007 N 0
SAJE-B-WORK-DATA 048 465 X -

SunSystems 4 – Technical Reference Manual Page 417 of 455


The Journal Control Backup Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-B-WORK-C-REC-TYPE 001 001 X -
SAJE-B-WORK-C-REFERENCE 002 015 X -
SAJE-B-WORK-C-LINE-NO 017 003 N 0
SAJE-B-WORK-C-LINE-NO-SUFF 020 002 N 0
SAJE-B-WORK-C-REC-TYPE-2 022 001 X -
SAJE-B-WORK-C-REF-ID 023 005 N 0
SAJE-B-WORK-C-LINE-NO-2 028 003 N 0
SAJE-B-WORK-C-LINE-NO-2-SUFF 031 002 N 0
SAJH-B-WORK-C-TYPE 033 001 X -
SAJH-B-WORK-C-AB 034 001 X -
SAJH-B-WORK-C-JOURNAL-REF 035 005 N 0
SAJH-B-WORK-C-REC-TYPE 040 001 X -
SAJH-B-WORK-C-JOURNAL-SEQ 041 007 N 0
SAJE-B-WORK-HIGHEST-REF-ID 048 005 N 0
SAJE-B-WORK-CURRENT-KEY 053 011 X -
SAJE-B-WORK-CURRENT-FIELD 064 003 N 0
SAJE-B-WORK-HIGHEST-PERIOD 067 007 N 0
SAJE-B-WORK-HIGHEST-PRESET 074 003 N 0
SAJE-B-WORK-CURRENT-OVERLAY 077 001 X -
SAJE-B-WORK-TOTAL-INDICATOR 078 001 X -
SAJE-B-WORK-JT-INDICATOR 079 001 X -
SAJE-B-WORK-ACTUAL-BUDGET 080 001 X -
SAJE-B-WORK-AJD-JOURNAL-NAME 081 025 X -
SAJE-B-WORK-AJD-PRESET-CODE 106 005 X -
SAJE-B-WORK-AJD-ANAL-CAT 111 020 X -
SAJE-B-WORK-AJD-SUPP-AGEING 131 001 X -
SAJE-B-WORK-AJD-DESC-PER-LINE 132 001 X -
SAJE-B-WORK-AJD-FORCE-WITHHOLD 133 001 X -
SAJE-B-WORK-AJD-NEXT-PER-REV 134 001 X -
SAJE-B-WORK-AJD-DUE-DATE-ENTRY 135 001 X -
SAJE-B-WORK-AJD-UNIQUE-REFS 136 001 X -
SAJE-B-WORK-AJD-CREATENOPAUSE 137 001 X -
SAJE-B-WORK-AJD-CONVERSION 138 001 X -
SAJE-B-WORK-AJD-ASSET-ENTRY 139 001 X -
SAJE-B-SUPPRESS-JE 140 001 X -
SAJE-B-SUPPRESS-JI 141 001 X -
SAJE-B-SUPPRESS-AA 142 001 X -
SAJE-B-WORK-AJD-SEQ-CODE 143 005 X -
SAJE-B-WORK-AJD-TRANS-SEQ 148 001 X -
SAJE-B-WORK-AJD-IN-DISC-ACC 149 015 X -
SAJE-B-WORK-AJD-OUT-DISC-ACC 164 015 X -
SAJE-B-WORK-AJD-DISC-TOL-PERC 179 011 N 2
SAJE-B-WORK-AJD-DISC-TOL-VAL 190 012 N 3
SAJE-B-WORK-AJD-AUTO-TAX-IND 202 001 X -
SAJE-B-WORK-AJD-TAX-ACC-INDS 203 006 X -
SAJE-B-WORK-AJD-STP-ACC-INDS 209 006 X -
SAJE-B-WORK-AJD-AUTO-TAX-ACC 215 001 X -
SAJE-B-WORK-ANAL-LOC 216 020 X -
SAJE-B-WORK-JOURNAL-TYPE 236 005 X -
SAJE-B-WORK-JOURNAL-SOURCE 241 005 X -
SAJE-B-WORK-DATABASE-CODE 246 003 X -
SAJE-B-WORK-JOURNAL-NUMBER 249 007 N 0
SAJE-B-WORK-NUMBER-OF-REFS 256 007 N 0
SAJE-B-WORK-AUTO-SEQ 263 001 X -
SAJE-B-WORK-ENTRY-DATE 264 008 N 0
SAJE-B-WORK-ENTRY-PERIOD 272 007 N 0
SAJE-B-WORK-J-BASE-TOTAL-D 279 018 N 3
SAJE-B-WORK-J-BASE-TOTAL-C 297 018 N 3
SAJE-B-WORK-J-OTHER-TOTAL-D 315 018 N 3
SAJE-B-WORK-J-OTHER-TOTAL-C 333 018 N 3
SAJE-B-WORK-J-MEMO-TOTAL-D 351 018 N 3
SAJE-B-WORK-J-MEMO-TOTAL-C 369 018 N 3
SAJE-B-WORK-J-RATIO-TOTAL-B 387 018 N 9
SAJE-B-WORK-J-RATIO-TOTAL-O 405 018 N 9
SAJE-B-WORK-C-SOURCE-FLAG 423 001 X -
SAJE-B-WORK-JOURNAL-NO 424 007 N 0

SunSystems 4 – Technical Reference Manual Page 418 of 455


The Journal Control Backup Record – (continued)
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-B-WORK-NEXT-SEQ-NO 431 005 N 0
SAJE-B-WORK-CURRENT-L-KEY 436 032 X -
SAJE-B-WORK-LAST-TRANS-SEQ 468 001 X -
SAJE-B-WORK-LAST-OVERLAY 469 001 X -
SAJE-B-WORK-NO-OF-ALLOCATIONS 470 005 N 0
SAJE-B-WORK-NON-ROUGH 475 007 N 0
FILLER 482 030 X -
SAJE-B-WORK-LAST-SELECTION 512 001 X -

The Analysis Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-B-WORK-A-REC-TYPE 001 001 X -
SAJE-B-WORK-A-FILLER 002 020 X -
SAJE-B-WORK-A-REC-TYPE-2 022 001 X -
SAJE-B-WORK-A-FILLER-2 023 010 X -
SAJH-B-WORK-ANALYSIS-TYPE 033 001 X -
SAJH-B-WORK-ANALYSIS-AB 034 001 X -
SAJH-B-WORK-ANALYSIS-JRNL-REF 035 005 N 0
SAJH-B-WORK-ANALYSIS-REC-TYPE 040 001 X -
SAJH-B-WORK-ANALYSIS-JRNL-SEQ 041 007 N 0
SAJE-B-WORK-ANAL-CAT-SHORT-NAM 048 050 X -
SAJE-B-WORK-ANAL-CAT-LONG-NAM 098 200 X -
FILLER 298 215 X -

The Transaction Control Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-B-WORK-T-REC-TYPE 001 001 X -
SAJE-B-WORK-T-REFERENCE 002 015 X -
SAJE-B-WORK-T-LINE-NO 017 003 N 0
SAJE-B-WORK-T-LINE-NO-SUFF 020 002 N 0
SAJE-B-WORK-T-REC-TYPE-2 022 001 X -
SAJE-B-WORK-T-REF-ID 023 005 N 0
SAJE-B-WORK-T-LINE-NO-2 028 003 N 0
SAJE-B-WORK-T-LINE-NO-2-SUFF 031 002 N 0
SAJH-B-WORK-TRANS-TYPE 033 001 X -
SAJH-B-WORK-TRANS-AB 034 001 X -
SAJH-B-WORK-TRANS-JOURNAL-REF 035 005 N 0
SAJH-B-WORK-TRANS-REC-TYPE 040 001 X -
SAJH-B-WORK-TRANS-JOURNAL-SEQ 041 007 N 0
SAJE-B-WORK-HIGHEST-LINE-NO 048 003 N 0
SAJE-B-WORK-HIGH-PRESET-USED 051 003 N 0
SAJE-B-WORK-T-BASE-D 054 019 S 3 (Leading sign separate)
SAJE-B-WORK-T-BASE-C 073 019 S 3 (Leading sign separate)
SAJE-B-WORK-T-OTHER-D 092 019 S 3 (Leading sign separate)
SAJE-B-WORK-T-OTHER-C 111 019 S 3 (Leading sign separate)
SAJE-B-WORK-TU-BASE-D 130 019 S 3 (Leading sign separate)
SAJE-B-WORK-TU-BASE-C 149 019 S 3 (Leading sign separate)
SAJE-B-WORK-TU-OTHER-D 168 019 S 3 (Leading sign separate)
SAJE-B-WORK-TU-OTHER-C 187 019 S 3 (Leading sign separate)
SAJE-B-WORK-TRANS-SEQ-NUM 206 007 N 0
SAJE-B-WORK-NUMBER-OF-TRANS 213 007 N 0
SAJE-B-WORK-NUMBER-OF-SUFF 220 003 N 0
FILLER 223 290 X -

SunSystems 4 – Technical Reference Manual Page 419 of 455


The Transaction Line Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-B-WORK-L-REC-TYPE 001 001 X -
SAJE-B-WORK-L-REFERENCE 002 015 X -
SAJE-B-WORK-L-LINE-NO 017 003 N 0
SAJE-B-WORK-L-LINE-NO-SUFF 020 002 N 0
SAJE-B-WORK-L-REC-TYPE-2 022 001 X -
SAJE-B-WORK-L-REF-ID 023 005 N 0
SAJE-B-WORK-L-LINE-NO-2 028 003 N 0
SAJE-B-WORK-L-LINE-NO-2-SUFF 031 002 N 0
SAJH-B-WORK-LINE-TYPE 033 001 X -
SAJH-B-WORK-LINE-AB 034 001 X -
SAJH-B-WORK-LINE-JOURNAL-REF 035 005 N 0
SAJH-B-WORK-LINE-REC-TYPE 040 001 X -
SAJH-B-WORK-LINE-JOURNAL-SEQ 041 007 N 0
SAJE-B-WORK-LINE-DELETED 048 001 X -
SAJE-B-WORK-ACC-PERIOD 049 007 N 0
SAJE-B-WORK-TRANS-DATE 056 008 N 0
SAJE-B-WORK-DUE-DATE 064 008 N 0
SAJE-B-WORK-DESCRIPTION 072 030 X -
SAJE-B-WORK-ACC-CODE 102 015 X -
SAJE-B-WORK-AM 117 018 N 3
SAJE-B-WORK-DC 135 001 X -
SAJE-B-WORK-OTHER-AM 136 018 N 3
SAJE-B-WORK-CONV-CODE 154 005 X -
SAJE-B-WORK-OTHER-DP 159 001 X -
SAJE-B-WORK-OPERATOR 160 001 X -
SAJE-B-WORK-CONV-RATE 161 018 N 9
SAJE-B-WORK-ANAL-CODE 179 150 X -
SAJE-B-WORK-ASSET-CODE 329 010 X -
SAJE-B-WORK-ASSET-SUBCODE 339 005 X -
SAJE-B-WORK-VD 344 001 X -
SAJE-B-WORK-ACC-TYPE 345 001 X -
SAJE-B-WORK-ACC-NAME 346 030 X -
SAJE-B-WORK-ENTER-T 376 010 X -
SAJE-B-WORK-AI 386 001 X -
SAJE-B-WORK-ALLOC-RF 387 009 N 0
SAJE-B-WORK-ALLOC-DT 396 008 N 0
SAJE-B-WORK-ALLOC-AP 404 007 N 0
SAJE-B-WORK-LINE-ROUGH-FLAG 411 001 X -
SAJE-B-WORK-L-JOURNAL-TYPE 412 005 X -
SAJE-B-WORK-L-JOURNAL-SOURCE 417 005 X -
SAJE-B-WORK-L-ENTRY-DATE 422 008 N 0
SAJE-B-WORK-L-ENTRY-PERIOD 430 007 N 0
SAJE-B-WORK-L-ALLOC-IND 437 001 X -
SAJE-B-WORK-L-ALLOC-SEQ 438 005 N 0
SAJE-B-WORK-L-JOURNAL-NO 443 007 N 0
SAJE-VB-WORK-L-Ledger 450 001 X -
FILLER 451 062 X -

SunSystems 4 – Technical Reference Manual Page 420 of 455


The Period Backup Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
SAJE-B-WORK-P-REC-TYPE 001 001 X -
SAJE-B-WORK-P-PERIOD 002 007 N 0
SAJE-B-WORK-P-FILLER 009 013 X -
SAJE-B-WORK-P-REC-TYPE-2 022 001 X -
SAJE-B-WORK-P-PERIOD-2 023 007 N 0
SAJE-B-WORK-P-FILLER-2 030 003 X -
SAJH-B-WORK-PERIOD-TYPE 033 001 X -
SAJH-B-WORK-PERIOD-AB 034 001 X -
SAJH-B-WORK-PERIOD-JOURNAL-REF 035 005 N 0
SAJH-B-WORK-PERIOD-REC-TYPE 040 001 X -
SAJH-B-WORK-PERIOD-JOURNAL-SEQ 041 007 N 0
SAJE-B-WORK-P-BASE-D 048 018 N 3
SAJE-B-WORK-P-BASE-C 066 018 N 3
SAJE-B-WORK-P-OTHER-D 084 018 N 3
SAJE-B-WORK-P-OTHER-C 102 018 N 3
FILLER 120 393 X -

The Journal Hold Version Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 032 X -
SAJH-B-VERSION-TYPE 033 001 X -
SAJH-B-VERSION-AB 034 001 X -
SAJH-B-VERSION-JOURNAL-REF 035 005 N 0
SAJH-B-VERSION-REC-TYPE 040 001 X -
SAJH-B-VERSION-JOURNAL-SEQ 041 007 N 0
SAJH-B-VERSION 048 003 N 0
SAJH-B-LAN-CODE 051 002 N 0
FILLER 053 460 X -

The Journal Hold Control Backup Record


COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 032 X -
SAJH-B-CONTROL-TYPE 033 001 X -
SAJH-B-CONTROL-AB 034 001 X -
SAJH-B-CONTROL-JOURNAL-REF 035 005 N 0
SAJH-B-CONTROL-REC-TYPE 040 001 X -
SAJH-B-CONTROL-JOURNAL-SEQ 041 007 N 0
SAJH-B-CONTROL-NEXT-REF 048 005 N 0
FILLER 053 460 X -

SunSystems 4 – Technical Reference Manual Page 421 of 455


The Journal Hold Journal Backup Record
COBOL POS’N IN FIELD FIELD DEC.
FIELD NAME RECORD LENGTH TYPE PLACES
FILLER 001 032 X -
SAJH-B-JOURNAL-C-TYPE 033 001 X -
SAJH-B-JOURNAL-C-AB 034 001 X -
SAJH-B-JOURNAL-C-JOURNAL-REF 035 005 N 0
SAJH-B-JOURNAL-C-REC-TYPE 040 001 X -
SAJH-B-JOURNAL-C-JOURNAL-SEQ 041 007 N 0
SAJH-B-JOURNAL-C-JT 048 005 X -
SAJH-B-JOURNAL-C-JS 053 005 X -
SAJH-B-JOURNAL-C-CHANGED 058 008 N 0
SAJH-B-JOURNAL-C-TRANS-CT 066 007 N 0
SAJH-B-JOURNAL-C-DEBIT 073 018 N 3
SAJH-B-JOURNAL-C-CREDIT 091 018 N 3
SAJH-B-JOURNAL-C-OPERATOR 109 003 X -
SAJH-B-JOURNAL-C-BUSY 112 001 X -
FILLER 113 400 X -

SunSystems 4 – Technical Reference Manual Page 422 of 455


Technical Reference Manual
Appendix D: Import Records

Movement Import
Movement Import Batch Control Record
A batch control record can be included in your import file. This record contains values which
should match the counted values at the end of the report. The batch control record must be the
last record in your file. The following table shows the data items, their length, start position, and
valid entries.

Data Item Length Start Position Valid Entries


Record Type 1 1 B
Batch Quantity 16 2 first character must be + then
numeric, or blank
Batch Value 16 18 first character must be + then
numeric, or blank
Record Count 12 34 numeric integer

Values must be filled with leading zeros. Quantity and value assume three decimal places
(without a decimal point) so +000000000010999 is taken to be +10.999. When reported, the
decimal places specification on the DB=Database Definitions is used.

Movement Import Detail Record


Movement import performs the following validation:
Item Length Validation
Record Type 1 M (upper case)
Movement Reference 10 Non-blank. If it exists on movement file,
further lines are appended
Unused 5 Ignored
Movement Line Number 4 Ignored. Assigned during posting
Alternate Key Type 1 Ignored
Location Code 5 Valid location code
Item Code 15 Valid item code (Note 2)
Movement Date 8 ccyymmdd
Sequence 4 Ignored
Order Line Status Key 1 1 Ignored
Order Line Status Key 2 1 Ignored
Receipt/Issue Indicator 1 R or I
Batch Number 5 Ignored
Batch Line No 5 Ignored
Receipt Reference 15 Any or blank. Ignored if movement definitions
does not require one. Must be unique if the item
record uses serial number tracking
Movement Quantity 1+18 Non-zero (Note 3)
Movement Value 1 1+18 Any value (Note 5)
Movement Value 2 1+18 Any value (Note 5)
Movement Value 3 1+18 Any value (Note 5)
Unused 1 Ignored
Posting Period 7 yyyyppp or 0000000 or blank (Note 4)
Unit of Stock Description 5 Any or blank. If blank, taken from the item
record
Movement Type 5 Valid movement definition (Note 1)
Physical Stock Update 1 Ignored
Indicator On Order Stock 1 Ignored
Update
Allocation Reference 20 Ignored
Audit Date 8 yyyymmdd, blank, or zeros
Serial Number Index Flag 1 Ignored
Unused 7 Ignored
Account Code 10 Valid account code
Unused 5 Ignored
Asset Code 10 Valid asset code
Asset Subcode 5 Valid asset subcode
Analysis Codes 10x15 Valid analysis categories

SunSystems 4 – Technical Reference Manual Page 423 of 455


Note 1: If documents are required, the status is set accordingly. If ledger interface
postings are required, they are posted to the transfer file. Balances are updated as
specified on the movement definition. Costs will be imported if defined on MD=Movement
Definitions. Receipt reference and allocation are also taken from the movement definition.
Associated movement presets are ignored.
Note 2: This item code controls the allocation method, and the unit of stock.
Note 3: + in first character, then numeric. The last five digits are treated as decimal
places. If BD=Business Definition has Integer Quantities set to Y-Yes, then the last five
digits are ignored.
Note 4: The movement is rejected if the period is greater than the maximum number of
periods, or is outside the open period range on the BD=Business Definition. If zero or
blank, the current period on the business definition is used.
Note 5: Any one of these three values can be the base value. All three values are defined
and conform to the rules set in MV=Movement Values Definition.

SunSystems 4 – Technical Reference Manual Page 424 of 455


Purchase Import
Purchase Import Header/Detail/Text Records
Purchase Order Entry Header Record - OENTH
If you leave any of the following fields blank, the purchase order header preset for this transaction
type is used: Supplier, Delivery Address, Order Date, Second Order Reference, Delivery Date,
Confirmed, Acknowledgement Reference, Acknowledgement Date, Comments, Analysis Codes.

Data Item Position Length Valid Entries


Record Type 1 5 OENTH
Operator Id 6 3 Use a valid Operator ID. If this field
is left blank, the Id of the operator
running PI=Purchase Import is used.
Transaction 9 10 If manual references are used for this
Reference transaction type, you must enter a
(Prefix: 9/4) transaction reference and the
(Suffix: 13/6) transaction reference used must not
have been used before. If you leave
these fields blank, the entry is
invalid. If automatic references are
used for this transaction you must
leave this field blank. If you enter
any text, the entry is invalid.
Supplier Code 19 10 Enter a valid address code. If the
status of the address code entered is
closed, the entry is invalid. If the
status of the address code entered is
suspended, the entry causes a warning.
If you leave this field blank and there
is no preset for the transaction type,
the entry is invalid.
Trans (Order) 29 8 Enter a valid date in the form Date
ccyymmdd. If you leave this box blank,
the preset for this transaction type is
used if there is one. Otherwise the
entry is invalid.
Second Ref 37 10 Enter text. If you leave this box
blank, the preset for this transaction
type is used if there is one, otherwise
spaces are valid.
Order Status 1 47 1 Enter 0 for a status of Held, 3 for a
status of Released, or 6 for a status
of Issued(Printed).
Transaction Type 48 5 Enter a valid PD=Purchase Order
Definitions transaction type. This is
one which has the Order/Invoice Entry
box set to O-Order.
Delivery Address 53 10 Enter a valid address code. If you
Code leave this box blank, the preset for
this transaction type is used if there
is one. If a temporary address is to be
created leave blank and enter the
address in the Delivery Address fields.
Comments 63 25 Enter text. If you leave this box
blank, the preset for this transaction
type is used if there is one, otherwise
spaces are valid.
Acknowledgement 88 10 Enter text. If you leave this box
blank, the Ref preset for this
transaction type is used if there is
one, otherwise spaces are valid.

SunSystems 4 – Technical Reference Manual Page 425 of 455


Purchase Order Entry Header Record - OENTH – (continued)
Data Item Position Length Valid Entries
Acknowledgement 98 8 Enter a valid date in the form
Date ccyymmdd. If you leave this box blank,
the preset for this transaction type is
used if there is one, otherwise spaces
are valid.
Delivery Date 106 8 If the Due Date Per Line box for this
transaction type is set to Y-Yes, this
field is ignored. Otherwise enter a
valid date in the form ccyymmdd. If you
leave this box blank, the preset for
this transaction type is used if there
is one; otherwise the transaction date
is used.
Delivery Date 114 1 If the Due Date Per Line box for this
Advised transaction type is set to Y-
Yes, this field is ignored. Otherwise
enter Y-Yes or leave the field blank.
If you leave this field blank, the
preset for this transaction type is
used if there is one; otherwise spaces
are valid.
Order Period 115 7 Enter a valid period in the form
ccyyppp. If you leave this box blank,
the current period specified in
BD=Business Definition is used.
Analysis Codes 122 150 Enter a valid analysis code for each of
(M0-M9) the header analysis categories
(10 x 15 chars) specified in PD=Purchase Order
Definitions for this transaction type.
If you leave this field blank, the
preset for this transaction type is
used if there is one; otherwise spaces
are valid for analysis categories not
specified in PD=Purchase Order
Definitions.
Document Issue Date 272 8 Unless you have set the Order Status 1
field to 6-Issued(Printed), this entry
is ignored. If, in PD=Purchase Order
Definitions, the Direct Print Order box
for this transaction type is set to Y-
Yes, N-No, or is left blank, enter a
valid date in the form ccyymmdd. If you
leave this field blank or enter zeros,
the date defaults to today’s date. If,
in PD=Purchase Order Definitions, the
Direct Print Order box for this
transaction is set to S-Suppress, enter
zeros or spaces. An invalid entry in
this field produces import warnings
rather than import errors.
Delivery Address 280 210 Enter text. Ignored if a Delivery
(6 x 35 chars) Address code has been entered or a
preset Delivery Address exists for this
transaction type. You can leave this
field blank.
Void Status 490 1 0 - Normal, 1 – Voided Not Posted, 2 –
Void and Posted, or blank
Extra Supplier Code 491 10 Valid address code, or blank
1
Extra Supplier Code 501 10 Valid address code, or blank
2
Extra Text 1 511 30 Any text, or blank

SunSystems 4 – Technical Reference Manual Page 426 of 455


Purchase Order Entry Header Record - OENTH – (continued)
Data Item Position Length Valid Entries
Extra Text 2 541 30 Any text, or blank
Extra Text 3 571 15 Any text, or blank
Extra Text 4 586 15 Any text, or blank
Extra Text 5 601 15 Any text, or blank
Extra Text 6 616 10 Any text, or blank
Extra Text 7 626 10 Any text, or blank
Extra Value 1 636 19 Numeric, or blank
Extra Value 2 655 19 Numeric, or blank
Extra Value 3 674 19 Numeric, or blank

SunSystems 4 – Technical Reference Manual Page 427 of 455


Purchase Order Entry Item Lines - OENTI
If you leave any of the following fields blank, the purchase detail preset for this transaction type is
used: Item Code, Description, Asset Code, Asset Subcode, Location Code, Purchase Quantity,
Stock Quantity, Delivery Date, Confirmed, Account Code, Analysis Codes.

Data Item Position Length Valid Entries


Record Type 1 5 OENTI
Update Base Price 6 1 Any entry you make in this field is
ignored unless the Update Price on the
Item Record is set to Y-Yes or O-Order
Entry. Enter Y-Yes to amend the default
purchase price for this item if the
price entered differs to the existing
default purchase price. If the Supplier
Control box in IR=Item Records is set
to Y-Yes or is left blank and the price
entered differs to the existing default
purchase price, an IS=Item Supplier
record is created or amended. If the
Supplier Control box in IR=Item Records
is set to N-No, the item record is
amended.
Operator Id 7 3 Use a valid Operator ID. If this field
is left blank, the Id of the operator
running PI=Purchase Import is used.
Transaction 10 10 If manual references are used for this
(Prefix: 10/4) Reference transaction type, and the
(Suffix: 14/6) order header is created earlier in the
import file or already exits on the
Purchase Order master file enter the
transaction reference of the order. If
you leave this box blank, the entry is
invalid.
If automatic references are used for
this transaction type, and the order
header already exists on the Purchase
Order master file, enter the
transaction reference of the order. If
automatic references are used for this
transaction type and the order header
is created earlier in the import file,
leave this box blank. (Invalid if
attempting to access a direct invoice -
a transaction with an order status of
9.)
Line Number 20 4 If you want the line number to be
(Prefix: 20/3) generated automatically, enter 000space
(Suffix: 23/1) (3 Zeros and a space). Otherwise enter
a line number with a prefix from 001 to
999 and a suffix of blank or from 1 to
9.
Location 24 5 Enter a valid Location Code unless the
line is for a non-stocked item. If you
leave this box blank, the purchase
order detail preset is used if there is
one. If you leave this field blank and
there is no preset, the entry is
invalid.
Item Code 29 15 If the item is a non-stocked item use
‘-’ hyphen followed by text. If the
item is a stocked item, use a valid
item code. If you leave this field
blank the preset is used if one exists,
otherwise the entry is invalid.

SunSystems 4 – Technical Reference Manual Page 428 of 455


Purchase Order Entry Item Lines – OENTI – (continued)
Data Item Position Length Valid Entries
Item Description 44 30 Enter text. If the item is a non-
stocked item, you can use this field
for additional description. If you
leave this field blank, the description
from the item supplier record is used.
If that is not present, the description
from the purchase order detail preset
for this transaction type is used. If
that is not present, the description
from the item record is used. If the
description from the item supplier
record is used and there is a second
line of description on the item
supplier record or if the item record
description is use and the Extended
Item Description box is set to 1,2,3,4,
or A-All, descriptive lines are
generated automatically.
Delivery Due Date 74 8 Ignored if Delivery Due Date per line =
spaces in Purchase Definition Valid
date ccyymmdd Zeros or spaces = use
Preset if present otherwise defaults to
transaction date.
Delivery Date 82 1 This is ignored if Delivery Due Date
Per Line is spaces in PD=Purchase Order
Definition. Otherwise enter Y-Yes or
leave the field blank. If you leave the
field blank, the preset for this
transaction type is used.
Order Status 1 83 1 Use 0 for a status of Held, or 6 for a
status of Issued (Printed).
Order Status 2 84 1 Use 0 for a status of OK, 1 for a
status of Cancelled, or 2 for a status
of Undelivered.
If the Order Status 1 field (above) is
set to 0-Held, the Order Status 2 field
must be set to 0-OK.
N.B. GRN and Invoice Status 2 will be
automatically set to the same status.
Purchase Quantity 85 19 If you enter a
number, the first character must be +
or -. You can enter up to 5 decimal
places. If you leave this field blank
or enter spaces, the purchase order
detail preset for this transaction type
is used if there is one. If there is no
preset, the purchase quantity is
calculated based on the stock quantity.
If there is no stock quantity, zero is
assumed as the purchase quantity.
Stock Quantity 104 19 If you enter a number, the first
character must be + or -. You can enter
up to 5 decimal places.
If you leave this field blank or enter
spaces, the purchase order detail
preset for this transaction type is
used if there is one.
If there is no preset, the stock
quantity is calculated based on the
purchase quantity. If there is no
purchase quantity, zero is assumed as
the stock quantity.

SunSystems 4 – Technical Reference Manual Page 429 of 455


Purchase Order Entry Item Lines – OENTI – (continued)
Data Item Position Length Valid Entries
Base Cost Price 123 19 The entry in this field is ignored
unless the Override box for the
calculation code BPC is set to Y-Yes
for this transaction type.
If you enter a number, the first
character must be + or -. You can enter
up to 5 decimal places.
Calculation Values 142 323 The entry in this field is ignored
unless the Override box for a
calculation code is set to Y-Yes for
this transaction type.
If you enter a number, the first
character must be + or -. You can enter
up to 5 decimal places.
Account Code 465 10 If the Accounts Code per line box for
this transaction type is left blank,
the entry for this field is ignored.
If the Accounts Code per line box for
this transaction type is set to O-Order
Entry, you must enter a valid account
code in this field. An account code is
invalid if it doesn’t exist or if it is
closed.
If you leave this field blank, the
purchase detail preset for this
transaction type is used. If there is
no purchase detail preset, spaces may
be valid.
Asset Code 475 10 If the Asset Code per line box for this
transaction type is left blank, the
entry for this field is ignored.
If the Asset Code per line box for this
transaction type is set to O-Order
Entry, you must enter a valid asset
code in this field.
If you leave this field blank, the
purchase detail preset for this
transaction type is used. If there is
no purchase detail preset, spaces may
be valid.
Asset Subcode 485 5 If the Asset Code per line box for this
transaction type is left blank, the
entry for this field is ignored. If you
leave this field blank, the purchase
detail preset for this transaction type
is used. If there is no purchase detail
preset, spaces are valid. Any asset
subcode entered must be valid for the
asset code.
Analysis Codes 490 150 Enter a valid analysis code for each of
(M0-M9) the header analysis categories
(10 x 15 chars) specified for this transaction type. If
you leave this field blank, the
purchase detail preset for this
transaction type is used. If there is
no purchase detail preset, spaces are
valid for analysis categories not
specified for this transaction type.

SunSystems 4 – Technical Reference Manual Page 430 of 455


Order Entry Text Lines - OENTT
Data Item Position Length Valid Entries
Record Type 1 5 OENTT
Operator Id 6 3 Use a valid Operator ID. If this field
is left blank, the Id of the operator
running PI=Purchase Import is used.
Reference 9 10 If manual references are used for this
(Prefix: 9/4) transaction type, and the order header
(Suffix: 13/6) is created earlier in the import file
or already exists in SunBusiness enter
the transaction reference of the order.
If you leave this box blank, the entry
is invalid.
If automatic references are used for
this transaction type, and the order
header already exists in SunBusiness,
enter the transaction reference of the
order. If automatic references are used
for this transaction type and the order
header is created earlier in the import
file, leave this box blank.
(Invalid if attempting to access a
direct invoice - a transaction with an
order status of 9.)
Line Number 19 4 If you want the line number to be
(Prefix 19/3) generated automatically, enter 000space
(Suffix 22/1) (3 zeros and a space). Otherwise enter
a line number with a prefix from 001 to
999 and a suffix of blank or from A to
z.
Item Code 23 15 Enter text. If you leave this box
blank, the purchase order detail preset
is used for this transaction type. If
there is no purchase order detail
preset for this transaction type,
spaces is a valid entry.
Item Description 38 30 Enter text. If you leave this box
blank, the purchase order detail preset
is used for this transaction type. If
there is no purchase order detail
preset for this transaction type,
spaces is a valid entry.

SunSystems 4 – Technical Reference Manual Page 431 of 455


Goods Received Header/Detail Records
GRN Match Item Header - OGRNH
Data Item Position Length Valid Entries
Record Type 1 5 OGRNH
Total Quantity 6 19 If the Purchase Quantity Balancing box
in BD=Business Definition is blank,
this field is ignored.
If you enter a number, the first
character must be + or -. You can enter
up to 5 decimal places.
If you leave this field blank, the
total quantity is assumed to be zero.
Operator Id 25 3 Enter a valid Operator ID. If this
field is left blank, the Id of the
operator running PI=Purchase Import is
used.
Order Reference 28 10 Enter an existing issued order
reference i.e. an order with a status
of 6- Issued(Printed).
Supplier GRN 38 10 Enter text. You can leave this field
Reference blank. A warning is generated if the
Supplier
GRN Reference is not unique.
GRN Date 48 8 Enter a valid date in the form ccyymmdd
otherwise the entry is invalid.
Comments 56 25 Enter text. You can leave this box
blank.
Payment Date 81 8 Unless the Post Unapproved at GRN box
in BD=Business Definition is set to Y-
Yes, this field is ignored.
Enter a valid date in the form
ccyymmdd.
If you enter zeros or spaces the record
defaults to zeros.
Void Status 89 1 0 - Normal, 1 – Voided Not Posted, 2 –
Void and Posted, or blank
Extra Supplier Code 90 10 Valid Address Code, or blank
1
Extra Supplier Code 100 10 Valid Address Code, or blank
2
Extra Text 1 130 30 Any text, or blank
Extra Text 2 160 30 Any text, or blank
Extra Text 3 190 15 Any text, or blank
Extra Text 4 205 15 Any text, or blank
Extra Text 5 220 15 Any text, or blank
Extra Text 6 235 10 Any text, or blank
Extra Text 7 245 10 Any text, or blank
Extra Value 1 255 19 Numeric, or blank
Extra Value 2 274 19 Numeric, or blank
Extra Value 3 293 19 Numeric, or blank

SunSystems 4 – Technical Reference Manual Page 432 of 455


GRN Match Item Lines - OGRNI
Data Item Position Length Valid Entries
Record Type 1 5 OGRNI
Posting Period 6 7 The entry in this field is ignored
unless the GRN Status 1 for this line
is set to 5-Matched Released Approved
Released. Use a valid period in the
form ccyyppp.
If you use zeros or spaces, the posting
period is set to the default posting.
Note: If several lines for the same GRN
are released in the same run, the
posting period on the first line will
be applied to all the lines for that
GRN.
Operator Id 13 3 Enter a valid Operator ID. If this
field is left blank, the Id of the
operator running PI=Purchase Import is
used.
Transaction 16 10 Enter an existing issued Order
Reference reference - i.e. one with an order
(Prefix: 16/4) status of 6- Issued(Printed).
(Suffix: 20/6)
GRN Reference 26 10 Enter an existing GRN reference only
when you are appending to an existing
GRN reference. Otherwise leave blank.
Line Number 36 4 Use an existing line number for the
(Prefix: 36/3) order specified.
(Suffix: 39/1) The prefix must be numeric (001-999)
and the suffix can be spaces or 1-9.
GRN Status 1 40 1 Enter the GRN Status 1. This can be 1-
Matched Held, 2-Matched Held Approved
Held, 3-Matched Released, 4-Matched
Released, or 5-Matched Released
Approved Released.
GRN Status 2 41 1 Enter the GRN Status 2. This can be 0-
OK, 1-Cancelled, 2-Undelivered, or 4-
Over Delivered.
Note: The Order Status 2 and Invoice
Status 2 will automatically be set to
the same status.
Purchase Quantity 42 19 If you enter a number, the first
character must be + or -. You can enter
up to 5 decimal places.
Receipt Reference 61 15 If the Allocation Method box in IR=Item
Records for this item is set to S-
Serialised, enter text or leave this
field blank. If you enter text, you
must not enter a duplicate reference.
If the Allocation Method box in IR=Item
Records for this item is not set to
Sserialised and the Receipt Reference
per line box for this transaction type
is blank, this field is ignored.
Otherwise enter text or leave this
field blank.
Audit Date 76 8 If the Audit Date box for the
transaction type is blank, this field
is ignored. Enter a Valid date in the
form ccyymmdd. Otherwise the entry is
invalid.

Note: You can use OGRNI to update the status of Purchase Order Detail to goods
matched and import GRN details.

SunSystems 4 – Technical Reference Manual Page 433 of 455


Purchase Invoice Header/Detail Records
Invoice Match Item Header - OINVH
Data Item Position Length Valid Entries
Record Type 1 5 OINVH
Operator Id 6 3 Enter a valid Operator ID. If this
field is left blank, the Id of the
operator running PI=Purchase Import is
used.
Total Quantity 9 19 If the Purchase Quantity Balancing box
in BD=Business Definition is blank,
this field is ignored.
Otherwise, enter a number. The first
character must be + or -.
Total Value 28 19 If the Purchase Quantity Balancing box
in BD=Business Definition is blank,
this field is ignored.
Otherwise, enter a number. The first
character must be + or -.
Order Reference 47 10 Enter an existing issued Order
(Prefix: 47/4) reference - i.e. an order with an order
(Suffix: 51/6) status of6-Issued(Printed).
Suppliers Invoice 57 10 Enter text. You can leave this field
Ref blank. If you use a reference that is
not unique, a
warning is generated when the file is
imported.
Invoice Date 67 8 Enter a valid date in the form
ccyymmdd. Otherwise the entry is
invalid.
Comments 75 25 Enter text. You can leave this field
blank.
Payment Date 100 8 Enter a valid date in the form
ccyymmdd. If you use zeros or spaces,
these are stored as zeros.
Invoice Period 108 7 Enter a valid period in the form
ccyyppp. If you set this field to zeros
or spaces, the default period is
assumed.
Void Status 115 1 0 - Normal, 1 – Voided Not Posted, 2 –
Void and Posted, or blank
Extra Supplier Code 116 10 Valid Address Code, or blank
1
Extra Supplier Code 126 10 Valid Address Code, or blank
2
Extra Text 1 136 30 Any text, or blank
Extra Text 2 166 30 Any text, or blank
Extra Text 3 196 15 Any text, or blank
Extra Text 4 211 15 Any text, or blank
Extra Text 5 226 15 Any text, or blank
Extra Text 6 241 10 Any text, or blank
Extra Text 7 251 10 Any text, or blank
Extra Value 1 261 19 Numeric, or blank
Extra Value 2 280 19 Numeric, or blank
Extra Value 3 299 19 Numeric, or blank

SunSystems 4 – Technical Reference Manual Page 434 of 455


Invoice Match Item Lines - OINVI
Data Item Position Length Valid Entries
Record Type 1 5 OINVI
Operator Id 6 3 Enter a valid Operator ID. If this
field is left blank, the Id of the
operator running PI=Purchase Import is
used.
Update Base 9 1 If the Update Price box in IR=Item
Price Records for the item is set to O-
Order or is left blank, this field is
ignored.
If you leave this field blank, the
current base price is not changed.
If the entered base cost is different
to the current base price and you want
to amend the current base price, set
this field to Y-Yes.
If the Supplier Control box on the item
record is set to Y-Yes or is blank, an
item supplier record is created or
amended.
If the Supplier Control box on the item
record is set to N-No, the item record
is amended.
Order Reference 10 10 Enter an existing issued Order
(Prefix: 10/4) reference, i.e. an order with an order
(Suffix: 14/6) status of 6-Issued(Printed).
Invoice Reference 20 10 Enter an existing invoice reference
only if appending to an existing
invoice.
Otherwise leave blank.
Line Number 30 4 Enter an existing line number for the
(Prefix: 30/3) order specified.
(Suffix: 33/1) The prefix must be numeric (001-999)
and the suffix can be spaces or 1-9.
Delivery Due Date 34 8 If the Delivery Due Date per line box
for this transaction type is set to
blank, this field is ignored.
Enter a valid date in the form
ccyymmdd.
Otherwise the field defaults to the
invoice date.
Delivery Date 42 1 If the Delivery Due Date per line box
for Advised this transaction type is
blank, this field is ignored. Enter Y-
Yes or space.
Invoice Status 1 43 1 Enter the Invoice Status 1. Enter 1-
Matched Held, 2-Matched Held Approved
Held, 3-Matched Released, 4-Matched
Released Approved Held, or 5-Matched
Released Approved Released.
Invoice Status 2 44 1 Enter the Invoice Status 2.
Use 0-OK, 1-Cancelled, or 2-
Undelivered.
Note: Order Status 2 and GRN Status 2
will be automatically set to the same
status.
Purchase Quantity 45 19 If you enter a number, the first
character must be + or -. You can enter
up to 5 decimal places.
If you use spaces, the purchase
quantity is set to zero.
Stock Quantity 64 19 If you enter a number, the first
character must be + or -. You can enter
up to 5 decimal places.
If you use spaces, the stock quantity
is set to zero.

SunSystems 4 – Technical Reference Manual Page 435 of 455


Invoice Match Item Lines – OINVI – (continued)
Data Item Position Length Valid Entries
Base Cost Price 83 19 If you enter a number, the first
character must be + or -. You can enter
up to 5 decimal places.
If you use spaces, the base cost price
is set to zero.
Calculation Values 102 323 The entry in this field is ignored
unless the Override box for a
calculation code is set to Y-Yes for
this transaction type.
If you enter a number, the first
character must be + or -. You can enter
up to 5 decimal places.
Invoice Period 425 7 This is used as the posting period.
Use a valid period in the form ccyyppp.
If you enter zeros or spaces in this
field, the default period is assumed.
Invoice Approval 432 8 Enter a valid date in the form
Date ccyymmdd.
If you enter zeros or spaces in this
field, today’s date is assumed.
Receipt Reference 440 15 If the Allocation Method box in IR=Item
Records for this item is set to S-
Serialised, enter text or leave this
field blank.
If you enter text, you must not enter a
duplicate reference.
If the Allocation Method box in IR=Item
Records for this item is not set to S-
Serialised and the Receipt Reference
per line box for this transaction type
is blank, this field is ignored.
Otherwise enter text or leave the field
blank.
Audit Date 445 8 If the Audit Date box for the
transaction type is blank, this field
is ignored. Enter a valid date in the
form ccyymmdd.
Account Code 463 10 Enter a valid account code.
If the Account Code per line box for
this transaction type is set to blank,
this field is
ignored.
If the Account Code per line box for
this transaction type is set to M-
Invoice Match and Invoice Status 1 is
set to 1-Matched Held, 3-Matched
Released, or 4-Matched Released
Approved Held, the field must not be
blank.
If the Account Code per line box for
this transaction type is set to A-
Invoice Approval and Invoice Status 1
is set to 2-Matched Held Approved Held,
or 5- Matched Released Approved
Released, the field must not be left
blank. Otherwise spaces are valid.

SunSystems 4 – Technical Reference Manual Page 436 of 455


Invoice Match Item Lines – OINVI – (continued)
Data Item Position Length Valid Entries
Asset Code 473 10 Enter a valid asset code.
If the Asset Code per line for the
transaction type is set to blank, this
field is ignored.
If the Asset Code per line box for this
transaction type is set to M-Invoice
Match and Invoice Status 1 is set to 1-
Matched Held, 3-Matched Released, or 4-
Matched Released Approved Held, the
field must not be left blank.
If the Asset Code per line box for this
transaction type is set to A-Invoice
Approval and Invoice Status 1 is set to
2-Matched Held Approved Held, or 5-
Matched Released Approved Released, the
field must not be left blank. Otherwise
spaces are valid.
Asset Sub Code 483 5 Enter a valid asset subcode.
If the Asset Code per line for the
transaction type is set to blank, this
field is ignored. Any Asset Sub Code
entered must be valid for the Asset
Code.

Note: You can use OINVI to update the status if a Purchase Order Detail line to invoiced
and import invoice details. Calculation values can also be amended with this record type.

SunSystems 4 – Technical Reference Manual Page 437 of 455


Direct Purchase Import Header/Detail/Text Records
Direct Invoice Header - DINVH
If you leave any of the following fields blank, the purchase order header preset for this transaction
type is used: Supplier, Delivery Address, Invoice Date, Supplier Invoice Reference, Payment
Date, Comments, Analysis Codes.

Data Item Position Length Valid Entries


Type 1 5 DINVH
Total Quantity 6 19 If the Purchase Quantity Balancing box
in BD=Business Definition is blank,
this field is ignored.
Otherwise, enter a number. The first
character must be + or -.
Total Value 25 19 If the Purchase Quantity Balancing box
in BD=Business Definition is blank,
this field is ignored.
Otherwise, enter a number. The first
character must be + or -.
Operator Id 44 3 Use a valid Operator ID. If this field
is left blank, the Id of the operator
running PI=Purchase Import is used.
Order Reference 47 10 If manual references are used for this
(Prefix: 47/4) transaction type you must enter an
(Suffix: 51/6) Order Reference which has not been
used. The entry is invalid if you leave
this blank.
If automatic references are used for
this transaction type you must leave
this blank.
If you enter any text the entry is
invalid.
Supplier Code 57 10 Enter a valid address code.
If the status of the address is
suspended you are warned.
If you leave this field blank, and
there is no preset for the transaction
type, a blank field is invalid.
Trans (Invoice) 67 8 Enter a valid date in the form
Date ccyymmdd.
If you leave this box blank, the preset
for this transaction type is used if
one exists. Otherwise the entry is
invalid.
Supplier Invoice 75 10 Enter text or leave this field blank.
Ref Note: If you enter a supplier invoice
reference that is not unique, an
warning is generated when the file is
imported.
Transaction Type 85 5 Enter a valid PD=Purchase Order
Definition transaction type which has
its Order/Invoice Entry box set to I-
Invoice.
Delivery Address 90 10 Enter a valid address code.
Code If you leave this field blank, the
preset for the transaction type is used
if there is one.
If a temporary address is to be created
leave blank and enter the address as
the delivery address.
Comments 100 25 Enter text. If you leave this field
blank the preset for the transaction
type is used if there is one. Otherwise
spaces are valid.

SunSystems 4 – Technical Reference Manual Page 438 of 455


Direct Invoice Header – DINVH – (continued)
Data Item Position Length Valid Entries
Payment Date 125 8 Enter a valid date in the form
ccyymmdd.
If you use zeros or spaces, the field
is set to zeros.
This field is ignored if the Post
Unapproved at GRN box in BD=Business
Definition is set to Y-Yes.
Invoice Period 133 7 Enter a valid period in the form
ccyyppp.
If you use zeros or spaces, the invoice
period is set to the default posting
period.
Analysis Codes 140 150 Enter a valid analysis code for each of
(M0-M9) the header analysis categories
(10 x 15 chars) specified in PD=Purchase Order
Definition for this transaction type.
If you leave this field blank, the
preset for this transaction type is
used if there is one.
Otherwise, spaces are a valid entry for
analysis categories not specified in
PD=Purchase Order Definition.
Delivery Address 290 210 Enter text. This is ignored if a
(6 x 35 chars) Delivery Address Code has been entered
or a preset Delivery Address Code
exists. You can leave this box blank.
Extra Supplier Code 500 10 Valid Address Code, or blank
1
Extra Supplier Code 510 10 Valid Address Code, or blank
2
Extra Text 1 520 30 Any text, or blank
Extra Text 2 550 30 Any text, or blank
Extra Text 3 580 15 Any text, or blank
Extra Text 4 595 15 Any text, or blank
Extra Text 5 610 15 Any text, or blank
Extra Text 6 625 10 Any text, or blank
Extra Text 7 635 10 Any text, or blank
Extra Value 1 645 19 Numeric, or blank
Extra Value 2 664 19 Numeric, or blank
Extra Value 3 683 19 Numeric, or blank

SunSystems 4 – Technical Reference Manual Page 439 of 455


Direct Invoice Item Line - DINVI
If you leave any of the following fields blank, the purchase order detail preset for this transaction
type is used: Item Code, Description, Asset Code, Asset Subcode, Location Code, Purchase
Quantity, Stock Quantity, Delivery Date, Confirmed, Account Code, Analysis Codes.

Data Item Position Length Valid Entries


Record Type 1 5 DINVI
Posting Period 6 7 Enter a valid period in the form
ccyyppp.
If you set this field to zeros, the
posting period is set to the default
period.
Update Base Price 13 1 If the Update Price box in IR=Item
Records for the item is set to O-Order
or is left blank, this field is
ignored.
If you leave this field blank, the
current base price is not changed.
If the entered base cost is different
to the current base price and you want
to amend the current base price, set
this field to Y-Yes.
If the Supplier Control box on the item
record is set to Y-Yes or is blank, an
item supplier record is created or
amended.
If the Supplier Control box on the item
record is set to N-No, the item record
is amended
Operator Id 14 3 Enter a valid Operator ID.
If this field is left blank, the Id of
the operator running PI=Purchase Import
is used.
Order Reference 17 10 If manual references are used for this
(Prefix: 17/4) transaction type, enter the transaction
(Suffix: 21/6) reference of the order.
If you leave this box blank, the entry
is invalid.
If automatic references are used for
this transaction type, and the order
header already exists on the Purchase
Order master file, enter the
transaction reference of the order.
If automatic references are used for
this transaction type, leave this box
blank.
Invoice Reference 27 10 Enter an existing invoice reference
only if you are updating an existing
invoice, otherwise leave blank.
Line Number 37 4 To generate a line number automatically
(Prefix: 27/3) enter 000space. Otherwise enter a line
(Suffix: 30/1) number with a prefix from 001 to 999
and a suffix from 1 to 9.
To amend an existing line use an
existing line number for the invoice
specified.
Location 41 5 Enter a valid Location Code unless the
line is for a non-stocked item.
If you leave this box blank, the
purchase order detail preset is used if
there is one.
If you leave this field blank and there
is no preset, the entry is invalid.

SunSystems 4 – Technical Reference Manual Page 440 of 455


Direct Invoice Item Line – DINVI – (continued)
Data Item Position Length Valid Entries
Item Code 46 15 If the item is a non-stocked item use
‘-’ hyphen followed by text.
If the item is a stocked item, use a
valid item code.
If you leave this field blank and there
is no preset, the entry is invalid.
Item Description 61 30 Enter text. If the item is a non-
stocked item, you can use this field
for an additional description.
If you leave this field blank, the
description from the item supplier
record is used. If that is not present,
the description from the purchase order
detail preset for this transaction type
is used. If that is not present the
description from the item record is
used.
If the description from the item
supplier record is used and there is a
second line of description on the item
supplier record or if the item record
description is use and the Extended
Item Description box is set to 1,2,3,4,
or A-All, descriptive lines are
generated automatically.
Delivery Due Date 91 8 Enter a valid date in the form
ccyymmdd.
This box is ignored if Delivery Due
Date per line is spaces in PD=Purchase
Order Definition.
If you set this field to zeros or
spaces, the purchase item preset for
this transaction type is used if there
is one. Otherwise the delivery due date
is assumed as the invoice date.
Delivery Date 99 1 Set this field to Y-Yes or blank.
Advised If you set the field to blank, the
preset for this transaction type is
used. This field is ignored if the
Delivery Due Date per line box for the
transaction type is blank.
Invoice Status 1 100 1 Enter the Invoice Status 1. This can be
2-Matched Held Approved Held, 3-
Matched Released, 4-Matched Released
Approved Held, or 5-Matched Released
Approved Released.
Invoice Status 2 101 1 Enter the Invoice Status 2. This can be
0- OK, 1-Cancelled, or 2-Undelivered.
Purchase 102 19 If you enter a number, the first
character Quantity must be + or -. You
can enter up to 5 decimal places.
If you leave this blank, or enter
spaces, the purchase order detail
preset for this transaction type is
used if there is one. If there is no
preset the purchase quantity is
calculated based on stock quantity. If
there is no stock quantity zero is
assumed as the purchase quantity.

SunSystems 4 – Technical Reference Manual Page 441 of 455


Direct Invoice Item Line – DINVI – (continued)
Data Item Position Length Valid Entries
Stock Quantity 121 19 If you enter a number, the first
character must be + or -. You can enter
up to 5 decimal places.
If you leave this box blank or enter
spaces, the purchase order detail
preset for this transaction type is
used if there is one. If there is no
preset the stock quantity is calculated
based on the purchase quantity. If
there is no purchase quantity zero is
assumed as the stock quantity.
Base Cost Price 140 19 This entry is ignored unless the
override box for the calculation code
BPC is set to Y-Yes for this
transaction type. If you enter a
number, the first character must be +
or -. You can enter up to 5 decimal
places. If you use spaces, the base
cost price is set to zero.
Calculation Values 159 323 The entry in this field is ignored
unless the Override box for a
calculation code is set to Y-Yes for
this transaction type.
If you enter a number, the first
character must be + or -. You can enter
up to 5 decimal places.
Account Code 482 10 Enter a valid account code.
If the Account Code per line box for
this transaction type is set to blank,
this field is ignored.
If the Account Code per line box for
this transaction type is set to M-
Invoice Match and Invoice Status 1 is
set to 1-Matched Held, 3-Matched
Released, or 4-Matched Released
Approved Held, the field must not be
set to space or left blank.
If the Account Code per line box for
this transaction type is set to A-
Invoice Approval and Invoice Status 1
is set to 2-Matched Held Approved Held,
or 5- Matched Released Approved
Released, the field must not be set to
space or left blank.
If you leave the field blank, the
purchase order detail preset for the
transaction type is used if there is
one, otherwise spaces may be valid.

SunSystems 4 – Technical Reference Manual Page 442 of 455


Direct Invoice Item Line – DINVI – (continued)
Data Item Position Length Valid Entries
Asset Code 492 10 Enter a valid asset code.
If the Asset Code per line for the
transaction type is set to blank, this
field is ignored.
If the Asset Code per line box for this
transaction type is set to M-Invoice
Match and Invoice Status 1 is set to 1-
Matched Held, 3-Matched Released, or 4-
Matched Released Approved Held, the
field must not be set to space or left
blank.
If the Asset Code per line box for this
transaction type is set to A-Invoice
Approval and Invoice Status 1 is set to
2-Matched Held Approved Held, or 5-
Matched Released Approved Released, the
field must not be set to space or left
blank.
If you leave the field blank, the
purchase order detail preset for the
transaction type is used if there is
one, otherwise spaces may be valid.
Asset Sub Code 502 5 Enter a valid asset subcode.
If the Asset Code per line for the
transaction type is set to blank, this
field is ignored.
If you leave the field blank, the
purchase order detail preset for the
transaction type is used if there is
one, otherwise spaces may be valid.
Any asset subcode entered must be valid
for the asset code.
Receipt Reference 507 15 If the Allocation Method box in IR=Item
Records for this item is set to S-
Serialised, enter text or leave this
field blank. If you enter text, you
must not enter a duplicate reference.
If the Allocation Method box in IR=Item
Records for this item is not set to
Sserialised and the Receipt Reference
per line box for this transaction type
is blank, this field is ignored.
Otherwise enter text or leave the field
blank.
Audit Date 522 8 If the Audit Date box for the
transaction type is blank, this field
is ignored.
Enter a valid date in the form
ccyymmdd.
Analysis Codes 530 150 Enter a valid analysis code for each of
(M0-M9) the header analysis categories
(10 x 15 chars) specified for the transaction type.
If you leave this field blank, the
purchase detail preset is used if there
is one, otherwise spaces are valid for
analysis categories not specified for
the transaction type.

Note: You can use DINVI to update the status of existing Invoice Detail lines.

SunSystems 4 – Technical Reference Manual Page 443 of 455


Direct Invoice Text Line - DINVT
Data Item Position Length Valid Entries
Record Type 1 5 DINVT
Operator Id 6 3 Enter a valid Operator ID.
If this is blank the ID of the operator
running PI=Purchase Import is used.
Order Reference 9 10 If manual references are used for this
(Prefix: 9/4) transaction type, enter the transaction
(Suffix: 13/6) reference of the order.
If you leave this box blank, the entry
is invalid.
If automatic references are used for
this transaction type, and the order
header already exists on the Purchase
Order master file, enter the
transaction reference of the order. If
automatic references are used for this
transaction type, leave this box blank.
Invoice Reference 19 10 Enter an existing invoice reference
only if you are updating an existing
invoice line, otherwise leave blank.
Line Number 29 4 To generate a line number automatically
(Prefix: 19/3) enter 000space. Otherwise enter a line
(Suffix: 22/1) number with a prefix from 001 to 999
and a suffix from 1 to 9.
To amend an existing line use an
existing line number for the invoice
specified.
Item Code 33 15 Enter text. If you leave this field
blank, the purchase detail preset for
the transaction type is used. If there
is no purchase detail preset for the
transaction type, spaces is a valid
entry.
Item Description 48 30 Enter text. If you leave this field
blank, the purchase detail preset for
the transaction type is used. If there
is no purchase detail preset for the
transaction type, spaces is a valid
entry.

SunSystems 4 – Technical Reference Manual Page 444 of 455


Sales Import
Sales Import Batch Control Record
A batch control record can be included in your import file. This record contains values which
should match the counted values at the end of the report.
The batch control record must be the last record in your file. The following table shows the data
items, their length, start position, and valid entries.

Data Item Length Position Valid Entries


Record Type 1 1 B
Batch Count Lines 12 2 Numeric
Batch Count Headers 12 14 Numeric
Batch Count Item 12 26 Numeric
Lines
Batch Count 12 38 Numeric
Description Lines
Batch Total 19 50 first character must be + then numeric,
Calculation Code 1 or blank.
Batch Total 19 69 first character must be + then numeric,
Calculation Code 2 or blank.
Batch Total 19 88 first character must be + then numeric,
Calculation Code 3 or blank.
Batch Total 19 107 first character must be + then numeric,
Calculation Code 4 or blank.
Batch Total 19 126 first character must be + then numeric,
Calculation Code 5 or blank.
Batch Total 19 145 first character must be + then numeric,
Calculation Code 6 or blank.
Batch Total 19 164 first character must be + then numeric,
Calculation Code 7 or blank.
Batch Total 19 183 first character must be + then numeric,
Calculation Code 8 or blank.
Batch Total 19 192 first character must be + then numeric,
Calculation Code 9 or blank.
Batch Total 19 211 first character must be + then numeric,
Calculation Code 10 or blank.
Batch Total 19 230 first character must be + then numeric,
Calculation Code 11 or blank.
Batch Total 19 249 first character must be + then numeric,
Calculation Code 12 or blank.
Batch Total 19 268 first character must be + then numeric,
Calculation Code 13 or blank.
Batch Total 19 287 first character must be + then numeric,
Calculation Code 14 or blank.
Batch Total 19 306 first character must be + then numeric,
Calculation Code 15 or blank.
Batch Total 19 325 first character must be + then numeric,
Calculation Code 16 or blank.
Batch Total 19 344 first character must be + then numeric,
Calculation Code 17 or blank.
Batch Total 19 363 first character must be + then numeric,
Calculation Code 18 or blank.
Batch Total 19 382 first character must be + then numeric,
Calculation Code 19 or blank.

SunSystems 4 – Technical Reference Manual Page 445 of 455


Sales Import Batch Control Record – (continued)
Data Item Length Position Valid Entries
Batch Total 19 401 first character must be + then numeric,
Calculation Code 20 or blank.
Values must be filled with leading
zeros.
Values assume five decimal places
(without a decimal point) so
+00000000001099999 istaken to be
+10.99999.
When reported, the decimal places
specification in DB=Database
Definitionsis used. ‘Batch Counts’ are
integers. With all totals, ignore
positive and negative values.

All additional records created as a result of exploding a kit list assembly, will not be included in the
counts and totals used for comparison with the batch control record.

SunSystems 4 – Technical Reference Manual Page 446 of 455


Sales Import Header Record
When your file is imported the system checks its contents. The following table shows which data
items must be present, their length and valid entries:

Data Item Length Valid Entries


Record Type 1 O (upper case) for order header
Q (upper case) for quotation header
Unused 5 Ignored
Trans Reference 4 Any text or blank (Note 1)
Prefix
Trans Reference 6 Any text or blank (Note 1)
Suffix
Unused 5 Ignored
Alternate Key Type 1 Ignored
Customer Code 10 Valid Address Code or blank for preset (Note 2).
The Address Code must include a valid Account Code.
A warning is given if the Account is suspended or
over its Credit Limit
Transaction Date 8 ccyymmdd or blank for preset
(Note 2)
Alternate Key Data 14 Ignored
Order Status Key 1 1 Ignored
Order Status Key 2 1 0 for Released or 1 for Held.
Picking and Despatched not allowed
Debit/Credit 1 Ignored
indicator
Transaction Type 5 Valid Sales Order Definition (Note 1)
Unused 5 Ignored
Order Number 10 Ignored - Copied from Transaction Reference
Delivery Reference 15 Any text or blank for preset (Note 2)
Delivery Address 10 Valid Address Code or blank for preset (Note 2).
Code Delivery Address Details are used in preference to
presets. A
warning is given if the associated Account Code is
different from Customer Address
Order Date 8 Ignored - Copied from Transaction Date
Ackn Date 8 Ignored
Picking Date 8 Ignored
Delivery Date 8 Ignored
Invoice Date 8 Ignored
Period Invoiced 7 ccyyppp or 0000000 or blank (Note 6)
Customer Reference 25 Any text or blank for preset (Note 2)
Comments 25 Any text or blank for preset (Note 2)
Order Total 1+18 Ignored - Calculated on posting
Payment Due Date 8 ccyymmdd or a relative date i.e. +10
Unused 2 Ignored
Analysis Codes M0- 10 x 15 Valid Codes in Categories specified on Sales Order
M9 Definition. Blank for preset (Note 2)
Unused 2 Ignored
Quot. Expiry Date 8 ccyymmdd or 00000000 or blank (Note 7)
Period Quoted 7 ccyyppp or 00000000 or blank (Note 6)
Unused 5 Ignored
Quotation Ref. 10 Ignored
Date-Quoted 8 ccyymmdd or 00000000 or blank
Void Status 1 Ignored – 0, 1, 2, or blank
Extra Supplier Code 10 Valid Address Code, or blank
1
Extra Supplier Code 10 Valid Address Code, or blank
2
Extra Text 1 30 Any text, or blank
Extra Text 2 30 Any text, or blank
Extra Text 3 15 Any text, or blank
Extra Text 4 15 Any text, or blank
Extra Text 5 15 Any text, or blank
Extra Text 6 10 Any text, or blank
Extra Text 7 10 Any text, or blank

SunSystems 4 – Technical Reference Manual Page 447 of 455


Sales Import Header Record – (continued)
Data Item Length Valid Entries
Extra Value 1 19 Numeric, or blank
Extra Value 2 19 Numeric, or blank
Extra Value 3 19 Numeric, or blank
Filler 176
Del Address Details 6 x 35 Any text (spaced appropriately) or blank. Only used
if Delivery Address Code is blank
Inv. Address 6 x 35 Any text (spaced appropriately) or blank. Only used
Details if Customer Code is blank and quotation being
imported

Sales Import Detail Record


Sales order import performs the following validation:
Data Item Length Valid Entries
Record Type 1 D (upper case) for order item line or E (upper case)
for quotation item line
Unused 5 Ignored
Trans Reference 4 Any existing Header or blank (Note 1)
Prefix
Trans Reference 6 Any existing Header or blank (Note 1)
Suffix
Trans Line number 3 3 digits e.g. 001
Trans Line number 2 2 digit (description lines) or blank
suffix
Alternate Key Type 1 Ignored
Location Code 5 Valid Location Code or blank for preset (Note 1 & 3)
Item Code 15 Valid Item Code or blank for preset (Note 3 & 4) or
‘-’ plus any text for nonstocked item
Transaction Date 8 ccyymmdd or 00000000 or copied from Header (Note 1)
(Due Date)
Sequence 4 Ignored
Order Status Key 1 1 Ignored
Order Status Key 2 1 Ignored
Debit/Credit 1 Ignored
indicator
Item Description 30 Any text or blank for preset (Notes 3 & 4)
Calc Code Values 20 x Note (1, 3 & 5)
1+18
Transaction Type 5 Ignored - Copied from Header
Delivery Date 8 Ignored
Invoice Date 8 Ignored
Period Ordered 7 ccyyppp or 0000000 or blank
Invoice Period 7 ccyyppp
Unit of Sale Desc 5 Ignored
Unused 5 Ignored
Invoice Number 10 Ignored
Print Ackn 1 Ignored
Print Misc 1 Ignored
Allocation Ref 19 Ignored
Receipt Ref 15 Ignored
Line Analysis 1 Ignored
Indicator
Account Code 15 Any Valid Chart of Account Code
Unused 23 Ignored
Analysis Codes M0- 10x15 Valid Codes in Categories specified on Sales Order
M9 Definition. Blank for preset (Note 1 & 2)
Assembly Indicator 1 * or blank (Note 8)
Assembly Desc. Ind. 1 Y or blank (Note 8)
Assembly Level Ind. 1 T or blank (Note 8)
Price Books 5 Ignored
Qty Pointers 4 Ignored
Total Value 2 Ignored

SunSystems 4 – Technical Reference Manual Page 448 of 455


Sales Import Detail Record – (continued)
Data Item Length Valid Entries
Value Pointers 6 Ignored
Misc Decs 5 Ignored
D Note 10 Ignored
Audit Date 8 ccyymmdd or 00000000 or blank
Unused 7
Delivery 1+5 + or - in the first character then numeric. The last
Temperature two digits are treated as decimal places.
Delivery Quantity 1 1+18 + in the first character then numeric. The last five
digits are treated as decimal places. This quantity
may reflect either volume or weight, depending on the
individual sales order line item, i.e. if the item is
a ‘volume’ item, Delivery Quantity 1 reflects volume,
if the item is a ‘weight’ item Delivery Quantity 1
reflects weight. Delivery Quantity 1 and Delivery
Quantity 2 are mutually exclusive. If Delivery
Quantity 2 is being input, Delivery Quantity 1 should
contain zeroes, i.e. +000000000000000000.
Delivery Quantity 2 1+18 + in the first character then numeric. The last five
digits are treated as decimal places. This quantity
may reflect either volume or weight, depending on the
individual sales order line item, i.e. if the item is
a ‘volume’ item Delivery Quantity 2 reflects weight,
if the item is a ‘weight’ item Delivery Quantity 2
reflects volume. Delivery Quantity 1 and Delivery
Quantity 2 are mutually exclusive. If Delivery
Quantity 1 is being input, Delivery Quantity 2
should contain zeroes, i.e. +000000000000000000.
Delivery Date 8 Ccyymmdd
This date is matched against DE=Standard Density
records to retrieve the required Standard Density
value. If no appropriate DE record exists, Standard
Density must be supplied either via import fields
Product Density, Product Density Temperature and HCF
(which together allow it to be calculated), or
explicitly via import field Standard Density.
Product Density 5 Numeric. The last digit is treated as a decimal
place. If Standard Density is being retrieved from
DE= Standard Density or supplied explicitly via
import field Standard Density this field should
contain zeroes.
Product Density 6 + or - in the first character then numeric. The last
Temperature two digits are treated as decimal places. If Standard
Density is being retrieved from DE=Standard density
or supplied explicitly via import field Standard
Density this field should contain zeroes, i.e.
+00000.
Hydrometer 1 0 or 1
Correction Factor If Standard Density is being retrieved from
DE=Standard Density or supplied explicitly via import
field Standard Density this field should contain
zero.
Standard Density 5 Numeric. The last digit is treated as a decimal
place. If Standard Density is being retrieved from
DE=Standard Density or supplied via import fields
Product Density, Product Density Temperature and HCF
this field should contain zeroes.

SunSystems 4 – Technical Reference Manual Page 449 of 455


Sales Import Description Record
Sales order import performs the following validation:

Data Item Length Valid Entries


Record Type 1 D (upper case) for orders
E (upper case) for quotations
Unused 5 Ignored
Trans Reference 4 Any existing Header or blank (Note 1)
Prefix
Trans Reference 6 Any existing Header or blank (Note 1)
Suffix
Trans Line number 3 3 digits e.g. 001
Trans Line number 2 2 characters, not spaces and not numeric
suffix
Alternate Key Type 1 Ignored
Location Code 5 Ignored
Item Code 15 any text or blank for preset (Notes 3 & 4)
Transaction Date 8 Ignored
Sequence 4 Ignored
Unused 3 Ignored
Item Description 30 Any text or blank for preset (Note 3 & 4)

Note 1: This sales order definition controls many things.


The debit/credit transaction indicator overrides the sign for quantity shown on item lines.
This in turn may be reversed by IP=Item Special Processes.
If update stock is required, a location code must be supplied on the import file or from a
detail preset (Note 3). If there is not sufficient free stock, a warning is printed. If stock
update is not required the location code is ignored. This applies to nonstock items. If an
item special process states that stock update is not required, this overrides any other
indicators.
If due date entry is not required the order header date is copied to detail lines and used for
picking and the due date on the import file is ignored. If it is required, one must be supplied
or taken from a detail preset.
If manual order numbers are required, the import file must include references. A reference
which already exists will be rejected. If not required, headers must be supplied without
references which will be taken from the BD=Business Definition. These automatically
allocated numbers must not duplicate numbers that already exist. The order number on
detail lines must either match a header that already exists or one that precedes them on
the import file. If detail lines do not show numbers, it is assumed they belong to the
previous header.
If you are using automatic numbering the prefix is taken from SD=Sales Order Definitions
if one is not supplied on the import file.
Analysis codes are copied from the header to detail lines. They may be supplied on detail
lines only if the sales order definition requests entry by line.
Calculation values/manual override work as in sales order entry. Normally they should be
left blank in the import file and will be calculated. If manual override is Y-Yes, then the
value on the import file is used. Zero is used if the calculation cannot be made.
CT=Calculation Tables are ignored and zero substituted if the tables depend on item
codes and a nonstock item has been specified.
Note 2: HP=Sales Order Header Presets may be used for invoice address, delivery
address, transaction date, customer reference, delivery reference, comments, and
analysis codes. The invoice address may be blank if importing a quotation for a
prospective customer.
Note 3: DP=Sales Order Detail Presets may be used for item code, item description,
location code, up to 3 calculation values (Note 1), due date and account code.

SunSystems 4 – Technical Reference Manual Page 450 of 455


Note 4: The IR=Item Records description is used if there is neither one on the import file,
the extended item description record, nor on a detail preset. The following are also taken
from the item record: unit of sale, base/next selling price, and item special processes. The
latter are used exactly as if the order were being entered manually. So if you are
subtotalling, you must present lines in the correct sequence.
Extended item descriptions will be added to the imported record if the item record
description is used and the SOP Extended Item Description on the IR=Item Records is not
blank and the description or the import file is blank.
Note 5: + or - in the first character then numeric. The last five digits are treated as decimal
places. If BD=Business Definition has integer quantities set to Y-Yes, then the last five
digits of the Sale and Stock Quantities are ignored.
Note 6: The transaction is rejected if the period is greater than the maximum number of
periods, or outside the Open Periods Ranges on the BD=Business Definition. If zero, the
Current Period on the BD=Business Definition, is used. Do not leave this blank.
Note 7: The quotation expiry date is used only on quotation header records. If zero or
blank the Quotation Expiry date on the SD=Sales Order Definition is added to Today’s
Date to give a calculated quotation expiry date.
Note 8: These items should only be used if you are importing items as part of an
assembly. The assembly indicator should be set to ‘*’ asterisk if the item code is part of an
assembly which has already been exploded. Leave blank if the assembly is to be exploded
by the import program.
The assembly description indicator should be set to Y-Yes if the item on the detail line is
part of a process components type assembly which has already been exploded.
The assembly level indicator should be set to T-Top Level if the item on the detail is the
top level item of an already exploded assembly.

SunSystems 4 – Technical Reference Manual Page 451 of 455


Sun Account Transfer File
Journal Import Record
This transfer file is used to import transactions into SunAccount, using the JI=Journal Import
function. A table of this format is also generated by SunBusiness in order to transfer data from
SunBusiness to the SunAccount ledgers. JI=Journal Import can accept transfer files in the
formats: SAF, SBF and PCF, from previous versions of SunSystems.
The same layout is created when you backup the ledger and budget tables in SunAccount
(backup files are created by the FB=File Backup/Restore function). However, it contains a control
record which is not required for JI=Journal Import files.
The SAF format transfer file may be created by any application which is able to present it in ASCII
text format.
This layout should be used for every transaction that is to be imported into Ledger Accounting,
Corporate Allocations and the Fixed Asset Register. Remember that the debits and credits should
balance to zero.
Fields which are not used should be space filled.
Note: A full list of the maximum values permitted in is provided in Appendix E.

Control Record
This is not required for JI=Journal Import, although a warning message appears if none is found.

Data Item Start Position Length Comments


Filler 1 32 Space
Record Type 33 1 = C
Highest Journal 34 7
Number Used
Last Cleardown 41 5
Sequence Used
Filler 46 2 Spaces
Language Id. 48 2
Filler 50 463 Spaces

Accounting Transaction
Data Item Start Position Length Comments
Account Code 1 10 10 characters
Filler 11 5 Spaces
Accounting Period 16 7 yyyyppp (year number, period number)
Transaction Date 23 8 yyyymmdd (year, month, and day number)
Filler 31 2 Spaces
Record Type 33 1 = M
(Record Types E, T, N and L can still
be read in version 4.2. If your records
include analysis codes T0, or T6 to T9
you must use Record Type L or M.)
Journal Number 34 7 Journal Number
(The SunBusiness transfer file divides
this item into a SOURCE of 2 chars at
Start Position 34, followed by the
Journal Number of 5 chars at Start
Position 36.)
Line 41 7 Line Number
Amount 48 18 15 integer and 3 decimal
Debit/Credit Marker 66 1 = D or C
Allocation 67 1
Indicator

SunSystems 4 – Technical Reference Manual Page 452 of 455


Accounting Transaction – (continued)
Data Item Start Position Length Comments
Journal Type 68 5
Journal Source 73 5
Transaction 78 15 15 characters
Reference
Description 93 25
Entry Date 118 8 yyyymmdd (Generated by JI=Journal
Import)
Entry Period 126 7 yyyyppp (Generatedby JI=Journal Import)
Due Date 133 8 yyyymmdd
Filler 141 6 Spaces
Payment/Allocation 147 9 9 integer
Ref
Payment/Allocation 156 8 yyyymmdd
Date
Payment/Allocation 164 7 yyyyppp
Period
Asset Indicator 171 1 =V, D, I, or Space
Asset Code 172 10
Asset Sub-code 182 5
Conversion Code 187 5
Conversion Rate 192 18 9 integer and 9 decimal
Other Amount 210 18 15 integer and 3 decimal
Other Amount Dec. 228 1
Places
Cleardown 229 5
Filler 234 4
Next Period 238 1 Leave blank
Reversal
Text Linked 239 1 Leave blank
Rough Book Flag 240 1 Leave blank
In Use Flag 241 1 Leave blank
Analysis Code 0 257 15
Analysis Code 2 272 15
Analysis Code 3 287 15
Analysis Code 4 302 15
Analysis Code 5 317 15
Analysis Code 6 332 15
Analysis Code 7 347 15
Analysis Code 8 362 15
Analysis Code 9 377 15
Posting date 392 8 For rough journals:
date when un-roughed
(Generated by JI=Journal Import)
Update Order Bal. 400 1 Leave blank
Ind.
Filler 401 112 Leave blank
Allocation in 401 001
progress
Hold Reference 402 005
Hold operator ID 407 003
Budget Account 410 015
Allocation Marker 425 003
ID
Allocation Marker 428 008
Date
Filler 436 077

SunSystems 4 – Technical Reference Manual Page 453 of 455


Technical Reference Manual
Appendix E: Limits in SunSystems

The following is a list of potential restrictions not obvious to users of SunSystems.


This list should not however be taken as definitive, as other restrictions may apply which are not
listed here.

Journal Import
The maximum number of lines in a journal is 9999999. If this limit is reached Journal Import will
start again at Journal line number 0000001 which potentially could cause a duplicate key error.

Ledger Revaluation
Within one account more than 200 different combinations of analysis codes, conversion code,
asset code and asset indicator may result in more than one revaluation record being posted for
each combination.

Account Listing
Maximum of 50 conversion codes.

Account Inquiry and Account Allocation


A maximum of 14 conversion codes for any single account can be displayed and a maximum of
999999 transactions per account, although the sequencing function uses a COBOL sort routine
which may be Operating System dependent.

Financial Tables
Maximum of 500 table rows and 50 table columns.

Purchase Order Processing


999 is the maximum number of lines per order. The maximum descriptive lines per detail line is 52
(A-Z, a-z). The maximum split lines per detail line is 9.

Sales Order Processing


999 is the maximum number of lines per order. The maximum descriptive lines per detail line is
2500 (AA-zz). The maximum split lines per detail line is 99.

Inventory Control
A maximum of 9999 lines per Movement.

Stock Take
Each stock take generated is limited to 9000 lines (0001 - 9000). If one stock take is longer than
9000 lines a new stock take is automatically generated. Line numbers 9001 - 9999 are reserved
for creating movements.

Standard Macro Definition Format


There is a maximum of 10000 lines per macro, a maximum of 10 variables per macro and the limit
of macros allowed is 200.

SunSystems 4 – Technical Reference Manual Page 454 of 455


File Size Limits
The maximum sizes of files available in SunSystems on various platforms are listed below. You
should ensure that your files do not reach the maximum sizes listed. Regular use of PC=Period
Cleardown helps reduce file size. To prevent files reaching maximum size limits you may also
want to use more than one database.
Maximum known file sizes available in SunSystems on various platforms are:
MS DOS/MS Windows
Current versions of Microfocus COBOL limit the size of indexed files to 1 gigabyte.
Btrieve
Btrieve limits files to a size of 4 gigabytes.
UNIX
There is a generic UNIX constraint which limits files to a size of 2 gigabytes. You can use the
system parameter ULIMIT if you want to impose a lower limit.

SunSystems 4 – Technical Reference Manual Page 455 of 455

Common questions

Powered by AI

The reference maintenance utility programs manage master data in SunSystems by controlling the updating, transfer, auditing, and reporting of the reference file's data. Programs like Reference Update (SSRU), Reference Reporting (SSRR), Reference Transfer (SSRT), and Reference Audit (SSRA) treat all record types consistently using layout files to differentiate them. These programs follow the instructions encoded into reference layout files, ensuring the data conforms to predefined standards and enabling efficient creation and modification of records .

SunSystems achieves multilingual data validation by storing operator input validation data within message files. This mechanism allows for consistent interpretation and validation of inputs across different languages, enabling global usability while reducing localization errors. The relationship ensures that despite language barriers, input validation remains uniform, enhancing system cohesiveness and user experience in diverse linguistic environments .

Failure to adhere to the standards for reference record types in SunSystems can result in significant data integrity issues, leading to errors in data retrieval and reporting. Non-compliance may cause conflicts with existing record types, faulty processing, and possible data corruption. Additionally, it could hinder interoperability with other systems and lead to mismanagement of routing parameters and templates, resulting in operational inefficiencies and increased labor for troubleshooting and corrections .

The SZMR program in SunSystems facilitates the conversion of message files between SunSystems format and text format. The process involves using commands specific to the type of message file (SS, SA, or SB) and the language number. The conversion features an output file generation that doesn't alter the input file directly. Users rely on this output for amendments and reconversion to SunSystems format, ensuring that the message files remain functional for program operations. This systematic approach underpins effective message file management .

Creating new reference records in SunSystems involves adhering to specific standards that ensure consistency and integrity of the data. Each reference record type must have a unique three-character code forming the primary portion of the record key. New record types should be developed with existing templates and layout files, ensuring the use of routing parameters for each maintenance function. Developers must avoid using predefined record types by SunSystems, and follow guidelines for organizing and storing reference data logically and efficiently .

In SunSystems, version management is crucial when modifying message files to ensure compatibility and correctness in message display and interpretation across different software releases. Modifications require translating files between SunSystems and text format using the SZMR program. Importantly, the version of SZMR must be aligned with the specific software release being handled to avoid errors and maintain system stability. This systematic handling of versions prevents discrepancies in data processing and message validation .

Transfer records in SunSystems are utilized to import and export reference records to and from the system. They are an option in most reference maintenance screens, allowing for the seamless movement and management of data. The layout of records in the transfer file is akin to the original reference record, with specific differences to facilitate transfer operations. Operators can select the transfer format, which makes the process flexible and efficient, ensuring accurate data handling across different systems .

Message files in SunSystems contain the messages displayed on-screen, whether as whole lines or variable length messages. They may also contain validation data for interpreting operator input in different languages. To modify the message files, they must be converted from SunSystems format to text format using the SZMR program, edited with a text editor cautiously to avoid introducing control characters, and then converted back to SunSystems format. The version of SZMR used must be compatible with the software release being amended .

The 'Filler' field in SunSystems record layouts organizes data and maintains the structural integrity of a record. Although often ignored, it occasionally holds important metadata like the system update dates. Proper management involves ensuring it doesn't disrupt vital data fields and understanding its role in data import formats like NDF and FLF to avoid structural inconsistencies and potential processing errors .

Layout files in SunSystems serve as a link between the data on reference records and their corresponding maintenance screens. They define the characteristics such as format, key fields, and total fields of each record type, differentiating them during operations. Reference maintenance programs utilize these files to enforce data integrity and support correct data display and processing on the user screens, thus acting as blueprints for efficient data management .

You might also like