CMA_PART

Defines an account part. An array of these structures is included in the CMA_ACCTPART structure, which a filter DLL fills in when the Import Wizard calls the DLL's CMA_LoadCompany function. For more information about rollups and account parts, see "Remarks" in the topic, "CMA_ACCTPART."

Syntax

typedef struct tagCMA_PART {
    CHAR    szPartName[64];
    LONG    nAccountType;
    CHAR    szPartType[8];
    INT    nFieldSize;
    CHAR    szRollupOn[256];
    CHAR    szBriefHeading[13];
} CMA_PART;

szPartName   A null-terminated array that contains the name of each account part (for example, "GLAccount," "Company," and "Department") and the name of each rollup (for example, "StandardGL," "Division," and "ProjectType"). The number of elements in this array is the sum of the nPartCount and nRollupCount values, where elements zero through nPartCount — 1 are account parts and the remaining nRollupCount elements are rollup names. This member is required (must not be NULL).

nAccountType   A number that identifies the type of account part. This can be any of the values from the CMA_ACCOUNTTYPE enumeration. For more information, see the topic, CMA_ACCOUNTTYPE. This member is required (must not be NULL).

szPartType   A null-terminated array that contains the type name of each account part. A type name can be any of the strings listed in the following table.

Type name Description
"Prime" Represents the single required Prime account part, which is typically the GLAccount part that specifies the account type (asset, liability, equity, revenue, or expense) as defined by one of the account categories listed in the Account Categories table.
"Rollup" Represents a simple rollup.
"Other" Represents all non-Prime account parts.

This member is required (must not be NULL).

nFieldSize   The number of characters in each account-part code (for example, five for projects with codes such as 12013, 24923, and A14R7). The field must contain at least four characters; codes containing fewer than four characters must be padded with space or zeros. This member is required (must not be NULL).

szRollupOn   A null-terminated string that contains the name of the account part the specified rollup is associated with. For example, if the current element is a rollup named "Division" and this is a rollup for Department, szRollupOn contains "Department" for this element. The szRollupOn member must be an account part, not a rollup, because AAP does not support rollups on other rollups. This member is used only if the structure defines a rollup (that is, if nPartNumber is greater than nPartCount).

szBriefHeading   A null-terminated string that contains a shorter name for the account part or rollup. This string is used in reports that have a narrow column width. This member is required (must not be NULL).

See Also

CMA_LoadCompany, CMA_ACCTPART, CMA_ACCOUNTTYPE