<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tt/onlinemanual/session_based_reporting" xml:lang="en" UserLevel="Expert">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Session-based reporting</Title>
		<Keyword ContextSensitive="No"><Level1>Reporting</Level1>
			<Level2>session-based reporting</Level2>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Reporting</Level1>
			<Level2>reports</Level2>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Reporting</Level1>
			<Level2>
                                 Reporting Studio
                              </Level2>
		</Keyword>
	</Header>
	<GeneralSection><Paragraph class="Default">Most reports in ERP LN are 4GL reports. These reports consist of a layout part and, optionally, a report script. You can edit these report layouts in the classic report editor. For details, refer to the <DocRef>Infor ERP LN Development Tools 8.x Developer's Guide (U8883 US)</DocRef>.</Paragraph>
		<Paragraph class="Default">
                              ERP LN also supports Report Viewer enabled reports. When printed, these reports are displayed in the ERP LN Report Viewer. Developers can edit these reports in the Reporting Studio Report Designer. The Report Designer offers various useful features to beautify the reports.</Paragraph>
		<Paragraph class="Default">You can convert existing 4GL reports to Report Viewer enabled reports. These converted reports are called session-based reports. The following sections describe how to set up session-based reporting and how to print session-based reports.</Paragraph>
	</GeneralSection>
	<ProcedureSection><SectionTitle>To set up session-based reporting</SectionTitle>
		<Steps><StepsIntro>To set up session-based reporting, complete the following steps:</StepsIntro>
			<Step><StepTitle>Convert the reports to XML report designs</StepTitle>
				<ProcedureList><ListIntro>To convert the reports to XML report designs, complete the following steps:</ListIntro>
					<ListItem>Start the <GUIRef href="/baanerp/tt/adv/ttadv3241m000" role="session">Enable Reports for RPT Design (ttadv3241m000)</GUIRef> session.</ListItem>
					<ListItem><Paragraph class="Default">Enter the required information and click <GUIRef href="/baanerp/tt/adv/ttadv3241m000#exec.cont.process" role="command" Update="No">Convert</GUIRef>.</Paragraph>
						<Paragraph class="Default">For details, refer to the session help.</Paragraph>
					</ListItem>
				</ProcedureList>
				<List><ListTitle>
                                       Note
                                    </ListTitle>
					<ListItem>The generated report designs are stored in the report sources folder and have a ".rptdesign" filename extension.</ListItem>
					<ListItem>Developers can transfer the report designs to their client PCs and beautify the layout of the converted reports in the Reporting Studio. For example, developers can add a graph or a company logo to the report layout. For details, refer to <GUIRef href="/baanerp/tt/EnterpriseStudio/onlinemanual/rpt_create_session_based_reports" role="manual">To create session-based reports</GUIRef> in the <DocRef>Infor ERP LN Development Tools 8.x Developer's Guide (U8883 US)</DocRef>.</ListItem>
					<ListItem>To change the structure of a session-based report, for example to add layouts, input fields, or labels, developers must use the classic report editor. For details, refer to the <DocRef>Infor ERP LN Development Tools 8.x Developer's Guide (U8883 US)</DocRef>.</ListItem>
				</List>
			</Step>
			<Step><StepTitle>Create a Report Viewer device</StepTitle>
				<Paragraph class="Default">To print session-based reports, you need a device that sends the report output to the ERP LN Report Viewer.</Paragraph>
				<ProcedureList><ListIntro>To create a Report Viewer device, complete the following steps:</ListIntro>
					<ListItem>Start the <GUIRef href="/baanerp/tt/aad/ttaad3500m000" role="session">Device Data (ttaad3500m000)</GUIRef> session.</ListItem>
					<ListItem>Add a device with the following properties: <List><ListItem><GUIRef href="/baanerp/tt/aad/ttaad3100s000#ttaad300.devc" role="manual">Device</GUIRef>: RPT</ListItem>
							<ListItem><GUIRef href="/baanerp/tt/aad/ttaad3100s000#ttaad300.desc" role="manual">Description</GUIRef>: Report Viewer</ListItem>
							<ListItem><GUIRef href="/baanerp/tt/aad/ttaad3100s000#ttaad300.devt" role="manual">Device Type</GUIRef>: Rewrite File</ListItem>
							<ListItem><GUIRef href="/baanerp/tt/aad/ttaad3100s000#ttaad300.loca" role="manual">Locale</GUIRef>: &lt;empty&gt;</ListItem>
							<ListItem><GUIRef href="/baanerp/tt/aad/ttaad3100s000#ttaad300.xmli" role="manual">Intermediate File in XML Format</GUIRef>: Yes</ListItem>
							<ListItem><GUIRef href="/baanerp/tt/aad/ttaad3100s000#driver2" role="manual">Driver</GUIRef>: &lt;empty&gt;</ListItem>
							<ListItem><GUIRef href="/baanerp/tt/aad/ttaad3100s000#pcom2" role="manual">Shell Command</GUIRef>: &lt;empty&gt;</ListItem>
							<ListItem><GUIRef href="/baanerp/tt/aad/ttaad3100s000#ttaad300.prog" role="manual" Update="No">4GL Program</GUIRef>: &lt;empty&gt;</ListItem>
							<ListItem><GUIRef href="/baanerp/tt/aad/ttaad3100s000#ttaad300.argu" role="manual" Update="No">Argument</GUIRef>: XML -RPT</ListItem>
							<ListItem><GUIRef href="/baanerp/tt/aad/ttaad3100s000#ttaad300.path" role="manual">Path</GUIRef>: ${HOME}/rpt</ListItem>
						</List>
					</ListItem>
				</ProcedureList>
			</Step>
		</Steps>
	</ProcedureSection>
	<GeneralSection><SectionTitle>To run session-based reports</SectionTitle>
		<ProcedureList><ListIntro>To print a session-based report to the ERP LN Report Viewer, complete the following steps:</ListIntro>
			<ListItem>Start WebTop and log onto your ERP LN server.</ListItem>
			<ListItem>Start the print session to which the report is linked.</ListItem>
			<ListItem>Enter the required selection ranges and print options, and click <GUIRef href="" role="command">Print</GUIRef>. The <GUIRef href="/baanerp/tt/stp/ttstpsplopen" role="session">Select Device (ttstpsplopen )</GUIRef> session starts.</ListItem>
			<ListItem>Select a Report Viewer device and click <GUIRef href="/baanerp/tt/stp/ttstpsplopen#exec.cont.process" role="command">Continue</GUIRef>.</ListItem>
		</ProcedureList>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<Paragraph class="Default">All business logic defined in the session and the original 4GL report is executed. Therefore, the report can be part of the business process. For example, the report can perform transactions in the database or change the status of a record.</Paragraph>
			<Paragraph class="Default">The ERP LN Report Viewer only works with WebTop. WorkTop users cannot print Report Viewer enabled reports.</Paragraph>
			<Paragraph class="Default">From the Report Viewer, you can send a report to, among other things, a printer or a PDF file. For details, refer to <Link href="/baanerp/tt/EnterpriseStudio/onlinemanual/rpt_use_reportviewer" role="manual">To use the Report Viewer</Link>.</Paragraph>
		</Note>
	</GeneralSection>
</ManualTopic>
