<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tt/EnterpriseStudio/onlinemanual/report_scripts" xml:lang="en" TopicType="Overview">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Report scripts</Title>
		<Keyword ContextSensitive="No"><Level1>
                                    Infor ERP LN Development Tools
                                 </Level1>
			<Level2>report script</Level2>
		</Keyword>
	</Header>
	<GeneralSection><Paragraph class="Default">A report script allows you to customize the processing of the report.</Paragraph>
		<List><ListIntro>Report scripts allow you to:</ListIntro>
			<ListItem>Perform additional queries</ListItem>
			<ListItem>Calculate complex print expressions</ListItem>
			<ListItem>Aggregate complex print expressions</ListItem>
			<ListItem>Update rows in the database</ListItem>
			<ListItem>Add fields from tables that are not queried by the program script, when you are not able to manipulate the program script</ListItem>
			<ListItem>Manipulate pre-defined variables in the report, such as if the layout should be printed or not.</ListItem>
		</List>
	</GeneralSection>
	<GeneralSection><SectionTitle>Report script structure</SectionTitle>
		<Paragraph class="Default">You program report scripts in the same way as you program 4GL program scripts, except that report scripts use different event sections and some special functions.</Paragraph>
		<Paragraph class="Default">A report script consists of one or more event sections in which you program actions to be performed at particular states of execution of the report. The statements programmed in a report script section consist of a combination of 3GL language statements and report script functions.</Paragraph>
		<List><ListIntro>Report scripts support the following event sections:</ListIntro>
			<ListItem>program sections, e.g. declaration, before.program, and after.program.</ListItem>
			<ListItem>report sections that correspond to a layout, e.g. before.report, header, and detail. Report sections can be processed before a layout, or after a layout.</ListItem>
			<ListItem>text field sections</ListItem>
		</List>
		<Paragraph class="Default">The report script is compiled automatically with the report when you compile the report.</Paragraph>
		<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
			<Paragraph class="Default">For details on Report scripts, refer to "Report Script Features" in the <DocRef>ERP LN 6.1 Programmer's Guide</DocRef>. Predefined variables used in a report are also listed.</Paragraph>
		</Note>
	</GeneralSection>
	<GeneralSection><SectionTitle>To create report scripts</SectionTitle>
		<Paragraph class="Default">You can create and edit report scripts in the <GUIRef href="" role="manual">Reports (ttadv3530m000)</GUIRef> session.</Paragraph>
		<List><ListIntro>For more information, refer to the following topics in the Web Help:</ListIntro>
			<ListItem>Reports Overview</ListItem>
		</List>
	</GeneralSection>
</ManualTopic>
