2Lawson M3 Java Audit Trail A user is maintaining customer master dataxxxx xxxx xxxxxx xxxx xxxx xxxxxx xxxx xxxx xxxxxx ‘’ ‘’ ‘’ ‘’ ‘’ ‘’ ‘’ ‘’ ‘’Customer Master FileOCUSMAA user can review audit data on an individual fieldDatabase trigger programIf an audited field is updated, a trigger program writes an extra record into a separate audit fileAudit Filein FATDatabaseSchemaWhen a table is being audited, an additional process occurs at the point when the table is updated. A record containing the record image is written to an audit table created specifically for that audit by the FAT Manager. The FAT audit files are stored in a separate database schema (library) from the main M3 database tables.
3Viewing field changes Example with Credit Limit 1 being audited Lawson M3 Java Audit TrailViewing field changesExample with Credit Limit 1 being auditedPress F9 with the cursor in the audited fieldPop-up screen shows previous values
4Lawson M3 Java Audit Trail Overview Used to display changes that are made in a fieldupdate, write, and delete operations can be trailedPrimarily an interactive facility, not a reporting baseF9 key shows recent changesShows information onthe changes madethe user who made the changesthe date/time the changes were madeAudit trail is available on all fields in any file witha unique keya field xxCHID (“Changed By”) that contains the ID of the user who last changed the recordField audit data tracks changes made inside or outside the Lawson M3 application.
5Lawson M3 Java Audit Trail Overview Field auditing begins in the FAT Manager with the creation of an Auditspecify the file and fields to be auditedspecify the events to be audited - add, change, deleteThe FAT Manager creates the necessary system objects that control auditingaudit files, stored in a separate database schema, containingthe audited fields (the before image)unique identification of the updated record (key fields)a unique counter for the updatethe date- & time-stamp of the updatethe type of update operation (add, change, delete)the name of the user who updated the record
6Lawson M3 Java Audit Trail Overview Audit trail data can be viewed in M3 by positioning the cursor in a field and pressing F9a pop-up list of recent changes is displayed, in most recent first sequencebefore and after values of the field are shownonly the before value is stored in the audit tableAudit trail data can also be viewed in the FAT Vieweravailable only to system administratorsiBrix implemented in Workplaceused only for exceptional casesdifficult to search/sequence the data
7Life Cycle Manager or M3 Workplace Lawson M3 Java Audit TrailJava Audit Trail ComponentsM3 BEFATCONFAudit DataFAT ServerFATTESTFATLIVEMVXTEST1ACB2MVXCONFMVXLIVELife Cycle Manager or M3 WorkplacePort 8095FAT ManagerPortThe FAT Manager provides a user interfaceThe FAT Server controlsthe creation of audit filesthe creation of database triggersmanaging queries on audit dataThe FAT Manager is the user interface, available from the Workplace Administration menu, that communicates with the FAT Server.The FAT Server runs as a job in the M3JVA subsystem on the iSeries. One FAT server is required per environment.The FAT database schemas are created to contain audit files and other metadata objects required by FAT.Port
9Starting the FAT Server Lawson M3 Java Audit TrailStarting the FAT ServerEnsure the FAT server is started for the environment whose fields are to be auditedOne FAT server job per M3 environment
10Using FAT Manager to Create a New Audit Lawson M3 Java Audit TrailUsing FAT Manager to Create a New Audit1Choose the System ConfigurationList of audits2Click NewList of M3 files3Choose the file to be audited
11Selecting Fields to be Audited Lawson M3 Java Audit TrailSelecting Fields to be Audited
12Audit Status Audits can be activated or deactivated Lawson M3 Java Audit TrailAudit StatusAudits can be activated or deactivatedthe status is shown in the list of current auditsGreen – activeRed - inactive12
14FAT audit files reside in the separate database schemas Lawson M3 Java Audit TrailJava Audit Trail PartitionsM3 BEM3 WorkplaceMVXLIVE1ACB2FAT ServerFAT ManagerFATLIVEAudit DataMVXCONF1ACB2FAT ServerFATCONFAudit DataMVXTEST1ACB2FAT ServerFAT audit files reside in the separate database schemasFATTESTAudit Data14
15Java Audit Trail Partitions Lawson M3 Java Audit TrailJava Audit Trail PartitionsA partition is a separate table containing audit dataEach audit file can be separately partitionedmanually - when audit information becomes too oldautomatically – if the audit information changesOld partitions can be deleted manuallyM3 WorkplaceFATCONFCustomer Credit Limits (OCUSMA)Price List Details (OPRICL)Item Class Details (MITMAS)
16Java Audit Trail Partitions Lawson M3 Java Audit TrailJava Audit Trail PartitionsM3 WorkplaceSelect the Partitions tabSelect the audit file to be partitioned, then click Modify
17Java Audit Trail Partitions Lawson M3 Java Audit TrailJava Audit Trail PartitionsM3 WorkplaceClick Manual breakNew partition (table) is createdSize column shows no. of rows in old partitionCurrent partition always shows -1