CREATE COLUMN TABLE "SBODEMOUS"."GPA1" ("AbsEntry" INTEGER CS_INT NOT NULL , "LineId" INTEGER CS_INT NOT NULL , "ItemCode" NVARCHAR(50), "ItemName" NVARCHAR(200), "DocType" NVARCHAR(20), "DocNum" INTEGER CS_INT, "DocAbs" INTEGER CS_INT, "DocLineNum" INTEGER CS_INT, "ManagedBy" INTEGER CS_INT DEFAULT -1, "Selected" NVARCHAR(1) DEFAULT 'Y', "DistNumber" NVARCHAR(36), "PostDate" LONGDATE CS_LONGDATE, "WhsCode" NVARCHAR(8), "Quantity" DECIMAL(21,6) CS_FIXED, "CogsAcct" NVARCHAR(15), "CogsAmnt" DECIMAL(21,6) CS_FIXED, "SalesAmnt" DECIMAL(21,6) CS_FIXED, "GrssProfit" DECIMAL(21,6) CS_FIXED, "COGSByCC" DECIMAL(21,6) CS_FIXED, "GPByCC" DECIMAL(21,6) CS_FIXED, "DeltaGP" DECIMAL(21,6) CS_FIXED, "SalesPrice" DECIMAL(21,6) CS_FIXED, "BatchQt" DECIMAL(21,6) CS_FIXED, "SnBAbs" INTEGER CS_INT, "AccTotal" DECIMAL(21,6) CS_FIXED, "AccQty" DECIMAL(21,6) CS_FIXED, "ActionType" INTEGER CS_INT DEFAULT 5, "SBAccTotal" DECIMAL(21,6) CS_FIXED, "SBAccQty" DECIMAL(21,6) CS_FIXED, "BaseType" NVARCHAR(20), "Execute" NVARCHAR(1) DEFAULT 'Y', "SBCogsAmnt" DECIMAL(21,6) CS_FIXED, "SBSaleAmnt" DECIMAL(21,6) CS_FIXED, "SBGrssProf" DECIMAL(21,6) CS_FIXED, "SBGrPrPerc" DECIMAL(21,6) CS_FIXED, "GrPrPerc" DECIMAL(21,6) CS_FIXED, "GPPercByCC" DECIMAL(21,6) CS_FIXED, "DeltaGPLn" DECIMAL(21,6) CS_FIXED, "Applied" DECIMAL(21,6) CS_FIXED, "SBAccTtAdj" DECIMAL(21,6) CS_FIXED, "IsMixed" NVARCHAR(1) DEFAULT 'N', "CogsAmByCC" DECIMAL(21,6) CS_FIXED, "GrssPrByCC" DECIMAL(21,6) CS_FIXED, "LineType" NVARCHAR(1) DEFAULT 'N', "ChDocType" NVARCHAR(20), "ChDocAbs" INTEGER CS_INT, "WasQty" DECIMAL(21,6) CS_FIXED, "WasCogs" DECIMAL(21,6) CS_FIXED, "WasSales" DECIMAL(21,6) CS_FIXED, "WasPrice" DECIMAL(21,6) CS_FIXED, "WasGrProf" DECIMAL(21,6) CS_FIXED, "BaseAbs" INTEGER CS_INT, "WasNewCogs" DECIMAL(21,6) CS_FIXED, "ChDocLine" INTEGER CS_INT, PRIMARY KEY ("AbsEntry", "LineId")) UNLOAD PRIORITY 5  AUTO MERGE 