XML elements

Use 'XML Structure Section. Open Element' (CMS009) to define the XML elements. Use option 11='XML Structure. Open Section' in (CMS006) to open (CMS007). Use option 11='XML Structure. Open Section Elements' in (CMS007) to open (CMS009).

The elements are the lowest level in the XML structure and define the content to be included in the XML file. The content is either data from a field in an M3 Business Engine table, a calculated field, or a manually specified value.

The logic and functionality available in (CMS009) is highly dependent on the format selected in (CMS006).

Common functionality used for all formats

Format 1 - M3 standard document

Element sequence number

Used as the sequence of the element within a section in the XML file. The sequence number is divided into groups:

Element sequence Comments
0001-3999 Reserved for predefined elements in the standard XML structures delivered (M3_STD_0x-0x). You cannot add or delete elements in this group
4001-6998 Reserved for predefined elements in the standard XML structures delivered (M3_STD_0x-0x) where the table is unique for country configuration component. You cannot add or delete elements in this group
7001-9998 Elements can be added, changed, or deleted

Element name

If the source of data is set to 1-‘Field’ the element is set with these rules:

XML example

XML example with three elements

<UIIVNO Label="Invoice no">201401561</UIIVNO>

<VFORNO Label="CO no">1000025077</VFORNO>

<OAWHLO Label="Warehouse">110</OAWHLO>

Format 2 - M3 standard document

For M3 standard report format, elements are structured in row and column format. Every column must belong to a row. In (CMS009), Start and end elements indicate a row, and all elements between those start and end elements belong to that row.

Format 3 - Open

For Open format, there is no additional functionality or other limitations.

Related topics