<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tt/adv/ttadv7112m000" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Public Methods (ttadv7112m000)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><Paragraph class="Default">
                                 Use this session to define the public methods of a <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">business object</Link>.</Paragraph>
		</AimSection>
		<GeneralSection><Paragraph class="Default">Public methods operate on the public attributes of a business object, and are available to external applications. 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. On these attributes standard methods perform the standard actions create, read, change and delete, show, and list.</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>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">A public method actually calls the related protected method of each component, which is not accessible directly by external applications.</Paragraph>
			</Note>
		</GeneralSection>
		<RelatedTopics><SectionTitle>
                                 Related topics
                              </SectionTitle>
			<RelTopic><Link href="/baanerp/tt/onlinemanual/100107" role="manual">To Model a Business Object</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 public 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>The name must be unique within the <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">business object</Link>.</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 standardized business terminology, for example, OAGIS.</ListItem>
					<ListItem>The name must be meaningful.</ListItem>
					<ListItem>Only alphanumeric characters ([A-Z], [a-z], [0-9]) are allowed.</ListItem>
					<ListItem>Spaces are not allowed.</ListItem>
					<ListItem>If the name consists of several words, start each word, including the first word, with a capital.</ListItem>
				</List>
				<Paragraph class="Default">
                                    Example: GetEmployeeDescription.</Paragraph>
				<Paragraph class="Default">Standard methods can only be generated. The standard methods are: Create, Change, Delete, Show, and List. If you use a reference table, the extra methods CreateRef and DeleteRef are generated too. You cannot enter these names for a specific method, that is, for a method you create manually.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv712.za_rpmt"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Related Protected Method</Title>
			</Header>
			<FuncDesc>If a public method is related to a protected method, this field displays the name of that protected method.</FuncDesc>
			<SimpleSection><Paragraph class="Default">For example, the public standard method Change is related to the protected standard method Change.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv712.rtpe"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Return Type</Title>
			</Header>
			<FuncDesc>The return type of the public method. Public methods can only have return type <Link href="/baanerp/tt/glossary/glossary#100244" role="glossary">long</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">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 maintain the arguments of the selected method.</FuncDesc>
		</CommandHelp>
		<CommandHelp ID="gen.public.methods"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Generate Public Standard Methods</Title>
			</Header>
			<FuncDesc>Click to generate the standard methods and their arguments, including generated XML Schema files, for the selected method. If the arguments require corresponding public attributes, these attributes are generated as well. The arguments can be modified in the <Link href="/baanerp/tt/adv/ttadv7113m000" role="session">Business Object Method Arguments (ttadv7113m000)</Link> session which you can start through the <GUIRef href="" role="menu">Specific</GUIRef> menu.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Refer to the following Help topic for more information about standard methods: <Link href="/baanerp/tt/domains/adv.stmd" role="domain">Standard/Specific Method</Link>.</Paragraph>
			</SimpleSection>
		</CommandHelp>
	</FormCommands>
</Session>
