<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tl/onlinemanual/000020e" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">How to test the CreateRef method</Title>
		<Keyword ContextSensitive="No"><Level1>Business Object Layer (BOL)</Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>
                                 Infor ERP LN Development Tools
                              </Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>CreateRef method</Level1>
		</Keyword>
	</Header>
	<AimSection><Paragraph class="Default">This topic describes how you can test the public CreateRef method of a <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link>.</Paragraph>
		<Paragraph class="Default">The CreateRef method enables you to create references from an external application to a Business Object. These external references are stored in a reference table. For more information, refer to the Help on the <Link href="/baanerp/tt/adv/ttadv7111m000" role="session">Tables (ttadv7111m000)</Link> session.</Paragraph>
	</AimSection>
	<GeneralSection><SectionTitle>XML schema file request</SectionTitle>
		<Figure space-and-orientation="indented-estimated"><FigIntro>The following figure shows the XML schema file of the Request argument of the CreateRef method of the Order (tlbct790) Business Object:</FigIntro>
			<HTML:IMG height="403" width="573" SRC="../images/nt_screen_000020ea.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020ea.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020ea.gif" ID="IDAGACAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/><FigCaption>Schema file tl bct bl790bcrrq0000.xsd tlbct790-CreateRef-Request</FigCaption>
		</Figure>
	</GeneralSection>
	<GeneralSection><SectionTitle>Enter request</SectionTitle>
		<Paragraph class="Default">Click <GUIRef href="/baanerp/tl/bct/tlbct3250m000#createrequest" role="command">Enter Request</GUIRef> to define the Request argument for the CreateRef method.</Paragraph>
		<Figure space-and-orientation="indented-estimated"><FigIntro>A Graphical Browser appears:</FigIntro>
			<HTML:IMG height="442" width="255" SRC="../images/nt_screen_000020eb.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020eb.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020eb.gif" ID="IDAPACAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Paragraph class="Default">You must enter an order number (Business Object ID), and optionally, you can also enter the line number (Business Object component ID). In this way, you can create references on Business-Object level and on Business Object-component level.</Paragraph>
		<Figure space-and-orientation="indented-estimated"><FigIntro>For example, create a reference for the order 614:</FigIntro>
			<HTML:IMG height="369" width="285" SRC="../images/nt_screen_000020ec.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020ec.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020ec.gif" ID="IDAYACAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Paragraph class="Default">Save the Request argument and close the graphical browser to return to the <GUIRef href="/baanerp/tl/bct/tlbct3250m000" role="session">BOL Test Tool - Public Layer (tlbct3250m000)</GUIRef> session.</Paragraph>
	</GeneralSection>
	<GeneralSection><SectionTitle>Perform test</SectionTitle>
		<Paragraph class="Default">After you create the Request argument, you can run the test. Click <GUIRef href="/baanerp/tl/bct/tlbct3250m000#testdll" role="command">Execute Test</GUIRef>. Refer to <Link href="/baanerp/tl/onlinemanual/000020a#executetest" role="manual">Execute test</Link> for more details.</Paragraph>
	</GeneralSection>
	<GeneralSection><SectionTitle>View response</SectionTitle>
		<Figure space-and-orientation="indented-estimated"><FigIntro>The response message looks like the following. As you can see, the Graphical Browser essentially contains no information:</FigIntro>
			<HTML:IMG height="277" width="405" SRC="../images/nt_screen_000020ed.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020ed.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020ed.gif" ID="IDABBCAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Figure space-and-orientation="indented-estimated"><FigIntro>To check whether the reference is indeed created, you can use the <Link href="/baanerp/tt/aad/ttaad4100" role="session">General Table Maintenance (ttaad4100 )</Link> session.</FigIntro>
			<HTML:IMG height="181" width="491" SRC="../images/nt_screen_000020ee.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020ee.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020ee.gif" ID="IDAKBCAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
	</GeneralSection>
	<GeneralSection><SectionTitle>View result</SectionTitle>
		<Figure space-and-orientation="indented-estimated"><FigIntro>If a non-existing order number is entered, the following result appears:</FigIntro>
			<HTML:IMG height="324" width="564" SRC="../images/nt_screen_000020ef.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020ef.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020ef.gif" ID="IDATBCAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
	</GeneralSection>
	<RelatedTopics><SectionTitle>Related topics</SectionTitle>
		<RelTopic><Link href="/baanerp/tl/onlinemanual/000020" role="manual">How to test public methods for Infor ERP LN</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tl/onlinemanual/000010" role="manual">How to test protected methods for Infor ERP LN</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tt/onlinemanual/100107" role="manual">To Model a Business Object</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
