CREATE COLUMN TABLE "SBODEMOPT"."MIV2" ("MinvNum" INTEGER CS_INT, "DocNum" INTEGER CS_INT, "DocType" NVARCHAR(20) NOT NULL , "DocDate" LONGDATE CS_LONGDATE, "LineNum" INTEGER CS_INT NOT NULL , "ItemCode" NVARCHAR(50), "ItemName" NVARCHAR(200), "ItemPrice" DECIMAL(21,6) CS_FIXED, "ItemCurr" NVARCHAR(3), "ItemRate" DECIMAL(21,6) CS_FIXED, "ItemQuan" DECIMAL(21,6) CS_FIXED, "ItemType" NVARCHAR(1) DEFAULT 'I', "ItemTotal" DECIMAL(21,6) CS_FIXED, "TaxAmount" DECIMAL(21,6) CS_FIXED, "LineTotal" DECIMAL(21,6) CS_FIXED, "Entry" INTEGER CS_INT NOT NULL , "AbsEntry" INTEGER CS_INT NOT NULL , PRIMARY KEY ("Entry", "DocType", "AbsEntry", "LineNum")) UNLOAD PRIORITY 5  AUTO MERGE 