<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tt/ams/ttams3146m000" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Table Field Data Authorizations (ttams3146m000)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><Paragraph class="Default"> 
                                 Use this session to maintain table field data authorizations. This means that you can specify restrictions for normal users that are linked to the role to do database actions on records of a table for a given condition. Table field data authorizations are specified in a table for a range of data by defining a condition. The authorization, which is defined in this session can be an exception or an addition to the authorizations that are defined in the <GUIRef href="/baanerp/tt/ams/ttams3143m000" role="session">Table Field Authorizations (ttams3143m000)</GUIRef> session.</Paragraph>
		</AimSection>
		<GeneralSection><Paragraph class="Default">You can use table field data authorizations to make a table field and to display a field or a hidden field for the normal users that are linked to the role.</Paragraph>
			<Paragraph class="Default">You can define authorizations depending on the data of a table field. For example, a user can be allowed to only insert sales orders with the order number is between 100.000 and 200.000.</Paragraph>
			<Paragraph class="Default">You can specify an authorization level for each condition, for example, the data authorization. This can be another authorization level as the table authorization level, which is defined in the <Link href="/baanerp/tt/glossary/glossary#100002" role="glossary">database table field authorization</Link> sessions. If you have not specified table field data authorizations, the table authorization is the same as the <Link href="/baanerp/tt/glossary/glossary#100002" role="glossary">database table authorization</Link> of the table.</Paragraph>
			<Paragraph class="Default">An overlap can occur between two conditions for the same table with different authorization levels. The most restrictive authorization level is taken in this case.</Paragraph>
			<Paragraph class="Default">For the meaning of the condition within the expression, see the list of expressions below:</Paragraph>
			<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TH rowspan="1" colspan="1">Cond.</TH>
						<TH rowspan="1" colspan="1">Seq.</TH>
						<TH rowspan="1" colspan="1">Field</TH>
						<TH rowspan="1" colspan="1">Operator</TH>
						<TH rowspan="1" colspan="1">Value 1</TH>
						<TH rowspan="1" colspan="1">And/Or/End</TH>
					</TR>
					<TR><TD rowspan="1" colspan="1">1</TD>
						<TD rowspan="1" colspan="1">1</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">equal</TD>
						<TD rowspan="1" colspan="1">1</TD>
						<TD rowspan="1" colspan="1">And</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">1</TD>
						<TD rowspan="1" colspan="1">2</TD>
						<TD rowspan="1" colspan="1">Y</TD>
						<TD rowspan="1" colspan="1">equal</TD>
						<TD rowspan="1" colspan="1">3</TD>
						<TD rowspan="1" colspan="1">Or</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">2</TD>
						<TD rowspan="1" colspan="1">1</TD>
						<TD rowspan="1" colspan="1">Z</TD>
						<TD rowspan="1" colspan="1">equal</TD>
						<TD rowspan="1" colspan="1">4</TD>
						<TD rowspan="1" colspan="1">End</TD>
					</TR>
				</TBODY>
			</TABLE>
			<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TH rowspan="1" colspan="1">Cond.</TH>
						<TH rowspan="1" colspan="1">Seq.</TH>
						<TH rowspan="1" colspan="1">Field</TH>
						<TH rowspan="1" colspan="1">Operator</TH>
						<TH rowspan="1" colspan="1">Value 1</TH>
						<TH rowspan="1" colspan="1">And/Or/End</TH>
					</TR>
					<TR><TD rowspan="1" colspan="1">1</TD>
						<TD rowspan="1" colspan="1">1</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">equal</TD>
						<TD rowspan="1" colspan="1">1</TD>
						<TD rowspan="1" colspan="1">And</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">2</TD>
						<TD rowspan="1" colspan="1">1</TD>
						<TD rowspan="1" colspan="1">Y</TD>
						<TD rowspan="1" colspan="1">equal</TD>
						<TD rowspan="1" colspan="1">3</TD>
						<TD rowspan="1" colspan="1">Or</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">2</TD>
						<TD rowspan="1" colspan="1">2</TD>
						<TD rowspan="1" colspan="1">Z</TD>
						<TD rowspan="1" colspan="1">equal</TD>
						<TD rowspan="1" colspan="1">4</TD>
						<TD rowspan="1" colspan="1">End</TD>
					</TR>
				</TBODY>
			</TABLE>
			<Paragraph class="Default">When specifying these two expressions, they will turn out to be different.</Paragraph>
			<Paragraph class="Default">Expression 1: (X=1 and Y=3) or (Z=4) Expression 2: (X=1) and (Y=3 or Z=4)</Paragraph>
			<Paragraph class="Default">You can define the table field data authorizations for all companies or for a specific company. The authorizations for the specific company have the highest authorities in this case.</Paragraph>
			<Paragraph class="Default">The table field data authorizations are an exception to the database table-field authorizations.</Paragraph>
			<List><ListIntro>You can use the <GUIRef href="" role="menu">Specific</GUIRef> menu to:</ListIntro>
				<ListItem>Delete the table field data authorizations for a range of tables fields.</ListItem>
				<ListItem>Convert the changes of the database table authorizations to the run-time data dictionary. The database-authorization data of the role is stored in the $BSE/lib/db/&lt;first character of role&gt;/&lt;role&gt;.</ListItem>
			</List>
		</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>
		</RelatedTopics>
	</HelpTopic>
	<Fields><FieldHelp ID="ttams346.crol"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Role</Title>
			</Header>
			<FuncDesc>Specifies the code of the <Link href="/baanerp/tt/glossary/glossary#000017" role="glossary">role</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttams200.desc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Role</Title>
			</Header>
			<FuncDesc>The description of the <Link href="/baanerp/tt/glossary/glossary#000017" role="glossary">role</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttams346.allc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">All Companies</Title>
			</Header>
			<FuncDesc> 
                                 If this check box is selected, the authorizations are defined for all companies.</FuncDesc>
			<SimpleSection><Paragraph class="Default">If authorizations are defined for a specific company, as well as for all companies, they can overlap. The authorizations for a specific company have the highest priority.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttams346.comp"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Company</Title>
			</Header>
			<FuncDesc>Specifies the code of the specific <Link href="/baanerp/tt/glossary/glossary#000023" role="glossary">company</Link> for which the <Link href="/baanerp/tt/glossary/glossary#100002" role="glossary">database table-field authorizations</Link> are defined.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttaad100.cpnm"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Company</Title>
			</Header>
			<FuncDesc> 
                                 No Help topic is associated with this item.
                              </FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttams346.fldn"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Field Name</Title>
			</Header>
			<FuncDesc>Specifies the table field for which the <Link href="/baanerp/tt/glossary/glossary#100002" role="glossary">database table</Link> field authorizations are defined.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="tablefield.desc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Field Name</Title>
			</Header>
			<FuncDesc> 
                                 The description or name of the code.
                              </FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttams346.perm"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Authorization</Title>
			</Header>
			<FuncDesc>Specifies the possible table field authorizations.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttams346.autn"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Cond.</Title>
			</Header>
			<FuncDesc>If the expression consists of multiple conditions, the condition sequence-number is specified.</FuncDesc>
			<SimpleSection><Paragraph class="Default">The use of the condition sequence-number in relation to the serial number can be explained by the following examples:</Paragraph>
				<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TH rowspan="1" colspan="1">Cond.</TH>
							<TH rowspan="1" colspan="1">Sern.</TH>
							<TH rowspan="1" colspan="1">Field</TH>
							<TH rowspan="1" colspan="1">Operndr</TH>
							<TH rowspan="1" colspan="1">Value 1</TH>
							<TH rowspan="1" colspan="1">And/Or/End</TH>
						</TR>
						<TR><TD rowspan="1" colspan="1">1</TD>
							<TD rowspan="1" colspan="1">1</TD>
							<TD rowspan="1" colspan="1">X</TD>
							<TD rowspan="1" colspan="1">equal</TD>
							<TD rowspan="1" colspan="1">1</TD>
							<TD rowspan="1" colspan="1">And</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">1</TD>
							<TD rowspan="1" colspan="1">2</TD>
							<TD rowspan="1" colspan="1">Y</TD>
							<TD rowspan="1" colspan="1">equal</TD>
							<TD rowspan="1" colspan="1">3</TD>
							<TD rowspan="1" colspan="1">Or</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">2</TD>
							<TD rowspan="1" colspan="1">1</TD>
							<TD rowspan="1" colspan="1">Z</TD>
							<TD rowspan="1" colspan="1">equal</TD>
							<TD rowspan="1" colspan="1">4</TD>
							<TD rowspan="1" colspan="1">End</TD>
						</TR>
					</TBODY>
				</TABLE>
				<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TH rowspan="1" colspan="1">Cond.</TH>
							<TH rowspan="1" colspan="1">Sern.</TH>
							<TH rowspan="1" colspan="1">Field</TH>
							<TH rowspan="1" colspan="1">Operndr</TH>
							<TH rowspan="1" colspan="1">Value 1</TH>
							<TH rowspan="1" colspan="1">And/Or/End</TH>
						</TR>
						<TR><TD rowspan="1" colspan="1">1</TD>
							<TD rowspan="1" colspan="1">1</TD>
							<TD rowspan="1" colspan="1">X</TD>
							<TD rowspan="1" colspan="1">equal</TD>
							<TD rowspan="1" colspan="1">1</TD>
							<TD rowspan="1" colspan="1">And</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">2</TD>
							<TD rowspan="1" colspan="1">1</TD>
							<TD rowspan="1" colspan="1">Y</TD>
							<TD rowspan="1" colspan="1">equal</TD>
							<TD rowspan="1" colspan="1">3</TD>
							<TD rowspan="1" colspan="1">Or</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">2</TD>
							<TD rowspan="1" colspan="1">2</TD>
							<TD rowspan="1" colspan="1">Z</TD>
							<TD rowspan="1" colspan="1">equal</TD>
							<TD rowspan="1" colspan="1">4</TD>
							<TD rowspan="1" colspan="1">End</TD>
						</TR>
					</TBODY>
				</TABLE>
				<Paragraph class="Default">Expression 1: (X=1 and Y=3) or (Z=4) Expression 2: (X=1) and (Y=3 or Z=4)</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttams346.sern"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Sern</Title>
			</Header>
			<FuncDesc>Specifies the number of the subexpression in the condition. An <Link href="/baanerp/tt/glossary/glossary#100006" role="glossary">expression</Link> can contain more than one subexpression.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttams346.fdnm"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Field</Title>
			</Header>
			<FuncDesc>Specifies the code of the table field to which the condition applies.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttams346.oper"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Operator</Title>
			</Header>
			<FuncDesc>Specifies the operator that you can use in the expression.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttams346.val1"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Value 1</Title>
			</Header>
			<FuncDesc>The value of the field in the condition.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttams346.val2"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Value 2</Title>
			</Header>
			<FuncDesc>Only if the operator is between or not between, the second value applicable.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttams346.andor"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">And/Or/End</Title>
			</Header>
			<FuncDesc>The operator who links two conditions, which can be and or which can be or. The expression is closed by using end of expression. If you have entered a condition that is closed by end of expression, all conditions after that will be ignored.</FuncDesc>
		</FieldHelp>
	</Fields>
</Session>
