CREATE COLUMN TABLE "SBODEMOPT"."GBI7" ("HistoryId" INTEGER CS_INT NOT NULL , "RowId" INTEGER CS_INT NOT NULL , "DocDate" NVARCHAR(8), "DocType" NVARCHAR(12), "JrnEntryNo" NVARCHAR(20), "LnNo" INTEGER CS_INT, "Remark" NVARCHAR(50), "AcctNo" NVARCHAR(15), "Currency" NVARCHAR(3), "Debit" DECIMAL(21,6) CS_FIXED, "Credit" DECIMAL(21,6) CS_FIXED, "FCDebit" DECIMAL(21,6) CS_FIXED, "FCCredit" DECIMAL(21,6) CS_FIXED, "Rate" DECIMAL(21,6) CS_FIXED, "Quantity" DECIMAL(21,6) CS_FIXED, "UnitPrice" DECIMAL(21,6) CS_FIXED, "EvaGrp" NVARCHAR(254), "SettMeth" NVARCHAR(20), "BillType" NVARCHAR(20), "BillNo" NVARCHAR(30), "BillDate" NVARCHAR(8), "AttmtNum" SMALLINT CS_INT, "Creator" NVARCHAR(155), "Approver" NVARCHAR(155), "Bookkeeper" NVARCHAR(155), "Cashier" NVARCHAR(155), "Posted" NVARCHAR(1) DEFAULT '1', "Reversed" NVARCHAR(1) DEFAULT '0', "DocNum" NVARCHAR(20), PRIMARY KEY ("HistoryId", "RowId")) UNLOAD PRIORITY 5  AUTO MERGE 