General ledger field attribute

The glorder attribute is set in the GLCOMP elements in fields that identify general ledger (GL) accounts, such as a GLDEBITACCT field. Each GLCOMP element contains part of the account number and the glorder attribute identifies how to combine these elements to construct the GL value.

In outbound XML messages, the value of a general ledger type field, including delimiters, is set in the VALUE child element within the field. The components of the value, based on the database definition of the components, are included in GLCOMP elements. The glorder attribute in each GLCOMP element identifies the order of the component, starting from 0 (zero), to a maximum of 20. In the following example, the account number has three GL components

<GLDEBITACCT>
    <VALUE>6600-800-SAF</VALUE>
    <GLCOMP glorder="0">6600</GLCOMP>
    <GLCOMP glorder="1">800</GLCOMP>
    <GLCOMP glorder="2">SAF</GLCOMP>
</GLBDEBITACCT>

Inbound XML messages can set a GL account number in the VALUE element or in GLCOMP elements with associated glorder attributes. If the message includes GLCOMP elements, the account number is recreated based on the delimiters defined in the GLCONFIGURE table. If both VALUE and GLCOMP elements are included in the message, the VALUE element is used and the GLCOMP elements are ignored.