<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tt/adv/ttadv7112m100" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Protected Methods (ttadv7112m100)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><Paragraph class="Default">
                                 Use this session to define the protected methods of a <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">business object</Link> or business object component.</Paragraph>
		</AimSection>
		<GeneralSection><Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">If the business object has components, you can only create protected methods for the components.</Paragraph>
			</Note>
			<Paragraph class="Default">Protected methods provide a means to access and manipulate the business object on an internal level. The methods are either standard methods or specific methods. Specific methods must be programmed manually. Standard methods can be generated based on the protected attributes of the business object. Standard methods perform the standard actions create, read, change and delete on these attributes.</Paragraph>
			<Paragraph class="Default">If you defined a reference table for the business object, the following standard methods are used to operate on the reference table: CreateRef and DeleteRef. Refer to the Help on the <Link href="/baanerp/tt/adv/ttadv7111m000" role="session">Tables (ttadv7111m000)</Link> session for more information.</Paragraph>
		</GeneralSection>
		<RelatedTopics><SectionTitle>
                                 Related topics
                              </SectionTitle>
			<RelTopic><Link href="/baanerp/tt/onlinemanual/100107" role="manual">To Model a Business Object</Link>
			</RelTopic>
			<RelTopic><Link href="/baanerp/tt/domains/adv.stmd" role="domain">Standard/Specific Method</Link>
			</RelTopic>
		</RelatedTopics>
	</HelpTopic>
	<Fields><FieldHelp ID="ttadv712.meth"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Method</Title>
			</Header>
			<FuncDesc>The name of the protected method.</FuncDesc>
			<SimpleSection><Paragraph class="Default">If the method is a standard method, you cannot modify it. If the method is a specific method, you can modify its properties, such as name, return type or arguments.</Paragraph>
				<List><ListIntro>The following rules apply to the protected method name:</ListIntro>
					<ListItem>If the business object has no components, the name must be unique within the <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">business object</Link>. If the business object has components, the name must be unique within the component.</ListItem>
					<ListItem>The name must refer to business concepts and/or the functionality of the business object. Do not use a name that refers to a technical solution.</ListItem>
					<ListItem>Use ERP LN terminology.</ListItem>
					<ListItem>The name must be meaningful.</ListItem>
					<ListItem>Only alphanumeric characters ([A-Z], [a-z], [0-9]) are allowed.</ListItem>
					<ListItem>If the name consists of several words, start each word with a capital. Spaces are not allowed.</ListItem>
				</List>
				<Paragraph class="Default">If a method name is not equal to one of the standard method names, the method type must be set to <GUIRef href="/baanerp/tt/domains/adv.stmd#specific" role="option">Specific</GUIRef> in the <Link href="/baanerp/tt/adv/ttadv7112m100#ttadv712.stnd" role="formfield">Standard/Specific</Link> field.</Paragraph>
				<Paragraph class="Default">
                                    Example: Change, GetEmployeeDescription.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv712.rtpe"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Return Type</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/domains/adv.rtpe" role="domain">Return Type of Business Object Method</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv712.stnd"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Standard/Specific</Title>
			</Header>
			<FuncDesc>This field indicates whether the method is a standard or a specific method. Refer to <Link href="/baanerp/tt/domains/adv.stmd" role="domain">Standard/Specific Method</Link> for details.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This field is filled automatically when you generate or create methods. You cannot change the content of the field.</Paragraph>
				<Paragraph class="Default">Standard methods can be generated through the <GUIRef href="" role="menu">Specific</GUIRef> menu. You cannot modify the properties of standard methods. You can only delete the methods you do not require.</Paragraph>
			</SimpleSection>
		</FieldHelp>
	</Fields>
	<FormCommands><CommandHelp ID="modify.method.arguments"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Method Arguments</Title>
			</Header>
			<FuncDesc>Click to zoom to the <Link href="/baanerp/tt/adv/ttadv7113m000" role="session">Business Object Method Arguments (ttadv7113m000)</Link> session, where you can generate, or manually specify, the arguments for the selected method.</FuncDesc>
		</CommandHelp>
		<CommandHelp ID="gen.protected.methods"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Generate Protected Standard Methods</Title>
			</Header>
			<FuncDesc>Click to generate all possible standard methods.</FuncDesc>
			<SimpleSection><Paragraph class="Default">These methods are specified in the following Help topic: <Link href="/baanerp/tt/domains/adv.stmd" role="domain">Standard/Specific Method</Link>.</Paragraph>
			</SimpleSection>
		</CommandHelp>
	</FormCommands>
</Session>
