<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/da/xch/daxch0114m000" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Conditions (daxch0114m000)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><Paragraph class="Default">
                                 Use this session to list the available <Link href="/baanerp/da/glossary/glossary#000009" role="glossary">conditions</Link> for an <Link href="/baanerp/da/glossary/glossary#000003" role="glossary">exchange scheme</Link>.</Paragraph>
		</AimSection>
		<GeneralSection><Paragraph class="Default"><Link href="/baanerp/da/glossary/glossary#000009" role="glossary">conditions</Link> can be used for the import or export of data. The exchange depends on the return value of the set condition.</Paragraph>
			<ProcedureList><ListIntro>To create a <Link href="/baanerp/da/glossary/glossary#000009" role="glossary">condition</Link>, do as follows:</ListIntro>
				<ListItem>Define a unique <Link href="/baanerp/da/glossary/glossary#000009" role="glossary">condition</Link> code, description, and <Link href="/baanerp/da/glossary/glossary#000009" role="glossary">condition</Link> type.</ListItem>
				<ListItem>Define the corresponding domain for <Link href="/baanerp/da/glossary/glossary#000009" role="glossary">conditions</Link> with the Enumerate and Set condition type.</ListItem>
				<ListItem>Click the Text button on the toolbar to start the text editor in order to write the condition script.</ListItem>
				<ListItem>On the <GUIRef href="" role="menu">Specific</GUIRef> menu, click <GUIRef href="" role="manual">Check Syntax of Conditions...</GUIRef> to perform a check.</ListItem>
			</ProcedureList>
			<Paragraph class="Default">If the condition script is written and the check is successfully completed, the <GUIRef href="/baanerp/da/xch/daxch0114m000#txta.yn" role="manual">Script</GUIRef> check box and the <GUIRef href="/baanerp/da/xch/daxch0114m000#daxch014.cmpl" role="manual">Syntax OK</GUIRef> check box are automatically selected.</Paragraph>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<List><ListIntro>If you have started this session by zooming, you can only find and select a record.</ListIntro>
					<ListItem>Predefined functions and variables are available in the <GUIRef href="/baanerp/da/xch/daxch0510s000" role="session">Predefined Functions/Variables (daxch0510s000)</GUIRef> session.</ListItem>
					<ListItem>Set the conditions at table level in the <GUIRef href="/baanerp/da/xch/daxch0521m000" role="session">Table Relations (Import) (daxch0521m000)</GUIRef> details session and the <GUIRef href="/baanerp/da/xch/daxch0531m000" role="session">Table Relations (Export) (daxch0531m000)</GUIRef> session.</ListItem>
					<ListItem>Set the conditions on field level in the <GUIRef href="/baanerp/da/xch/daxch0521m000" role="session">Table Relations (Import) (daxch0521m000)</GUIRef> details session and the <GUIRef href="/baanerp/da/xch/daxch0532m000" role="session">Field Relations (Export) (daxch0532m000)</GUIRef> session.</ListItem>
				</List>
			</Note>
		</GeneralSection>
		<RelatedTopics><SectionTitle>
                                 Related topics
                              </SectionTitle>
			<RelTopic><Link href="/baanerp/basictasks/000001" role="manual">To use an overview session</Link>
			</RelTopic>
			<RelTopic><Link href="/baanerp/basictasks/000035" role="manual">To maintain records in an overview session</Link>
			</RelTopic>
			<RelTopic><Link href="/baanerp/da/onlinemanual/000009" role="manual">To use conditions in the exchange module</Link>
			</RelTopic>
			<RelTopic><Link href="/baanerp/da/onlinemanual/000008" role="manual">To use parameters in a condition script</Link>
			</RelTopic>
			<RelTopic><Link href="/baanerp/da/onlinemanual/000001" role="manual">Introduction to the Exchange module</Link>
			</RelTopic>
			<RelTopic><Link href="/baanerp/da/onlinemanual/000002" role="manual">Introduction to the master data business object</Link>
			</RelTopic>
		</RelatedTopics>
	</HelpTopic>
	<Fields><FieldHelp ID="daxch014.cxch"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Exchange Scheme</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/da/glossary/glossary#000003" role="glossary">exchange scheme</Link> code.</FuncDesc>
			<SimpleSection><Paragraph class="Default">The exchange scheme is created in the <GUIRef href="/baanerp/da/xch/daxch0501m000" role="session">Exchange Schemes (daxch0501m000)</GUIRef> session.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="daxch014.ccon"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Condition</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/da/glossary/glossary#000009" role="glossary">condition</Link> code.</FuncDesc>
			<SimpleSection><Paragraph class="Default">The data exchange process can be manipulated by using various conditions at record level or at field level. Records are updated depending on the values returned by the condition. A condition is defined in a condition script using the text editor.</Paragraph>
				<Paragraph class="Default">This script is written in ERP LN 4GL. Predefined functions available in the <GUIRef href="/baanerp/da/xch/daxch0510s000" role="session">Predefined Functions/Variables (daxch0510s000)</GUIRef> session can be used.</Paragraph>
			</SimpleSection>
			<RelatedTopics><SectionTitle>
                                    Related topics
                                 </SectionTitle>
				<RelTopic><Link href="/baanerp/da/onlinemanual/000009" role="manual">To use conditions in the exchange module</Link>
				</RelTopic>
			</RelatedTopics>
		</FieldHelp>
		<FieldHelp ID="daxch014.dsca"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Description</Title>
			</Header>
			<FuncDesc>Enter a description for the condition.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="daxch014.type"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Type</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/da/glossary/glossary#000009" role="glossary">condition</Link> type.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="daxch014.domn"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Domain</Title>
			</Header>
			<FuncDesc>The corresponding domain of the value that is returned by the <Link href="/baanerp/da/glossary/glossary#000009" role="glossary">condition</Link>.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This field is applicable for conditions with the Enumerate or Set data type. The field appears dimmed for other data types.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="txta.yn"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Script</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, a condition script exists.</FuncDesc>
			<SimpleSection><Paragraph class="Default">A condition script is created using the text editor. Click the Text button on the toolbar to start the text editor.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="daxch014.cmpl"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Syntax OK</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, the condition script is successfully compiled.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Click <GUIRef href="" role="manual">Check Syntax of Conditions...</GUIRef> on the <GUIRef href="" role="menu">Specific</GUIRef> menu to check the condition script. If the check is successfully completed, the check box will automatically be selected.</Paragraph>
			</SimpleSection>
		</FieldHelp>
	</Fields>
	<FormCommands><CommandHelp ID="exec.user.0"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Check Syntax of Conditions...</Title>
			</Header>
			<FuncDesc>Checks the syntax of a selected condition script. If no record is selected, all condition scripts are checked collectively.</FuncDesc>
		</CommandHelp>
		<CommandHelp ID="exec.user.1"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Parameters by Condition</Title>
			</Header>
			<FuncDesc>Creates or changes the parameters in a condition script</FuncDesc>
		</CommandHelp>
	</FormCommands>
</Session>
