<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tt/aad/ttaad3542m000" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Report Archiving Rules (ttaad3542m000)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><Paragraph class="Default">You can use this session to specify the Report Archiving Rules.</Paragraph>
		</AimSection>
		<GeneralSection><Paragraph class="Default"></Paragraph>
			<Paragraph class="Default">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.</Paragraph>
			<Paragraph class="Default">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 <Link href="/baanerp/tt/aad/ttaad3442m100" role="session">Check Report Archiving Rules (ttaad3442m100)</Link> session.</Paragraph>
			<Paragraph class="Default">The following fields must be defined:</Paragraph>
			<Paragraph class="Default">Report code:</Paragraph>
			<List><ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.rpac" role="formfield">Package</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.rmod" role="formfield">Module</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.crep" role="formfield">Report</Link>
				</ListItem>
			</List>
			<Paragraph class="Default">The criteria or conditions are:</Paragraph>
			<List><ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.svrc" role="formfield">Specific VRC only</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.rver" role="formfield">Version</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.rrel" role="formfield">Release</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.rcus" role="formfield">Customer</Link>
				</ListItem>
			</List>
			<List><ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.sses" role="formfield">Specific Session Only</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.smod" role="formfield">Module</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.cses" role="formfield">Session</Link>
				</ListItem>
			</List>
			<List><ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.scmp" role="formfield">Specific Company Only</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.comp" role="formfield">Company</Link>
				</ListItem>
			</List>
			<List><ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.aact" role="formfield">Archiving Active</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.cond" role="formfield">Conditional Expression</Link>
				</ListItem>
			</List>
			<Paragraph class="Default">Other properties include the following:</Paragraph>
			<List><ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.doct" role="formfield">Report Archive Group</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/aad/ttaad3542m000#ttaad342.splf" role="formfield">Split Expression</Link>
				</ListItem>
			</List>
		</GeneralSection>
		<RelatedTopics><SectionTitle>
                                 Related topics
                              </SectionTitle>
			<RelTopic><Link href="/baanerp/tt/onlinemanual/100110" role="manual">ERP LN Report Archive</Link>
			</RelTopic>
		</RelatedTopics>
	</HelpTopic>
	<Fields><FieldHelp ID="ttaad342.rpac"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Package</Title>
			</Header>
			<FuncDesc>The ERP LN package code.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Examples:</Paragraph>
				<Paragraph class="Default">td ( ERP LN Order Management)</Paragraph>
				<Paragraph class="Default">ti ( ERP LN Manufacturing)</Paragraph>
				<Paragraph class="Default">tt ( <GUIRef href="/baanerp/tt" role="package">Tools</GUIRef> )</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.rmod"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Module</Title>
			</Header>
			<FuncDesc>The ERP LN module code.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Examples for package td ( ERP LN Order Management):</Paragraph>
				<Paragraph class="Default">tdpur (Purchase Control)</Paragraph>
				<Paragraph class="Default">tdsls (Sales Control)</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.crep"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Report</Title>
			</Header>
			<FuncDesc>The ERP LN report code</FuncDesc>
			<SimpleSection><Paragraph class="Default">Example for package ci, module sli ( ERP LN Central Invoicing):</Paragraph>
				<Paragraph class="Default">cisli220011000 (Invoices)</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.svrc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Specific VRC only</Title>
			</Header>
			<FuncDesc>Select this check box if the rule is only set for one specific Package VRC.</FuncDesc>
			<SimpleSection><Paragraph class="Default">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.</Paragraph>
				<Paragraph class="Default">If selected, you must specify the Package VRC.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.rver"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Version</Title>
			</Header>
			<FuncDesc>The version part of the package VRC.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Example for package td ( ERP LN Order Management):</Paragraph>
				<Paragraph class="Default">P V R C</Paragraph>
				<Paragraph class="Default">td B61</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.rrel"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Release</Title>
			</Header>
			<FuncDesc>The Release part the Package VRC.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Example for td ( ERP LN Order Management):</Paragraph>
				<Paragraph class="Default">P V R C</Paragraph>
				<Paragraph class="Default">td B61 a</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.rcus"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Customer</Title>
			</Header>
			<FuncDesc>The Customer part of the Package VRC.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Example for td ( ERP LN Order Management):</Paragraph>
				<Paragraph class="Default">P V R C</Paragraph>
				<Paragraph class="Default">td B61O a cus</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.sses"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Specific Session Only</Title>
			</Header>
			<FuncDesc>Select this check box if the rule is only set for one particular session.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This can be important because a particular report can be linked to multiple sessions.</Paragraph>
				<Paragraph class="Default">If selected, you must specify a Session code.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.smod"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Module</Title>
			</Header>
			<FuncDesc>The module part of the session code:</FuncDesc>
			<SimpleSection><Paragraph class="Default">Example for package ci (Central Invoicing):</Paragraph>
				<Paragraph class="Default">ci sli (Sales Invoicing)</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.cses"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Session</Title>
			</Header>
			<FuncDesc>The session part of the session code:</FuncDesc>
			<SimpleSection><Paragraph class="Default">Example for package / module cisli (Central Invoicing, Sales Invoicing):</Paragraph>
				<Paragraph class="Default">cisli2200m000 (Print Invoices)</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.scmp"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Specific Company Only</Title>
			</Header>
			<FuncDesc>Select this check box if the rule is only set for one particular company. If selected, you must specify a company number.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttaad342.comp"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Company</Title>
			</Header>
			<FuncDesc>The company number.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Example:</Paragraph>
				<Paragraph class="Default">200 (Company 200)</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.splf"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Split Expression</Title>
			</Header>
			<FuncDesc>The split expression is used to split up a Report Archive into seperate Report pages.</FuncDesc>
			<SimpleSection><Paragraph class="Default">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.</Paragraph>
				<Paragraph class="Default">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.</Paragraph>
				<Paragraph class="Default">Note:</Paragraph>
				<Paragraph class="Default">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.</Paragraph>
				<Paragraph class="Default">Example:</Paragraph>
				<List><ListIntro>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:</ListIntro>
					<ListItem>Financial company (cisli205.sfcp)</ListItem>
					<ListItem>Sales invoice transaction type (cisli205.ityp)</ListItem>
					<ListItem>Sales invoice document number (cisli205.idoc)</ListItem>
				</List>
				<Paragraph class="Default">The following expression composes the invoice number to split the Invoice Archive on the invoice number:</Paragraph>
				<Paragraph class="Default">cisli205.sfcp &amp; cisli205.ityp &amp; cisli205.idoc</Paragraph>
				<Paragraph class="Default">Explanation:</Paragraph>
				<Paragraph class="Default">The Financial company and the Sales invoice transaction type and the Sales invoice document number are concatenated, resulting in a unique invoice number.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.doct"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Report Archive Group</Title>
			</Header>
			<FuncDesc>The Report Archive Group, for details see <Link href="/baanerp/tt/aad/ttaad3541m000" role="session">Report Archive Groups (ttaad3541m000)</Link>
			</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttaad342.aact"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Archiving Active</Title>
			</Header>
			<FuncDesc>Archiving active:</FuncDesc>
			<SimpleSection><Paragraph class="Default">You can choose one of the following options:</Paragraph>
				<List><ListItem>Yes: Archiving is always carried out for this report</ListItem>
					<ListItem>No: No archiving is carried out for this report</ListItem>
					<ListItem>Conditional: Archiving for this report is carried out conditionally</ListItem>
				</List>
				<Paragraph class="Default">If you select conditional archiving, you must specify a conditional expression.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttaad342.cond"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Conditional Expression</Title>
			</Header>
			<FuncDesc>This conditional expression will be compiled and evaluated when the report is printed. This expression will return a Boolean value.</FuncDesc>
			<SimpleSection><Paragraph class="Default">True means: Archive</Paragraph>
				<Paragraph class="Default">False means: Do not Archive</Paragraph>
				<Paragraph class="Default">Examples:</Paragraph>
				<List><ListItem>strip(spool.device) = "INVOICE" (Archive only when printed to printer INVOICE)</ListItem>
				</List>
				<List><ListItem>strip(spool.device) &lt;&gt; "D" and strip(spool.device) &lt;&gt; "D66" (Do not archive when printed to display printers D or D66).</ListItem>
				</List>
				<List><ListItem>draft.print &lt;&gt; tcyesno.yes (Do not archive the draft print of an invoice (Report cisli220011000).</ListItem>
				</List>
			</SimpleSection>
		</FieldHelp>
	</Fields>
</Session>
