SunSystems 4 Technical Reference Guide
SunSystems 4 Technical Reference Guide
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
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.
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.
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
Control
Program
SSMM
File
Screen Report
Handler SunSystems SunAccount SunBusiness SunSystems
Handler Handler
Control Utilities Applications Applications Applications
SSSH35 SSRH
SSFH
CUI
Panels Thin Client
Accept & Query
Calls Host
Display SSSHQY
SSHPN SSSHHOST
SSSHAD
GUI
Miscellaneous
Functions
SSSHGM
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.
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.
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.
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.
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.
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.
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.
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.
Column 1.....................……………………...............…….....80
(Line 1) DDDDD...DDDDD
************ Page headings (if relevant) ***********
(Line 3-6) -------------------------------------------------------------------------------------
Body of screen
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.
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.
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.
If you remove the pipes from the template, then the JL=Journal Listing screen will appear as
follows in the GUI version:
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.
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.
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
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.
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.
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:
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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’.
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
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.
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.
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 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.
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].
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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:
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.
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
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 - - - -
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 - - - -
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 - - - -
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 - - - -
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 - - - -
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 - - - -
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 - - - -
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 - - - -
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 - - -
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
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 - - - -
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
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 - - - -
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
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 - - - -
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 - - - -
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 - - - -
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
____
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.
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 - - - -
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 - - - -
38
Data 339
____
Ledger Archive Control Record, see [Link], SQL Table Name SALHMSC:
Again there is one extra field in the SQL table, defined as above.
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
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 - - - -
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 - - - -
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 - - - -
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
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
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 -
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
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.
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.
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
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 - - - - -
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
____
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 - - - -
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
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 - - - -
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 - - - -
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 - - - -
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 - - - -
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
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 - - - -
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 - - - - -
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
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 - -
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
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 - - - - -
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
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 - - - - -
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
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
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
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
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
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 - - -
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
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
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
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
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
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 - - -
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
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
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
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
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 - - - -
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 - - -
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
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
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
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
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
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 - - -
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 - - - -
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
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 - - - -
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 - - - -
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
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 - - - -
Note: Oracle (O) fields have different datatype to SQL Server fields (S)
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
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
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 - - - -
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 - - - -
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) -
Note: Oracle (O) fields have different datatype to SQL Server fields (S).
Note: Oracle (O) fields have different datatype to SQL Server fields (S).
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 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 -
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.
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.
Note: You can use OGRNI to update the status of Purchase Order Detail to goods
matched and import GRN details.
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.
Note: You can use DINVI to update the status of existing Invoice Detail lines.
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.
Control Record
This is not required for JI=Journal Import, although a warning message appears if none is found.
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
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.
Financial Tables
Maximum of 500 table rows and 50 table columns.
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.
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 .