<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/da/onlinemanual/000101" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Variables</Title>
		<Keyword ContextSensitive="No"><Level1>variable</Level1>
		</Keyword>
	</Header>
	<AimSection><Paragraph class="Default">This document describes the predefined variables that are available in the Exchange <Link href="/baanerp/tt/glossary/glossary#100004" role="glossary">module</Link>.</Paragraph>
	</AimSection>
	<GeneralSection><List><ListIntro>The following variables are available:</ListIntro>
			<ListItem><Link href="#triton.table" role="internal">triton.table</Link>
			</ListItem>
			<ListItem><Link href="#triton.field" role="internal">triton.field</Link>
			</ListItem>
			<ListItem><Link href="#element.no" role="internal">element.no</Link>
			</ListItem>
			<ListItem><Link href="#ascii.file" role="internal">ascii.file</Link>
			</ListItem>
			<ListItem><Link href="#ascii.file.name" role="internal">ascii.file.name</Link>
			</ListItem>
			<ListItem><Link href="#run.number" role="internal">run.number</Link>
			</ListItem>
			<ListItem><Link href="#try.number" role="internal">try.number</Link>
			</ListItem>
			<ListItem><Link href="#xch.type" role="internal">xch.type</Link>
			</ListItem>
			<ListItem><Link href="#redo.type" role="internal">redo.type</Link>
			</ListItem>
			<ListItem><Link href="#cntl.type" role="internal">cntl.type</Link>
			</ListItem>
			<ListItem><Link href="#import.company" role="internal">import.company</Link>
			</ListItem>
			<ListItem><Link href="#export.company" role="internal">export.company</Link>
			</ListItem>
			<ListItem><Link href="#startup.company" role="internal">startup.company</Link>
			</ListItem>
			<ListItem><Link href="#no.rec.read" role="internal">no.rec.read</Link>
			</ListItem>
			<ListItem><Link href="#no.rec.write" role="internal">no.rec.write</Link>
			</ListItem>
			<ListItem><Link href="#no.err.rejects" role="internal">no.err.rejects</Link>
			</ListItem>
			<ListItem><Link href="#no.cond.rejects" role="internal">no.cond.rejects</Link>
			</ListItem>
			<ListItem><Link href="#no.rec.skip" role="internal">no.rec.skip</Link>
			</ListItem>
		</List>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<Paragraph class="Default">Note that, with the exception of import.company, export.company and startup.company, the variables are implemented as a define, and cannot directly be used in queries, for example do not write: where daxch008.runn = :run.number but write instead: where daxch008.runn = :1 wherebind (1, run.number)</Paragraph>
		</Note>
	</GeneralSection>
	<GeneralSection ID="triton.table"><SectionTitle>triton.table</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME triton.table</Paragraph>
		<Paragraph class="Default">TYPE string</Paragraph>
		<Paragraph class="Default">FORMAT ppmmmnnn pp=package mmm=module nnn=table number</Paragraph>
		<Paragraph class="Default">DESCRIPTION The ERP LN table which is currently exported or imported.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="triton.field"><SectionTitle>triton.field</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME triton.field - ERP LN field name</Paragraph>
		<Paragraph class="Default">TYPE string of length 18</Paragraph>
		<Paragraph class="Default">FORMAT ppmmmnnn.cccccccc pp=package mmm=module nnn=table number cccccccc=field code</Paragraph>
		<Paragraph class="Default">DESCRIPTION This variable contains the name of the ERP LN field to which the condition may be corresponding. The field name will contain 8 characters of the table name also eg. tiitm001.item. This is valid only if the condition is used at field relations level.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="element.no"><SectionTitle>element.no</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME element.no - Element number of array</Paragraph>
		<Paragraph class="Default">TYPE numeric</Paragraph>
		<Paragraph class="Default">DESCRIPTION This is the element number of an array, if the ERP LN field accessed by variable 'triton.field' is of type array. This variable along with triton.field specifies the field to be updated using the condition. This field is only valid if the condition is used at field relations level.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="ascii.file"><SectionTitle>ascii.file</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME ascii.file</Paragraph>
		<Paragraph class="Default">TYPE domain daxch.casf</Paragraph>
		<Paragraph class="Default">DESCRIPTION The <Link href="/baanerp/da/glossary/glossary#000001" role="glossary">ASCII file</Link> that is used in the current <Link href="/baanerp/da/glossary/glossary#000032" role="glossary">table relation</Link>.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="ascii.file.name"><SectionTitle>ascii.file.name</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME ascii.file.name</Paragraph>
		<Paragraph class="Default">TYPE domain daxch.path</Paragraph>
		<Paragraph class="Default">DESCRIPTION The <Link href="/baanerp/da/glossary/glossary#000011" role="glossary">physical ASCII file</Link> name (full path) of the sequential file currently being read (import) or written (export)</Paragraph>
	</GeneralSection>
	<GeneralSection ID="run.number"><SectionTitle>run.number</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME run.number</Paragraph>
		<Paragraph class="Default">TYPE domain daxch008.runn</Paragraph>
		<Paragraph class="Default">DESCRIPTION Current <GUIRef href="/baanerp/da/xch/daxch0508m000#daxch008.runn" role="manual">Run Number</GUIRef>.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="try.number"><SectionTitle>try.number</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME try.number</Paragraph>
		<Paragraph class="Default">TYPE domain daxch008.tryn</Paragraph>
		<Paragraph class="Default">DESCRIPTION Current <GUIRef href="/baanerp/da/xch/daxch0508s000#daxch008.tryn" role="manual">Try Number</GUIRef>
		</Paragraph>
	</GeneralSection>
	<GeneralSection ID="xch.type"><SectionTitle>xch.type</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME xch.type</Paragraph>
		<Paragraph class="Default">TYPE domain daxch.txch</Paragraph>
		<Paragraph class="Default">DESCRIPTION The type of exchange.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="redo.type"><SectionTitle>redo.type</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME redo.type</Paragraph>
		<Paragraph class="Default">TYPE domain daxch008.redo</Paragraph>
		<Paragraph class="Default">DESCRIPTION Type of redo taken from form field <GUIRef href="/baanerp/da/xch/daxch0223m000#redo.type" role="manual">Processing Type</GUIRef>.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="cntl.type"><SectionTitle>cntl.type</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME cntl.type</Paragraph>
		<Paragraph class="Default">TYPE domain daxch008.cntl</Paragraph>
		<Paragraph class="Default">DESCRIPTION <GUIRef href="/baanerp/da/xch/daxch0508m000#daxch008.cntl" role="manual">Control Type</GUIRef>
		</Paragraph>
	</GeneralSection>
	<GeneralSection ID="import.company"><SectionTitle>import.company</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME import.company - Company number for import</Paragraph>
		<Paragraph class="Default">TYPE long</Paragraph>
		<Paragraph class="Default">DESCRIPTION This is a numeric field of type 'long'. It contains the company number for which the import is being done. This company number will be as specified on the screen during 'Import Data' program or if not entered there then it will be as specified on batch level. This variable is only valid in conditions used in import.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="export.company"><SectionTitle>export.company</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME export.company - Company number for export</Paragraph>
		<Paragraph class="Default">TYPE long</Paragraph>
		<Paragraph class="Default">DESCRIPTION This is a numeric field of type 'long'. It contains the company number for which the export is being done. This company number will be as specified on the screen during 'Export Data' program or if not entered there then it will be as specified on batch level. This variable is only valid in conditions used in export.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="startup.company"><SectionTitle>startup.company</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME startup.company</Paragraph>
		<Paragraph class="Default">TYPE long</Paragraph>
		<Paragraph class="Default">DESCRIPTION This is a numeric field of type 'long'. It contains the company number from which the run is executed. It is the company in which the log table is updated.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="no.rec.read"><SectionTitle>no.rec.read</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME no.rec.read - Number of records read</Paragraph>
		<Paragraph class="Default">TYPE Numeric(long)</Paragraph>
		<Paragraph class="Default">DESCRIPTION This variable contains the number of records read from the ascii file specified for the batch line. This variable can be useful for conditions to be used for a 'stop mechanism'.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="no.rec.write"><SectionTitle>no.rec.write</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME no.rec.write - Number of records written</Paragraph>
		<Paragraph class="Default">TYPE Numeric(long)</Paragraph>
		<Paragraph class="Default">DESCRIPTION This variable contains the number of written records (inserted or updated) for a batch line from the ascii file specified for the batch line. This variable can be useful for conditions to be used for a 'stop mechanism'.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="no.err.rejects"><SectionTitle>no.err.rejects</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME no.err.rejects - Number of records rejected due to errors</Paragraph>
		<Paragraph class="Default">TYPE Numeric(long)</Paragraph>
		<Paragraph class="Default">DESCRIPTION This variable contains the number of records rejected because of errors like reference does not exist, domain range is invalid, etc. while processing records from an ascii file for the batch line. This variable can be useful for conditions to be used for a 'stop mechanism'.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="no.cond.rejects"><SectionTitle>no.cond.rejects</SectionTitle>
		<Paragraph class="Default">VARIABLE NAME no.cond.rejects - Number of records rejected due to conditions</Paragraph>
		<Paragraph class="Default">TYPE Numeric(long)</Paragraph>
		<List><ListIntro>DESCRIPTION This variable contains the number of records rejected because of conditions like</ListIntro>
			<ListItem>add, overwrite or delete conditions, etc. while processing records from an ascii file for the batch line. This variable can be useful for conditions to be used for a 'stop mechanism'.</ListItem>
		</List>
	</GeneralSection>
	<GeneralSection ID="no.rec.skip"><SectionTitle>no.rec.skip</SectionTitle>
		<Paragraph class="Default">VARIABLE no.rec.skip</Paragraph>
		<Paragraph class="Default">TYPE long</Paragraph>
		<Paragraph class="Default">DESCRIPTION The number of records which are skipped without any action.</Paragraph>
	</GeneralSection>
	<RelatedTopics><SectionTitle>Related topics</SectionTitle>
		<RelTopic><Link href="/baanerp/da/onlinemanual/000100" role="manual">Functions</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/da/onlinemanual/000102" role="manual">Libraries</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
