<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tt/EnterpriseStudio/onlinemanual/rpt_create_report_libraries" xml:lang="en" UserLevel="Expert">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">To create report libraries</Title>
		<Keyword ContextSensitive="No"><Level1>Reporting</Level1>
			<Level2>report libraries</Level2>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Reporting</Level1>
			<Level2>reports</Level2>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Reporting</Level1>
			<Level2>
                                    Reporting Studio
                                 </Level2>
		</Keyword>
	</Header>
	<ProcedureSection><ProcIntro><Paragraph class="Default">To create a report library, you must first create an initial report library on the ERP LN server. Subsequently, you must complete the new library in the Infor Reporting Studio. For details, see the procedure steps.</Paragraph>
		</ProcIntro>
		<Steps><StepsIntro>To create a report library:</StepsIntro>
			<Step><StepTitle>Create an initial report library</StepTitle>
				<ProcedureList><ListIntro>To create an initial report library:</ListIntro>
					<ListItem>Start the <GUIRef href="/baanerp/tt/adv/ttadv3530m000" role="session">Reports (ttadv3530m000)</GUIRef> session. Make sure you select the proper development VRC as your current package VRC.</ListItem>
					<ListItem>Click <GUIRef href="" role="command" Update="No">New</GUIRef>. A question "Start report generator?" is displayed.</ListItem>
					<ListItem>Click <GUIRef href="" role="command">No</GUIRef>. The <GUIRef href="/baanerp/tt/adv/ttadv3130s000" role="session">Reports (ttadv3130s000)</GUIRef> details session starts.</ListItem>
					<ListItem>Enter the module and report code and the description for the new report library. In the <GUIRef href="/baanerp/tt/adv/ttadv3130s000#ttadv330.zf_rept" role="manual" Update="No">Report Type</GUIRef> field, select "Report Library".</ListItem>
					<ListItem>Save the new report library and close the details session.</ListItem>
				</ProcedureList>
				<Paragraph class="Default">The initial report library is stored in the report sources folder and has a ".rptlibrary" filename extension. The following code shows an example of the content of an initial report library.</Paragraph>
				<CodeBlock space-and-orientation="indented-estimated">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;library xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.6" id="1"&gt;
        &lt;property name="createdBy"&gt;ERPLN akoster&lt;/property&gt;
        &lt;property name="units"&gt;mm&lt;/property&gt;
        &lt;property name="comments"&gt;Copyright (c) 2007 &amp;lt;&amp;lt;Infor Global Solutions&gt;&gt;&lt;/property&gt;
        &lt;property name="theme"&gt;defaultTheme&lt;/property&gt;
        &lt;themes&gt;
                &lt;theme name="defaultTheme" id="2"/&gt;
        &lt;/themes&gt;
        &lt;page-setup&gt;
                &lt;simple-master-page name="NewSimpleMasterPage" id="3"/&gt;
        &lt;/page-setup&gt;
&lt;/library&gt;</CodeBlock>
			</Step>
			<Step><StepTitle>Transfer the report library to your client PC</StepTitle>
				<List><ListIntro>Before you can edit a report library in Reporting Studio, you must transfer the report library to your client PC:</ListIntro>
					<ListItem>If SCM is not active, for example if ERP LN runs on a Windows platform, you must export the report library before you can edit it.</ListItem>
					<ListItem>If SCM is active, you must check out and export the report library before you can edit it.</ListItem>
				</List>
				<ProcedureList><ListIntro>To transfer a report library to your client PC:</ListIntro>
					<ListItem>In the <GUIRef href="/baanerp/tt/adv/ttadv3530m000" role="session">Reports (ttadv3530m000)</GUIRef> session, take one of the following steps: <List><ListItem>If SCM is active, select the report library and click <GUIRef href="/baanerp/tt/adv/ttadv3530m000#exec.user.6" role="command">Check-Out</GUIRef>.</ListItem>
							<ListItem>If SCM is not active, select the report library and, on the <GUIRef href="" role="menu">Specific</GUIRef> menu, click <GUIRef href="/baanerp/tt/adv/ttadv3530m000#export.rpt.file" role="command" Update="No">Export RPT file...</GUIRef>.</ListItem>
						</List> The <GUIRef href="" role="manual">Export/import RPT file</GUIRef> dialog appears.</ListItem>
					<ListItem>In the <GUIRef href="" role="manual">Export to</GUIRef> field, enter the destination directory and file name. The default export destination is the ${BSE_TMP} directory on your client PC.</ListItem>
					<ListItem>Click <GUIRef href="" role="manual">Continue</GUIRef> to transfer the report library.</ListItem>
				</ProcedureList>
			</Step>
			<Step><StepTitle>Edit the report library</StepTitle>
				<Paragraph class="Default">Start Reporting Studio and open the report library. Enter the desired code in the library. You can, for example, define functions you want to share in multiple reports.</Paragraph>
				<Paragraph class="Default">For details, refer to the Reporting Studio documentation.</Paragraph>
			</Step>
			<Step><StepTitle>Upload the report library into the ERP LN data dictionary</StepTitle>
				<List><ListIntro>Once you have completed a report library, you must upload the report library into the data dictionary on the ERP LN server:</ListIntro>
					<ListItem>If SCM is not active, you must import the report library on your ERP LN server.</ListItem>
					<ListItem>If SCM is active, you must import and check in the report library.</ListItem>
				</List>
				<ProcedureList><ListIntro>To upload a report library:</ListIntro>
					<ListItem>Start the <GUIRef href="/baanerp/tt/adv/ttadv3530m000" role="session">Reports (ttadv3530m000)</GUIRef> session.</ListItem>
					<ListItem>Take one of the following steps: <List><ListItem>If SCM is active, select the report library concerned and click <GUIRef href="/baanerp/tt/adv/ttadv3530m000#exec.user.7" role="command">Check-In</GUIRef>.</ListItem>
							<ListItem>If SCM is not active, select the report library concerned and, on the <GUIRef href="" role="menu">Specific</GUIRef> menu, click <GUIRef href="/baanerp/tt/adv/ttadv3530m000#import.rpt.file" role="command" Update="No">Import RPT file...</GUIRef>.</ListItem>
						</List> The <GUIRef href="" role="manual">Export/import RPT file</GUIRef> dialog appears.</ListItem>
					<ListItem>In the <GUIRef href="" role="manual">Import from</GUIRef> field, enter the directory and file name of the exported/checked out report library on your client PC.</ListItem>
					<ListItem>Click <GUIRef href="" role="manual">Continue</GUIRef> to import the report library.</ListItem>
					<ListItem>If SCM is active, a question "Do you want to check in this Report?" is displayed. Click <GUIRef href="" role="manual">Yes</GUIRef> and enter a revision text to check in the report library.</ListItem>
				</ProcedureList>
			</Step>
		</Steps>
	</ProcedureSection>
	<GeneralSection><SectionTitle>To link a report library to a report design</SectionTitle>
		<Paragraph class="Default">To share the functionality in a report library, you can link the library to multiple report designs. For details, refer to the Reporting Studio documentation.</Paragraph>
		<ExampleSection><SectionTitle>
                                    Example- code in a report design to link report libraries</SectionTitle>
			<Paragraph class="Default">The following code shows how the ChartDataFinal and GeneralFinal report libraries are linked to a report design.</Paragraph>
			<CodeBlock space-and-orientation="indented-estimated">&lt;list-property name="libraries"&gt;
        &lt;structure&gt;
            &lt;property name="fileName"&gt;ChartDataFinal.rptlibrary&lt;/property&gt;
            &lt;property name="namespace"&gt;ChartDataFinal&lt;/property&gt;
        &lt;/structure&gt;
        &lt;structure&gt;
            &lt;property name="fileName"&gt;GeneralFinal.rptlibrary&lt;/property&gt;
            &lt;property name="namespace"&gt;GeneralFinal&lt;/property&gt;
        &lt;/structure&gt;
 &lt;/list-property&gt; 
</CodeBlock>
		</ExampleSection>
	</GeneralSection>
	<RelatedTopics><SectionTitle>
                                 Related topics
                              </SectionTitle>
		<RelTopic><Link href="/baanerp/tt/EnterpriseStudio/onlinemanual/rpt_create_query_based_reports" role="manual">To create query-based reports</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tt/EnterpriseStudio/onlinemanual/rpt_create_resource_files" role="manual">To create resource files</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tt/EnterpriseStudio/onlinemanual/rpt_query_based_reporting" role="manual">Query-based Reporting</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
