<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/ec/edi/ecedi5111s000" xml:lang="en">
   <Header>
      <Title>Definitions of Conversion Setups (ecedi5111s000)</Title>
   </Header>
   <HelpTopic>
      <AimSection>
         <Paragraph>Use this session to record the fields,
								sequence, and options for the <Link href="/baanerp/ec/glossary/glossary#000065" role="glossary">conversion</Link> of incoming
								messages.</Paragraph>
      </AimSection>
      <GeneralSection>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <Paragraph>This session is
										protected so that it cannot run simultaneously with sessions that interfere
										with it or with which it can interfere.</Paragraph>
         </Note>
      </GeneralSection>
      <RelatedTopics>
         <SectionTitle>Related topics</SectionTitle>
         <RelTopic>
            <Link href="/baanerp/ec/onlinemanual/000034" role="manual">Using conversion setups (definitions)</Link>
         </RelTopic>
      </RelatedTopics>
   </HelpTopic>
   <Fields>
      <FieldHelp ID="ecedi501.orga">
         <Header>
            <Title>Organization</Title>
         </Header>
         <FuncDesc>A code that represents a set of standards (such as ANSI X12,
		UN/EDIFACT, and VDA) used in EDI communication.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.mess">
         <Header>
            <Title>EDI Message</Title>
         </Header>
         <FuncDesc>The incoming and/or outgoing messages that are supported by the
		application. These messages can be active (actually used within the company) or
		not.</FuncDesc>
         <RelatedTopics>
            <SectionTitle>Related topics</SectionTitle>
            <RelTopic>
               <Link href="/baanerp/ec/onlinemanual/000002" role="manual">Using supported EDI messages</Link>
            </RelTopic>
         </RelatedTopics>
      </FieldHelp>
      <FieldHelp ID="ecedi501.io">
         <Header>
            <Title>Direction</Title>
         </Header>
         <FuncDesc>The direction of the EDI message.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.fldt">
         <Header>
            <Title>Field Type</Title>
         </Header>
         <FuncDesc>The ASCII file format.</FuncDesc>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <Paragraph>A conversion setup
										can be created for files in which the fields are separated by a field
										separator, or that have a fixed length.</Paragraph>
         </Note>
      </FieldHelp>
      <FieldHelp ID="ecedi501.cvsu">
         <Header>
            <Title>Conversion Setup</Title>
         </Header>
         <FuncDesc>The code that identifies the conversion setup.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.dest">
         <Header>
            <Title>Destination</Title>
         </Header>
         <FuncDesc>The destination of the field in the incoming message, as
								defined in the <GUIRef href="/baanerp/ec/edi/ecedi5112m000" role="session">Conversion Setups (Relationships) (ecedi5112m000)</GUIRef> session.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.trfd">
         <Header>
            <Title>Field</Title>
         </Header>
         <FuncDesc>The name of the field, for example, tdsls400.ofbp.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.vgno">
         <Header>
            <Title>Sequence Number</Title>
         </Header>
         <FuncDesc>The sequence number of the field. The same field can be
								included more than once. If the field appears only once within the conversion
								setups, you can set this field to 0 or 1. If the field appears more than once
								in the conversion setup definition, the sequence number can be increased by an
								increment of 1 for each occurrence of the field within the conversion setup
								definition.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.ordi">
         <Header>
            <Title>Processing Sequence</Title>
         </Header>
         <FuncDesc>The sequence in which the field will be processed.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.msfd">
         <Header>
            <Title>Level</Title>
         </Header>
         <FuncDesc>The level defined in the <GUIRef href="/baanerp/ec/edi/ecedi5112m000" role="session">Conversion Setups (Relationships) (ecedi5112m000)</GUIRef> session.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.spos">
         <Header>
            <Title>Start Position</Title>
         </Header>
         <FuncDesc>The position of the field in the line.</FuncDesc>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <Paragraph>If the Field Type
										field in the <GUIRef href="/baanerp/ec/edi/ecedi0120s000" role="session">Networks (ecedi0120s000)</GUIRef> session is Fixed Length, you
										must enter the physical starting position of the field. If the Field Type field
										in the <GUIRef href="/baanerp/ec/edi/ecedi0120s000" role="session">Networks (ecedi0120s000)</GUIRef> session is Delimited, you must enter the field number,
										starting with number 1.</Paragraph>
         </Note>
      </FieldHelp>
      <FieldHelp ID="ecedi501.elmt">
         <Header>
            <Title>Element</Title>
         </Header>
         <FuncDesc>The index element for an index field or the start position in a
								string for a string variable.</FuncDesc>
         <SimpleSection>
            <SectionTitle>Index field example</SectionTitle>
            <Paragraph>In the case of a
										string variable, the start position in the string can be specified. This field,
										in combination with the Length field, allows you to specify a substring (for
										example: for string "ABCDEFGHIJKLMNOP", the value 3 with a length of 5 produces
										the following output: "CDEFG").</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="6">
                  <TR no="1" isLast="false">
                     <TD colspan="3" rowspan="1">Field tdsls400.disc (standard depth =
																5 levels)</TD>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD colspan="1" rowspan="1">Level</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1">10</TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1">15</TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1">3</TD>
                     <TD colspan="1" rowspan="1">8</TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1">4</TD>
                     <TD colspan="1" rowspan="1">5</TD>
                  </TR>
                  <TR no="6" isLast="true">
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1">5</TD>
                     <TD colspan="1" rowspan="1">7</TD>
                  </TR>
               </TBODY>
            </TABLE>
            <Paragraph>The value 0 outputs
										the entire field: 010015008005007. This option is only used for internal
										communication. The values 1 and 3 produce only the following elements: 010 and
										008. This output means that the field can also be used for external
										communication.</Paragraph>
         </SimpleSection>
      </FieldHelp>
      <FieldHelp ID="ecedi501.flen">
         <Header>
            <Title>Length</Title>
         </Header>
         <FuncDesc>The physical length of the field.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.next">
         <Header>
            <Title>Read Next Record</Title>
         </Header>
         <FuncDesc>If this check box is selected, a new record will be
								read at this level for incoming messages, and a new record of the table that
								belongs to the field will be read for outgoing messages. If this check box is cleared, new records will not be read, but the current records
								remain active.</FuncDesc>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <Paragraph>This field indicates
										whether a new record must be read in order to process the contents of the
										field. Based on the value of this field, you can determine when a new line is
										ready to be read from the same file.</Paragraph>
         </Note>
      </FieldHelp>
      <FieldHelp ID="ecedi501.prvi">
         <Header>
            <Title>Iterative Level</Title>
         </Header>
         <FuncDesc>The sequence number that indicates where the cursor must move
								after processing the field. This field is only used if this record is for the
								last field of an iterative level or for the last field of the conversion
								setup.</FuncDesc>
         <SimpleSection>
            <SectionTitle>Example</SectionTitle>
            <Paragraph>For example: You
										want to enter a text field that contains data from an ASCII file in an order
										header, that is performed iteratively. Once the last text field is filled, the
										cursor is returned to the field with sequence number 3, by using the Sequence
										Number field. The key and three text fields are included in each line of level
										2.</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <THEAD noTR="1">
                  <TR no="1" isLast="true">
                     <TD colspan="1" rowspan="1">Field</TD>
                     <TD colspan="1" rowspan="1">Level</TD>
                     <TD colspan="1" rowspan="1">Sequence Number</TD>
                     <TD colspan="1" rowspan="1">Iterative Level</TD>
                  </TR>
               </THEAD>
               <TBODY noTR="5">
                  <TR no="1" isLast="false">
                     <TD colspan="1" rowspan="1">Order No.</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD colspan="1" rowspan="1">Reference</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD colspan="1" rowspan="1">Text Field</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1">3</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD colspan="1" rowspan="1">Text Field</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1">4</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="5" isLast="true">
                     <TD colspan="1" rowspan="1">Text Field</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1">5</TD>
                     <TD colspan="1" rowspan="1">3</TD>
                  </TR>
               </TBODY>
            </TABLE>
         </SimpleSection>
      </FieldHelp>
      <FieldHelp ID="ecedi501.prvk">
         <Header>
            <Title>Key does not Match</Title>
         </Header>
         <FuncDesc>The sequence number that indicates where the cursor must move
								if the key is not valid or the key changes. This field only needs to be filled
								in if the New record is Yes.</FuncDesc>
         <SimpleSection>
            <SectionTitle>Example 1 - Iterative processing</SectionTitle>
            <Paragraph>After all text
										fields have been processed, the customer number is read. Level 2 is iterative.</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <THEAD noTR="1">
                  <TR no="1" isLast="true">
                     <TD colspan="1" rowspan="1">Field</TD>
                     <TD colspan="1" rowspan="1">Level</TD>
                     <TD colspan="1" rowspan="1">Sequence in</TD>
                     <TD colspan="1" rowspan="1">Back</TD>
                     <TD colspan="1" rowspan="1">Back</TD>
                     <TD colspan="1" rowspan="1">New</TD>
                  </TR>
               </THEAD>
               <TBODY noTR="7">
                  <TR no="1" isLast="false">
                     <TD colspan="1" rowspan="1">Iter.</TD>
                     <TD colspan="1" rowspan="1">Key record</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD colspan="1" rowspan="1">Order No.</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD colspan="1" rowspan="1">Reference</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD colspan="1" rowspan="1">Text Field</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1">3</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1">6</TD>
                     <TD colspan="1" rowspan="1">yes</TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD colspan="1" rowspan="1">Text Field</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1">4</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="6" isLast="false">
                     <TD colspan="1" rowspan="1">Text Field</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1">5</TD>
                     <TD colspan="1" rowspan="1">3</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="7" isLast="true">
                     <TD colspan="1" rowspan="1">Customer</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1">6</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
               </TBODY>
            </TABLE>
         </SimpleSection>
         <SimpleSection>
            <SectionTitle>Example 2 - Sequential processing</SectionTitle>
            <Paragraph>When all order lines
										have been filled (level 2) a new order can be introduced (level 1).</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <THEAD noTR="1">
                  <TR no="1" isLast="true">
                     <TD colspan="1" rowspan="1">Field</TD>
                     <TD colspan="1" rowspan="1">Level</TD>
                     <TD colspan="1" rowspan="1">Sequence in</TD>
                     <TD colspan="1" rowspan="1">Back</TD>
                     <TD colspan="1" rowspan="1">Back</TD>
                     <TD colspan="1" rowspan="1">New</TD>
                  </TR>
               </THEAD>
               <TBODY noTR="7">
                  <TR no="1" isLast="false">
                     <TD colspan="1" rowspan="1">Iter.</TD>
                     <TD colspan="1" rowspan="1">Key record</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD colspan="1" rowspan="1">Order No.</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1">yes</TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD colspan="1" rowspan="1">Reference</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD colspan="1" rowspan="1">Customer</TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1">3</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD colspan="1" rowspan="1">Item</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1">4</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1">1</TD>
                     <TD colspan="1" rowspan="1">yes</TD>
                  </TR>
                  <TR no="6" isLast="false">
                     <TD colspan="1" rowspan="1">Quantity</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1">5</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="7" isLast="true">
                     <TD colspan="1" rowspan="1">Delivery Date</TD>
                     <TD colspan="1" rowspan="1">2</TD>
                     <TD colspan="1" rowspan="1">6</TD>
                     <TD colspan="1" rowspan="1">4</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
               </TBODY>
            </TABLE>
         </SimpleSection>
      </FieldHelp>
      <FieldHelp ID="ecedi501.wrec">
         <Header>
            <Title>Write Record</Title>
         </Header>
         <FuncDesc>If this check box is selected, a record must be added to the relevant table
								after a field for an incoming message has been processed, depending on the
								result of the output expression. The destination of the field (overhead,
								header, or line) determines the table where messages will be saved.</FuncDesc>
         <SimpleSection>
            <SectionTitle>Example 1</SectionTitle>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <THEAD noTR="1">
                  <TR no="1" isLast="true">
                     <TD colspan="1" rowspan="1">Field</TD>
                     <TD colspan="1" rowspan="1">Destination</TD>
                     <TD colspan="1" rowspan="1">Write record</TD>
                  </TR>
               </THEAD>
               <TBODY noTR="6">
                  <TR no="1" isLast="false">
                     <TD colspan="1" rowspan="1">Order No.</TD>
                     <TD colspan="1" rowspan="1">header</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD colspan="1" rowspan="1">Reference</TD>
                     <TD colspan="1" rowspan="1">header</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD colspan="1" rowspan="1">Customer</TD>
                     <TD colspan="1" rowspan="1">header</TD>
                     <TD colspan="1" rowspan="1">yes</TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD colspan="1" rowspan="1">Item</TD>
                     <TD colspan="1" rowspan="1">line</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD colspan="1" rowspan="1">Quantity</TD>
                     <TD colspan="1" rowspan="1">line</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="6" isLast="true">
                     <TD colspan="1" rowspan="1">Delivery Date</TD>
                     <TD colspan="1" rowspan="1">line</TD>
                     <TD colspan="1" rowspan="1">yes</TD>
                  </TR>
               </TBODY>
            </TABLE>
            <List>
               <ListIntro>Fields processed after a write action for the same
												destination are not added to the relevant table. You cannot start several write
												actions for the same record (for example: order line). Due to the hierarchy of
												destinations, LN checks
												whether or not all higher destinations have been written. If the higher
												destination has not been written, the relevant destinations are written before
												the specified destination is written. The hierarchy is:</ListIntro>
               <ListItem>Overhead</ListItem>
               <ListItem>Header</ListItem>
               <ListItem>Line</ListItem>
            </List>
         </SimpleSection>
         <SimpleSection>
            <SectionTitle>Example 2</SectionTitle>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <THEAD noTR="1">
                  <TR no="1" isLast="true">
                     <TD colspan="1" rowspan="1">Field</TD>
                     <TD colspan="1" rowspan="1">Destination</TD>
                     <TD colspan="1" rowspan="1">Write record</TD>
                  </TR>
               </THEAD>
               <TBODY noTR="6">
                  <TR no="1" isLast="false">
                     <TD colspan="1" rowspan="1">Order No.</TD>
                     <TD colspan="1" rowspan="1">header</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD colspan="1" rowspan="1">Reference</TD>
                     <TD colspan="1" rowspan="1">header</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD colspan="1" rowspan="1">Customer</TD>
                     <TD colspan="1" rowspan="1">header</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD colspan="1" rowspan="1">Item</TD>
                     <TD colspan="1" rowspan="1">line</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD colspan="1" rowspan="1">Quantity</TD>
                     <TD colspan="1" rowspan="1">line</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="6" isLast="true">
                     <TD colspan="1" rowspan="1">Delivery Date</TD>
                     <TD colspan="1" rowspan="1">line</TD>
                     <TD colspan="1" rowspan="1">yes</TD>
                  </TR>
               </TBODY>
            </TABLE>
            <Paragraph>Because no header
										has been written yet, the header is written first, followed by the line. If
										there is no overhead, the line is written before the header.</Paragraph>
         </SimpleSection>
      </FieldHelp>
      <FieldHelp ID="ecedi501.expr">
         <Header>
            <Title>Evaluation</Title>
         </Header>
         <FuncDesc>The code for the evaluation expression. This expression
								determines whether or not the field is included in the message. The expression
								is logical and it results in true or false. The default value of this field is
								1, true. The expression is carried out before placing the field in the message.
								In other words, the associated reading and writing actions are always carried
								out. Actually, the expression is an equation. For example, for the Warehouse
								field on the purchase order, the expression can be: strip((tdpur400.cwar)
								&lt;&gt; "" This expression is true if the warehouse field is not filled. In an
								expression, the following operators can be used:</FuncDesc>
         <SimpleSection>
            <List>
               <ListIntro>The following lists the operators in order of
												priority:</ListIntro>
               <ListItem>()</ListItem>
               <ListItem>- (reverse sign)</ListItem>
               <ListItem>* / \</ListItem>
               <ListItem>&amp;</ListItem>
               <ListItem>+ - (add subtract)</ListItem>
               <ListItem>= &gt; &lt;
												&lt;&gt; &lt;= &gt;=</ListItem>
               <ListItem>NOT</ListItem>
               <ListItem>AND</ListItem>
               <ListItem>OR</ListItem>
               <ListItem>?:</ListItem>
            </List>
            <Paragraph>An expression can
										contain the following constants:</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="3">
                  <TR no="1" isLast="false">
                     <TD colspan="1" rowspan="1">PI</TD>
                     <TD colspan="1" rowspan="1">3.1415926535..</TD>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD colspan="1" rowspan="1">TRUE</TD>
                     <TD colspan="1" rowspan="1">Always true.</TD>
                  </TR>
                  <TR no="3" isLast="true">
                     <TD colspan="1" rowspan="1">FALSE</TD>
                     <TD colspan="1" rowspan="1">Always false.</TD>
                  </TR>
               </TBODY>
            </TABLE>
            <Paragraph>An expression can
										contain functions.</Paragraph>
            <Paragraph>Numerical ranges can
										also be used: a IN [10,20] is equal to.a&gt;=20 AND a&lt;=30 a IN
										[10,20][30,40][50,60] is equal to a&gt;=10 AND a&lt;=20 OR a&gt;=30 AND
										a&lt;=40 OR a&gt;=50 AND a&lt;=60</Paragraph>
         </SimpleSection>
         <SimpleSection>
            <SectionTitle>Arithmetical Example</SectionTitle>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="8">
                  <TR no="1" isLast="false">
                     <TD colspan="1" rowspan="1">()</TD>
                     <TD colspan="1" rowspan="1">brackets (priority)</TD>
                     <TD colspan="1" rowspan="1"> </TD>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD colspan="1" rowspan="1">-</TD>
                     <TD colspan="1" rowspan="1">reverses sign (requires an
																argument)</TD>
                     <TD colspan="1" rowspan="1">a=-b</TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD colspan="1" rowspan="1">*</TD>
                     <TD colspan="1" rowspan="1">multiplication</TD>
                     <TD colspan="1" rowspan="1">3*5=15</TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD colspan="1" rowspan="1">/</TD>
                     <TD colspan="1" rowspan="1">division</TD>
                     <TD colspan="1" rowspan="1">6/2=3</TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD colspan="1" rowspan="1">\</TD>
                     <TD colspan="1" rowspan="1">remainder after division</TD>
                     <TD colspan="1" rowspan="1">8\3=2</TD>
                  </TR>
                  <TR no="6" isLast="false">
                     <TD colspan="1" rowspan="1">&amp;</TD>
                     <TD colspan="1" rowspan="1">linking up strings</TD>
                     <TD colspan="1" rowspan="1">"A"&amp;"B"="AB"</TD>
                  </TR>
                  <TR no="7" isLast="false">
                     <TD colspan="1" rowspan="1">+</TD>
                     <TD colspan="1" rowspan="1">addition</TD>
                     <TD colspan="1" rowspan="1">2+3=5</TD>
                  </TR>
                  <TR no="8" isLast="true">
                     <TD colspan="1" rowspan="1">-</TD>
                     <TD colspan="1" rowspan="1">subtraction</TD>
                     <TD colspan="1" rowspan="1">3-2=1</TD>
                  </TR>
               </TBODY>
            </TABLE>
         </SimpleSection>
         <SimpleSection>
            <SectionTitle>Relational (for comparison) Example</SectionTitle>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="6">
                  <TR no="1" isLast="false">
                     <TD colspan="1" rowspan="1">= or EQ</TD>
                     <TD colspan="1" rowspan="1">is equal to</TD>
                     <TD colspan="1" rowspan="1">3=5 is false</TD>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD colspan="1" rowspan="1">&lt;&gt; or NE</TD>
                     <TD colspan="1" rowspan="1">is unequal to</TD>
                     <TD colspan="1" rowspan="1">3&lt;&gt;5 is true</TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD colspan="1" rowspan="1">&gt; or GT</TD>
                     <TD colspan="1" rowspan="1">is greater than</TD>
                     <TD colspan="1" rowspan="1">3&gt;5 is false</TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD colspan="1" rowspan="1">&lt; or LT</TD>
                     <TD colspan="1" rowspan="1">is less than</TD>
                     <TD colspan="1" rowspan="1">3&lt;5 is true</TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD colspan="1" rowspan="1">&gt;= or GE</TD>
                     <TD colspan="1" rowspan="1">is greater than or equal to</TD>
                     <TD colspan="1" rowspan="1">3&gt;=5 is false</TD>
                  </TR>
                  <TR no="6" isLast="true">
                     <TD colspan="1" rowspan="1">&lt;= or LE</TD>
                     <TD colspan="1" rowspan="1">is less than or equal to</TD>
                     <TD colspan="1" rowspan="1">3&lt;=5 is true</TD>
                  </TR>
               </TBODY>
            </TABLE>
         </SimpleSection>
         <SimpleSection>
            <SectionTitle>Logical Example</SectionTitle>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="3">
                  <TR no="1" isLast="false">
                     <TD colspan="1" rowspan="1">AND</TD>
                     <TD colspan="1" rowspan="1">and (both are true)</TD>
                     <TD colspan="1" rowspan="1">a=b AND b=c</TD>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD colspan="1" rowspan="1">OR</TD>
                     <TD colspan="1" rowspan="1">or (one of the two is true)</TD>
                     <TD colspan="1" rowspan="1">a=b OR a=c</TD>
                  </TR>
                  <TR no="3" isLast="true">
                     <TD colspan="1" rowspan="1">NOT</TD>
                     <TD colspan="1" rowspan="1">not (is not true)</TD>
                     <TD colspan="1" rowspan="1">NOT (a=b AND b=c)</TD>
                  </TR>
               </TBODY>
            </TABLE>
         </SimpleSection>
         <SimpleSection>
            <SectionTitle>Others:</SectionTitle>
            <Paragraph> 
               <Emphasis>condition?true:false</Emphasis> if &lt;condition&gt; is true, &lt;true&gt; is
										executed, otherwise &lt;false&gt; (always place brackets around
										&lt;condition&gt;, because this has the lowest priority)</Paragraph>
         </SimpleSection>
         <SimpleSection>
            <SectionTitle>Functions</SectionTitle>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="30">
                  <TR no="1" isLast="false">
                     <TD colspan="1" rowspan="1">abs(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the absolute value of N</TD>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD colspan="1" rowspan="1">acos(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the angle (in radials) of
																which N is the cosine.</TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD colspan="1" rowspan="1">asc(S)</TD>
                     <TD colspan="1" rowspan="1">Produces the total of the ASCII
																values of the characters in S, asc("ABC")=65+66+67=198</TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD colspan="1" rowspan="1">asin(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the angle (in radials) of
																which N is the sine.</TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD colspan="1" rowspan="1">atan(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the angle (in radials) of
																which N is the tangent.</TD>
                  </TR>
                  <TR no="6" isLast="false">
                     <TD colspan="1" rowspan="1">chr(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the character of which N is
																the ASCII value, chr(65)="A"</TD>
                  </TR>
                  <TR no="7" isLast="false">
                     <TD colspan="1" rowspan="1">cos(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the cosine for angle N (in
																radials).</TD>
                  </TR>
                  <TR no="8" isLast="false">
                     <TD colspan="1" rowspan="1">cosh(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the hyperbolic cosine for
																angle N (in radials)</TD>
                  </TR>
                  <TR no="9" isLast="false">
                     <TD colspan="1" rowspan="1">date()</TD>
                     <TD colspan="1" rowspan="1">Produces the current day
																number.</TD>
                  </TR>
                  <TR no="10" isLast="false">
                     <TD colspan="1" rowspan="1">date(J,M,D)</TD>
                     <TD colspan="1" rowspan="1">Produces the day number in the date
																represented by D, M and J.</TD>
                  </TR>
                  <TR no="11" isLast="false">
                     <TD colspan="1" rowspan="1">exp(N)</TD>
                     <TD colspan="1" rowspan="1">Produces 2.718128.. to the power of
																N.</TD>
                  </TR>
                  <TR no="12" isLast="false">
                     <TD colspan="1" rowspan="1">int(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the integer of N (rounded
																down).</TD>
                  </TR>
                  <TR no="13" isLast="false">
                     <TD colspan="1" rowspan="1">len(S)</TD>
                     <TD colspan="1" rowspan="1">Produces the number of characters in
																S, len("ABC")=3.</TD>
                  </TR>
                  <TR no="14" isLast="false">
                     <TD colspan="1" rowspan="1">log(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the natural logarithm of
																N.</TD>
                  </TR>
                  <TR no="15" isLast="false">
                     <TD colspan="1" rowspan="1">log10(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the 10-logarithm of N.</TD>
                  </TR>
                  <TR no="16" isLast="false">
                     <TD colspan="1" rowspan="1">max(N,M)</TD>
                     <TD colspan="1" rowspan="1">Produces the greater value of N or
																M.</TD>
                  </TR>
                  <TR no="17" isLast="false">
                     <TD colspan="1" rowspan="1">min(N,M)</TD>
                     <TD colspan="1" rowspan="1">Produces the lesser value of N or
																M.</TD>
                  </TR>
                  <TR no="18" isLast="false">
                     <TD colspan="1" rowspan="1">pos(S,T)</TD>
                     <TD colspan="1" rowspan="1">Produces the first position where T
																occurs in S, pos("ABCDEFEF","EF")=5.</TD>
                  </TR>
                  <TR no="19" isLast="false">
                     <TD colspan="1" rowspan="1">pow(N,M)</TD>
                     <TD colspan="1" rowspan="1">Produces N to the power of M.</TD>
                  </TR>
                  <TR no="20" isLast="false">
                     <TD colspan="1" rowspan="1">round(N,D,M)</TD>
                     <TD colspan="1" rowspan="1">Produces the value of N rounded to D
																decimals. If M=0, N is rounded down, round(1.99,2,0)=1.00. If M=1, N is rounded
																off normally, round(1.49,2,1)=1.00 and round(1.50,2,1)=2.00. If M=2, N is
																rounded up, round(1.01,2,2)=2.00.</TD>
                  </TR>
                  <TR no="21" isLast="false">
                     <TD colspan="1" rowspan="1">rpos(S,T)</TD>
                     <TD colspan="1" rowspan="1">Produces the last position where T
																occurs in S, rpos("ABCDEFEF,"EF")=7.</TD>
                  </TR>
                  <TR no="22" isLast="false">
                     <TD colspan="1" rowspan="1">sin(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the sine of angle N (in
																radials).</TD>
                  </TR>
                  <TR no="23" isLast="false">
                     <TD colspan="1" rowspan="1">sinh(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the hyperbolic sine of angle
																N (in radials).</TD>
                  </TR>
                  <TR no="24" isLast="false">
                     <TD colspan="1" rowspan="1">sqrt(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the non-negative square root
																of N.</TD>
                  </TR>
                  <TR no="25" isLast="false">
                     <TD colspan="1" rowspan="1">str(N)</TD>
                     <TD colspan="1" rowspan="1">Creates a string of N,
																str(1.04)="1.04"</TD>
                  </TR>
                  <TR no="26" isLast="false">
                     <TD colspan="1" rowspan="1">strip(S)</TD>
                     <TD colspan="1" rowspan="1">Returns S without the spaces
																following it.</TD>
                  </TR>
                  <TR no="27" isLast="false">
                     <TD colspan="1" rowspan="1">tan(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the tangent of angle N (in
																radials).</TD>
                  </TR>
                  <TR no="28" isLast="false">
                     <TD colspan="1" rowspan="1">tanh(N)</TD>
                     <TD colspan="1" rowspan="1">Produces the hyperbolic tangent of
																angle N (in radials).</TD>
                  </TR>
                  <TR no="29" isLast="false">
                     <TD colspan="1" rowspan="1">time()</TD>
                     <TD colspan="1" rowspan="1">Produces the current time in UUMM
																format.</TD>
                  </TR>
                  <TR no="30" isLast="true">
                     <TD colspan="1" rowspan="1">val(S)</TD>
                     <TD colspan="1" rowspan="1">Produces the numerical value of S,
																val("1.04")=1.04.</TD>
                  </TR>
               </TBODY>
            </TABLE>
         </SimpleSection>
      </FieldHelp>
      <FieldHelp ID="ecedi501.calc">
         <Header>
            <Title>Assignment</Title>
         </Header>
         <FuncDesc>The code for the assignment expression. The result of the
								expression is written to the ASCII file (outgoing messages), which is updated
								into the LN application
								(incoming messages). For example, if you want to set the <GUIRef href="/baanerp/td/sls/tdsls4100m000#tdsls400.ddat" role="manual">Planned Delivery Date</GUIRef> to a value two days prior to the <GUIRef href="/baanerp/td/sls/tdsls4100m000#tdsls400.prdt" role="manual">Planned Receipt Date</GUIRef>, you can assign the following
								assignment expression to the the <GUIRef href="/baanerp/td/sls/tdsls4100m000#tdsls400.ddat" role="manual">Planned Delivery Date</GUIRef> field: tdsls400.prdt - 172800.</FuncDesc>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <List>
               <ListItem>Days must be represented in seconds because dates are
												internally handled as UTC dates. So, 172800 represents two days.</ListItem>
               <ListItem>Any table fields referenced in an assignment expression
												must be processed before the field to which that assignment expression is
												assigned. The field referenced in the assignment expression must have a lower
												processing sequence, as defined in the conversion setup definitions. For
												example, in the preceding example, field tdsls400.prdt must have a lower
												processing sequence than field tdsls400.ddat, as defined in the conversion
												setup definitions.</ListItem>
            </List>
         </Note>
      </FieldHelp>
      <FieldHelp ID="ecedi501.conv">
         <Header>
            <Title>Convert</Title>
         </Header>
         <FuncDesc>If this check box is selected, the relevant conversion table is used to
								convert the field. If this check box is cleared, the code matches the corresponding code in LN and does not need to
								be converted.</FuncDesc>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <Paragraph>Any field that can
										be included on an incoming message, can be converted. If this check box is
										cleared, the code in the message matches the one in LN and need not be
										converted.</Paragraph>
         </Note>
      </FieldHelp>
      <FieldHelp ID="ecedi501.caci">
         <Header>
            <Title>Action on Error</Title>
         </Header>
         <FuncDesc>The action to be taken if an error occurs during the conversion
								of incoming messages.</FuncDesc>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <Paragraph>The value selected
										must be supported by the processing sessions.</Paragraph>
         </Note>
      </FieldHelp>
      <FieldHelp ID="ecedi501.hdct">
         <Header>
            <Title>Code Table</Title>
         </Header>
         <FuncDesc>The code you want included in the message. For example, you
								want to enter a code into a text field. That table contains code A and the
								description Surcharge. The text field will read "Description: surcharge". If
								the code is not found, the text field will contain the code instead of the
								description.</FuncDesc>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <Paragraph>This field is only
										accessible if the record is for a text field.</Paragraph>
         </Note>
      </FieldHelp>
      <FieldHelp ID="ecedi501.hdsc">
         <Header>
            <Title>Field Description</Title>
         </Header>
         <FuncDesc>If the field is a text field, enter the text string you want to
								appear before the actual field content in the text field. For example, if you
								enter Description in this field and the content of the text field is Diesel
								Engine Valve, the resulting text field will read "Description: Diesel Engine
								Valve".</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.fact">
         <Header>
            <Title>Field Action</Title>
         </Header>
         <FuncDesc>How incoming message fields will be processed.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.eval">
         <Header>
            <Title>Value if empty field</Title>
         </Header>
         <FuncDesc>The value that will be used to replace empty fields in the EDI
								message.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.spoq">
         <Header>
            <Title>Start Pos. Qualifier</Title>
         </Header>
         <FuncDesc>The starting position of the first qualifier. Some code
								conversions in ERP EDI require a code ID. Code IDs are qualifiers used in code
								conversions that allow you to convert additional data specifications and are
								transferred in the first qualifier position of the conversion setup
								definitions.</FuncDesc>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <Paragraph>If the Field Type field in the <GUIRef href="/baanerp/ec/edi/ecedi0120s000" role="session">Networks (ecedi0120s000)</GUIRef> session is Fixed Length, you must enter the physical
										starting position of the field. If the Field Type field in the <GUIRef href="/baanerp/ec/edi/ecedi0120s000" role="session">Networks (ecedi0120s000)</GUIRef> session is Delimited, you must enter the field number,
										starting with number 1.</Paragraph>
         </Note>
      </FieldHelp>
      <FieldHelp ID="ecedi501.fleq">
         <Header>
            <Title>Qualifier Length</Title>
         </Header>
         <FuncDesc>The physical length of the qualifier.</FuncDesc>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <Paragraph>This value can only
										be entered if the field type is Fixed Length, as defined in the <GUIRef href="/baanerp/ec/edi/ecedi0520m000" role="session">Networks (ecedi0520m000)</GUIRef> session.</Paragraph>
         </Note>
      </FieldHelp>
      <FieldHelp ID="ecedi501.qnoc">
         <Header>
            <Title>No Conversion</Title>
         </Header>
         <FuncDesc>The qualifier value that will result in no conversion being
								performed. For example, assume the value SC is specified here. If a message
								contains the qualifier value SC, no conversion will be performed; if the
								message contains any other value in the message, the value will be converted.</FuncDesc>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <Paragraph>If the read value is
										equal to the qualifier value, a conversion table will not be applied; the read
										file will be used. This situation can occur if both parties are using EAN item
										codes.</Paragraph>
         </Note>
      </FieldHelp>
      <FieldHelp ID="ecedi501.defq">
         <Header>
            <Title>Default Qualifier</Title>
         </Header>
         <FuncDesc>The value to be used if no qualifier is received in the
								message.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.mafd">
         <Header>
            <Title>Field</Title>
         </Header>
         <FuncDesc>The mapping information for this descriptive field and the
								corresponding data element in the EDI message. This descriptive field is used
								only for informational and reporting purposes.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.maq1">
         <Header>
            <Title>Qualifier 1</Title>
         </Header>
         <FuncDesc>The mapping information for the first qualifier and the
								corresponding data element in the EDI message.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="ecedi501.maq2">
         <Header>
            <Title>Qualifier 2</Title>
         </Header>
         <FuncDesc>The mapping information for the second qualifier and the
								corresponding data element in the EDI message.</FuncDesc>
      </FieldHelp>
   </Fields>
</Session>