| Report Archiving Rules (ttaad3542m000) |  |
| You can use this session to specify the Report Archiving Rules. A rule consists of two parts. The first part specifies the criteria to determine whether or not archiving must be carried out for a particular report. The second part offers details about the archive group and splitting of the report. Splitting a Report Archive is essential for the reprint process. To be able to reprint, for example, one particular invoice of a customer, the report must be split on the invoice number. You can define multiple archive rules for the same report. In this case, the most specific archive rule has the highest priority. For an example, see the Check Report Archiving Rules (ttaad3442m100) session. The following fields must be defined: Report code: Package Module Report The criteria or conditions are: Specific VRC only Version Release Customer Specific Session Only Module Session Specific Company Only Company Archiving Active Conditional Expression Other properties include the following: Report Archive Group Split Expression Related topics ERP LN Report Archive
Fields | Description
Package | The ERP LN package code. Examples: td ( ERP LN Order Management) ti ( ERP LN Manufacturing) tt ( Tools )
Module | The ERP LN module code. Examples for package td ( ERP LN Order Management): tdpur (Purchase Control) tdsls (Sales Control)
Report | The ERP LN report code Example for package ci, module sli ( ERP LN Central Invoicing): cisli220011000 (Invoices)
Specific VRC only | Select this check box if the rule is only set for one specific Package VRC. This can be important for a customized report. A customized report stored in a specific Package VRC can have a deviating split expression for example. If selected, you must specify the Package VRC.
Version | The version part of the package VRC. Example for package td ( ERP LN Order Management): P V R C td B61
Release | The Release part the Package VRC. Example for td ( ERP LN Order Management): P V R C td B61 a
Customer | The Customer part of the Package VRC. Example for td ( ERP LN Order Management): P V R C td B61O a cus
Specific Session Only | Select this check box if the rule is only set for one particular session. This can be important because a particular report can be linked to multiple sessions. If selected, you must specify a Session code.
Module | The module part of the session code: Example for package ci (Central Invoicing): ci sli (Sales Invoicing)
Session | The session part of the session code: Example for package / module cisli (Central Invoicing, Sales Invoicing): cisli2200m000 (Print Invoices)
Specific Company Only | Select this check box if the rule is only set for one particular company. If selected, you must specify a company number.
Company | The company number. Example: 200 (Company 200)
Split Expression | The split expression is used to split up a Report Archive into seperate Report pages. A good example of a split expression is the "invoice number" for the "Print Invoices" report. In this case the Invoices Archive is split up on invoice number. As a result, every invoice is stored in a seperate file. By having seperate files per invoice, you can reprint a single invoice. The split expression is executed when the report is printed and must return a string (alphanumeric) value. In an expression, you can use any tablefield or variable that is used in the report. Note: It is useful to specify one of the four keyword expressions with the same value as the split expression. To find later on, for example, a particular invoice number in the Invoices Archive to reprint the archive, you can search on Keyword Invoice number. Example: In the Central Invoicing (ci) package, the sales invoices are stored in the Sales invoices (cisli205) table. The Invoice number in that table is made up from three seperate fields: Financial company (cisli205.sfcp) Sales invoice transaction type (cisli205.ityp) Sales invoice document number (cisli205.idoc) The following expression composes the invoice number to split the Invoice Archive on the invoice number: cisli205.sfcp & cisli205.ityp & cisli205.idoc Explanation: The Financial company and the Sales invoice transaction type and the Sales invoice document number are concatenated, resulting in a unique invoice number.
Report Archive Group | The Report Archive Group, for details see Report Archive Groups (ttaad3541m000)
Archiving Active | Archiving active: You can choose one of the following options: Yes: Archiving is always carried out for this report No: No archiving is carried out for this report Conditional: Archiving for this report is carried out conditionally If you select conditional archiving, you must specify a conditional expression.
Conditional Expression | This conditional expression will be compiled and evaluated when the report is printed. This expression will return a Boolean value. True means: Archive False means: Do not Archive Examples: strip(spool.device) = "INVOICE" (Archive only when printed to printer INVOICE) strip(spool.device) <> "D" and strip(spool.device) <> "D66" (Do not archive when printed to display printers D or D66). draft.print <> tcyesno.yes (Do not archive the draft print of an invoice (Report cisli220011000).