<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tf/onlinemanual/sepa0120" xml:lang="en">
   <Header>
      <Title>Maintaining mapping elements</Title>
      <Keyword type="header" order="d1e1653793">
         <Level1>Maintaining</Level1>
         <Level2>mapping elements</Level2>
      </Keyword>
      <Keyword type="header" order="d1e1653798">
         <Level1>Mapping elements</Level1>
         <Level2>maintaining</Level2>
      </Keyword>
   </Header>
   <GeneralSection>
      <Paragraph>Use the <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000" role="session">Payment/Receipt Elements (tfcmg0123m000)</GUIRef> session to maintain mapping elements that are
		used to derive the values of XML elements when the SEPA XML file is
		generated.</Paragraph>
      <Paragraph>After the layout has been initialized, all the data elements
		that are defined in the minimum dataset that is mandatory according to the EPC
		rulebooks are included in the default XML tags. By default, many of these tags
		have been mapped to predefined data elements; other tags are
		generated.</Paragraph>
      <Paragraph>To view or maintain mapping details, in the <GUIRef href="/baanerp/tf/cmg/tfcmg0524m000" role="session">XML Payment/Receipt Layouts (tfcmg0524m000)</GUIRef> session, select the XML tag line and use the <Link href="/baanerp/tc/glossary/glossary#specific" role="glossary">appropriate</Link> menu to start
		the <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000" role="session">Payment/Receipt Elements (tfcmg0123m000)</GUIRef> details session.</Paragraph>
      <Paragraph>If, in the details session, <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000#mapped" role="manual">Map to Payment Element</GUIRef> is selected, you can start the <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000" role="session">Payment/Receipt Elements (tfcmg0123m000)</GUIRef> session through the <Link href="/baanerp/tc/glossary/glossary#specific" role="glossary">appropriate</Link> menu to check
		the list of available payment/receipt elements.</Paragraph>
      <ProcedureList>
         <ListIntro>A payment element refers to the information that is available
		  in LN that can be
		  attributed to a payment, for example, payment batch, pay-to business partner,
		  or the IBAN of the business partner’s bank account. In LN this could be either
		  of the following:</ListIntro>
         <ListItem>Table field, such as <GUIRef href="/baanerp/tf/cmg/tfcmg1145s000#tfcmg103.btno" role="manual">Payment Batch</GUIRef> (tfcmg103.btno)</ListItem>
         <ListItem>Variable, such as the <GUIRef href="/baanerp/tf/cmg/tfcmg1240m000#form.suffix" role="manual">Suffix (Norma 68 or 34-1)</GUIRef> field in the <GUIRef href="/baanerp/tf/cmg/tfcmg1240m000" role="session">Process Payments (tfcmg1240m000)</GUIRef> session</ListItem>
      </ProcedureList>
      <Paragraph>Payment element descriptions are generated at runtime in the
		user language, if available; otherwise they are generated in
		English.</Paragraph>
      <Paragraph>The syntax of the description is: <Code>Table Name / field1 name /
		field 2 name ...</Code>
      </Paragraph>
      <ExampleSection>
         <SectionTitle>Example</SectionTitle>
         <Paragraph>
            <Code>Composed Payments/Pay-to Business Partner/Address
		Code/Name</Code>
         </Paragraph>
      </ExampleSection>
      <List>
         <ListItem>On the <GUIRef href="/baanerp/tf/cmg/tfcmg0125m000" role="session">XML Payment/Receipt Layout Lines (tfcmg0125m000)</GUIRef> tab, select the XML tag and, on the <Link href="/baanerp/tc/glossary/glossary#specific" role="glossary">appropriate</Link> menu, click <GUIRef href="/baanerp/tf/cmg/tfcmg0125m000#tfcmg0123m000" role="manual">Payment/Receipt Elements</GUIRef>.</ListItem>
         <ListItem>The <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000" role="session">Payment/Receipt Elements (tfcmg0123m000)</GUIRef> session is
		  displayed. In this case, only the used elements are shown.</ListItem>
         <ListItem>For example, IBAN is mapped to payment element 011003000000 –
		  Composed Payments/Pay-from Bank/IBAN.</ListItem>
      </List>
      <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
         <TBODY noTR="6">
            <TR no="1" isLast="false">
               <TD rowspan="1" colspan="1">Field</TD>
               <TD rowspan="1" colspan="1">Description</TD>
            </TR>
            <TR no="2" isLast="false">
               <TD rowspan="1" colspan="1">
                  <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000#tfcmg023.elcd" role="manual">Element</GUIRef>
               </TD>
               <TD rowspan="1" colspan="1">The element
				code</TD>
            </TR>
            <TR no="3" isLast="false">
               <TD rowspan="1" colspan="1">
                  <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000#element.desc" role="manual">Description</GUIRef>
               </TD>
               <TD rowspan="1" colspan="1">Description of the payment
				element in the user language, if available; otherwise it is in English. The
				descriptions are based on the field descriptions from which the elements are
				derived. The syntax is <Code>Table/Field1/Field2...</Code>
               </TD>
            </TR>
            <TR no="4" isLast="false">
               <TD rowspan="1" colspan="1">
                  <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000#tfcmg023.repa" role="manual">Receipt/ Payment</GUIRef>
               </TD>
               <TD rowspan="1" colspan="1">Indicates whether the payment method refers to a
				payment or a receipt.</TD>
            </TR>
            <TR no="5" isLast="false">
               <TD rowspan="1" colspan="1">
                  <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000#tfcmg023.eldt" role="manual">Data Type</GUIRef>
               </TD>
               <TD rowspan="1" colspan="1"> 
                  <List>
                     <ListItem>
                        <GUIRef href="/baanerp/tf/domains/cmg.xttp#attribute" role="option">Attribute</GUIRef>
                     </ListItem>
                     <ListItem>
                        <GUIRef href="/baanerp/tf/domains/cmg.xttp#bool" role="option">Boolean</GUIRef>
                     </ListItem>
                     <ListItem>
                        <GUIRef href="/baanerp/tf/domains/cmg.xttp#date" role="option">Date</GUIRef>
                     </ListItem>
                     <ListItem>
                        <GUIRef href="/baanerp/tf/domains/cmg.xttp#decimal" role="option">Decimal Number</GUIRef>
                     </ListItem>
                     <ListItem>
                        <GUIRef href="/baanerp/tf/domains/cmg.xttp#node" role="option">Node</GUIRef>
                     </ListItem>
                     <ListItem>
                        <GUIRef href="/baanerp/tf/domains/cmg.xttp#string" role="option">String</GUIRef>
                     </ListItem>
                     <ListItem>
                        <GUIRef href="/baanerp/tf/domains/cmg.xttp#utc" role="option">UTC Date</GUIRef>
                     </ListItem>
                  </List>
               </TD>
            </TR>
            <TR no="6" isLast="true">
               <TD rowspan="1" colspan="1">
                  <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000#mapped" role="manual">Map to Payment Element</GUIRef>
               </TD>
               <TD rowspan="1" colspan="1"> 
                  <Paragraph>If this check box is selected, the element is used for
				  mapping, but only if the <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000#process.mapping" role="manual">Process...</GUIRef> command in the <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000" role="session">Payment/Receipt Elements (tfcmg0123m000)</GUIRef>) has been executed.</Paragraph> 
                  <Paragraph>By default, only mapped elements are shown. To change
				  the mapping, select or clear the <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000#mapped" role="manual">Map to Payment Element</GUIRef> check box.</Paragraph>
               </TD>
            </TR>
         </TBODY>
      </TABLE>
      <Paragraph>The payment/receipt mapping elements are in turn mapped to
		tables in LN, which is
		predefined and cannot be changed.</Paragraph>
      <Paragraph>Mapping to a payment/receipt element is shown as a path
		separated by the separator defined in the layout header. Therefore, in this
		example, the IBAN code is retrieved first through the composed payments, then
		the bank, and finally through the <GUIRef href="/baanerp/tf/cmg/tfcmg0110s000#tfcmg001.iban" role="manual">IBAN</GUIRef> number (table tfcmg001.iban).</Paragraph>
      <Paragraph>To view all available mapping elements for the selected layout
		line, on the <Link href="/baanerp/tc/glossary/glossary#specific" role="glossary">appropriate</Link> menu, click <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000#show.only.used.element" role="manual">Only Used Elements</GUIRef>.</Paragraph>
      <List>
         <ListItem>To define other mappings, select or clear the <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000#mapped" role="manual">Map to Payment Element</GUIRef> check box.</ListItem>
         <ListItem>After you change a mapping, on the <Link href="/baanerp/tc/glossary/glossary#specific" role="glossary">appropriate</Link> menu, click <GUIRef href="/baanerp/tf/cmg/tfcmg0123m000#process.mapping" role="manual">Process...</GUIRef> to actualize the mapping.</ListItem>
         <ListItem>After you have completed the changes in the layout and the
		  mappings, in the <GUIRef href="/baanerp/tf/cmg/tfcmg0524m000" role="session">XML Payment/Receipt Layouts (tfcmg0524m000)</GUIRef> session, on
		  the <Link href="/baanerp/tc/glossary/glossary#specific" role="glossary">appropriate</Link> menu, click <GUIRef href="/baanerp/tf/cmg/tfcmg0524m000#activate.layout" role="manual">Activate Layout</GUIRef>.</ListItem>
         <ListItem>If an error occurs, a report is printed and the activation
		  stops.</ListItem>
      </List>
      <Paragraph>In addition to checking the correctness of the layout lines, the
		activation process generates an internal (system) sequence called Sort
		Sequence. This sequence determines the order in which the final payment file is
		generated.</Paragraph>
   </GeneralSection>
</ManualTopic>