<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tt/onlinemanual/100110a" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Configuration</Title>
		<Keyword ContextSensitive="No"><Level1>Archiving</Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Reporting</Level1>
		</Keyword>
	</Header>
	<GeneralSection ID=""><Paragraph class="Default">Before you can start to archive and reprint reports, you must configure the ERP LN Report Archive. For example, you must define the basic parameters for the archive and you must specify which reports must be archived.</Paragraph>
		<ProcedureList><ListIntro>To configure the ERP LN Report Archive, take the following steps:</ListIntro>
			<ListItem><Link href="#A1" role="internal">Create tables for the Report Archive</Link>
			</ListItem>
			<ListItem><Link href="#A2" role="internal">Define Report Archiving parameters</Link>
			</ListItem>
			<ListItem><Link href="#A3" role="internal">Define Report Archive Groups</Link>
			</ListItem>
			<ListItem><Link href="#A4" role="internal">Specify the reports to be archived (define Report Archiving Rules)</Link>
			</ListItem>
		</ProcedureList>
		<Paragraph class="Default">After you complete the configuration steps, you can check the Report Archiving Rules. In other words, you can verify, for various run time settings, whether a report will actually be archived. Refer to <Link href="#A5" role="internal">Check Report Archiving Rules</Link> for details.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="A1"><SectionTitle>Create tables</SectionTitle>
		<Paragraph class="Default">Use the <Link href="/baanerp/tt/aad/ttaad4100" role="session">General Table Maintenance (ttaad4100 )</Link> session to create the following tables:</Paragraph>
		<List><ListIntro>in company 000 only:</ListIntro>
			<ListItem>Report Archiving Parameters (ttaad340)</ListItem>
			<ListItem>Report Archive Groups (ttaad341)</ListItem>
			<ListItem>Report Archiving Rules (ttaad342)</ListItem>
		</List>
		<List><ListIntro>in all companies where reports must be archived:</ListIntro>
			<ListItem>Archived Reports (ttaad345) Create this table also for company 000 if you want to archive <GUIRef href="/baanerp/tt" role="package">Tools</GUIRef> reports.</ListItem>
		</List>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<Paragraph class="Default">To create tables for a company, you must log on with a user account that belongs to the package combination to which the company is linked.</Paragraph>
			<Paragraph class="Default">For example: company 000 is linked to package combination b61a. To create tables for company 000, log on with a user account that belongs to this package combination.</Paragraph>
			<Paragraph class="Default">To find out to which package combination a user or a company is linked, use the <Link href="/baanerp/tt/aad/ttaad2500m000" role="session">User Data (ttaad2500m000)</Link> and <Link href="/baanerp/tt/aad/ttaad1100m000" role="session">Companies (ttaad1100m000)</Link> sessions.</Paragraph>
		</Note>
	</GeneralSection>
	<GeneralSection ID="A2"><SectionTitle>Define Report Archiving Parameters</SectionTitle>
		<Paragraph class="Default">Use the <Link href="/baanerp/tt/aad/ttaad3140s000" role="session">Report Archiving Parameters (ttaad3140s000)</Link> session to define the basic parameters, such as the directory where the reports must be archived, for the report archive.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="A3"><SectionTitle>Define Report Archive Groups</SectionTitle>
		<Paragraph class="Default">Use the <Link href="/baanerp/tt/aad/ttaad3541m000" role="session">Report Archive Groups (ttaad3541m000)</Link> session to create one or more Report Archive Groups. You can use Report Archive Groups to group reports of the same type, for example, Sales Invoices and Purchase Orders.</Paragraph>
		<Paragraph class="Default">In the file system, you can store the archived reports by Report Archive Group: the archive folder specified in the <Link href="/baanerp/tt/aad/ttaad3140s000" role="session">Report Archiving Parameters (ttaad3140s000)</Link> session usually contains one or more subdirectories for each Report Archive Group.</Paragraph>
		<Paragraph class="Default">This enables you to maintain an overview of the archive and improves the file system performance. Most operating systems begin to respond more slowly if a large number of files are stored in a single directory.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="A4"><SectionTitle>Specify the reports to be archived</SectionTitle>
		<Paragraph class="Default">Use the <Link href="/baanerp/tt/aad/ttaad3542m000" role="session">Report Archiving Rules (ttaad3542m000)</Link> session to define rules that specify which reports must be archived.</Paragraph>
		<List><ListIntro>In a rule you must do the following:</ListIntro>
			<ListItem>Specify the criteria that determine whether a specific report is archived.</ListItem>
			<ListItem>Link the report to a Report Archive Group.</ListItem>
			<ListItem>Specify how the report must be split when the report is archived.</ListItem>
		</List>
		<List><ListIntro>You can define multiple rules for the same report. For example:</ListIntro>
			<ListItem>The Sales Invoice report must always be archived.</ListItem>
			<ListItem>The Sales Invoice report must not be archived if the report is printed in company 755 (test company).</ListItem>
		</List>
		<Paragraph class="Default">As a result, the Sales Invoice report is always archived, unless the report is printed in company 755.</Paragraph>
		<Paragraph class="Default">For details on rules, and the way in which multiple rules for the same report are evaluated, refer to the online Help of the <Link href="/baanerp/tt/aad/ttaad3542m000" role="session">Report Archiving Rules (ttaad3542m000)</Link> session and the <Link href="/baanerp/tt/aad/ttaad3442m100" role="session">Check Report Archiving Rules (ttaad3442m100)</Link> session.</Paragraph>
		<Paragraph class="Default">For details on report splitting, refer to: <Link href="/baanerp/tt/onlinemanual/100110d#D7" role="manual">Report splitting</Link> and to the online Help of the <Link href="/baanerp/tt/aad/ttaad3542m000" role="session">Report Archiving Rules (ttaad3542m000)</Link> session.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="A5"><SectionTitle>Check Report Archiving Rules</SectionTitle>
		<Paragraph class="Default">You can use the <Link href="/baanerp/tt/aad/ttaad3442m100" role="session">Check Report Archiving Rules (ttaad3442m100)</Link> session to test the effect of the Report Archiving Rules that were defined. You can, for example, verify for various runtime settings whether a report will actually be archived.</Paragraph>
		<Paragraph class="Default">This session is particularly useful if you defined various rules for the same report code.</Paragraph>
		<ExampleSection><SectionTitle>
                                 Example
                              </SectionTitle>
			<List><ListIntro>You defined the following rules for the SALES ORDER report:</ListIntro>
				<ListItem>all companies/sessions/VRCs: Archiving on</ListItem>
				<ListItem>company 100/all sessions/all VRCs: Archiving off</ListItem>
				<ListItem>all companies/session X/all VRCs: Archiving on</ListItem>
			</List>
			<Paragraph class="Default">You can use the <Link href="/baanerp/tt/aad/ttaad3442m100" role="session">Check Report Archiving Rules (ttaad3442m100)</Link> session to check, for example, whether the SALES ORDER report will be archived when the report is printed in company 100, using session X.</Paragraph>
			<Paragraph class="Default">In this example, the report will indeed be archived because, according to the priority rules, the session is more important than the company number.</Paragraph>
		</ExampleSection>
		<Paragraph class="Default">For details about the evaluation of report archiving rules, refer to the online help of the <Link href="/baanerp/tt/aad/ttaad3442m100" role="session">Check Report Archiving Rules (ttaad3442m100)</Link> session.</Paragraph>
	</GeneralSection>
</ManualTopic>
