CREATE COLUMN TABLE "SBODEMOUS"."OAIM" ("MessageID" INTEGER CS_INT NOT NULL , "DocEntry" INTEGER CS_INT, "TransType" INTEGER CS_INT DEFAULT -1, "DocLineNum" INTEGER CS_INT, "Quantity" DECIMAL(21,6) CS_FIXED, "EffectQty" DECIMAL(21,6) CS_FIXED, "LocType" SMALLINT CS_INT, "LocCode" NVARCHAR(8), "TotalLC" DECIMAL(21,6) CS_FIXED, "TotalFC" DECIMAL(21,6) CS_FIXED, "BaseAbsEnt" INTEGER CS_INT, "BaseType" INTEGER CS_INT DEFAULT -1, "Currency" NVARCHAR(3), "AccumType" INTEGER CS_INT DEFAULT 0, "ActionType" INTEGER CS_INT DEFAULT 5, "ExpensesLC" DECIMAL(21,6) CS_FIXED, "ExpensesFC" DECIMAL(21,6) CS_FIXED, "ItemCode" NVARCHAR(50), "DocDate" LONGDATE CS_LONGDATE, "DocRate" DECIMAL(21,6) CS_FIXED, "JrnlMemo" NVARCHAR(50), "BaseLine" INTEGER CS_INT DEFAULT -1, "CreateTime" SMALLINT CS_INT, "CreateDate" LONGDATE CS_LONGDATE, "OcrCode" NVARCHAR(8), "OcrCode2" NVARCHAR(8), "OcrCode3" NVARCHAR(8), "OcrCode4" NVARCHAR(8), "OcrCode5" NVARCHAR(8), "DocPrice" DECIMAL(21,6) CS_FIXED, "TreeType" NVARCHAR(1) DEFAULT 'N', "ApplObj" INTEGER CS_INT DEFAULT -1, "AppObjAbs" INTEGER CS_INT DEFAULT -1, "AppObjType" NVARCHAR(1), "AppObjLine" INTEGER CS_INT DEFAULT -1, "TransSeqRf" INTEGER CS_INT DEFAULT -1, "LayerIDRef" INTEGER CS_INT DEFAULT -1, "VersionNum" NVARCHAR(13), "PriceRate" DECIMAL(21,6) CS_FIXED, "PriceCurr" NVARCHAR(3), "Price" DECIMAL(21,6) CS_FIXED, "CIShbQty" DECIMAL(21,6) CS_FIXED, "SubLineNum" INTEGER CS_INT DEFAULT -1, "PrjCode" NVARCHAR(20), "UseDocPric" NVARCHAR(1) DEFAULT 'N', "Location" INTEGER CS_INT, "BSubLineNo" INTEGER CS_INT DEFAULT -1, "AppSubLine" INTEGER CS_INT DEFAULT -1, "DocAction" INTEGER CS_INT, PRIMARY KEY ("MessageID")) UNLOAD PRIORITY 5  AUTO MERGE 