CREATE COLUMN TABLE "SBODEMOPT"."IQI1" ("DocEntry" INTEGER CS_INT NOT NULL , "DocLineNum" INTEGER CS_INT NOT NULL , "ItemCode" NVARCHAR(50), "ItemName" NVARCHAR(200), "InvntryUom" NVARCHAR(100), "OnHandBef" DECIMAL(21,6) CS_FIXED, "Price" DECIMAL(21,6) CS_FIXED, "Quantity" DECIMAL(21,6) CS_FIXED, "Currency" NVARCHAR(3), "Rate" DECIMAL(21,6) CS_FIXED, "IOffIncAcc" NVARCHAR(15), "DOffDecAcc" NVARCHAR(15), "OcrCode" NVARCHAR(8), "WhsCode" NVARCHAR(8), "DocTotal" DECIMAL(21,6) CS_FIXED, "DocTotalFC" DECIMAL(21,6) CS_FIXED, "DocTotalSy" DECIMAL(21,6) CS_FIXED, "OcrCode2" NVARCHAR(8), "OcrCode3" NVARCHAR(8), "OcrCode4" NVARCHAR(8), "OcrCode5" NVARCHAR(8), "ObjType" NVARCHAR(20) DEFAULT '310000001', "Project" NVARCHAR(20), "BarCode" NVARCHAR(254), "InvUoM" NVARCHAR(1), "InvUoMQty" DECIMAL(21,6) CS_FIXED, "BinEntry" INTEGER CS_INT, "FirmCode" SMALLINT CS_INT, "SuppCatNum" NVARCHAR(50), "CardCode" NVARCHAR(15), "Remark" NVARCHAR(254), "Location" INTEGER CS_INT, "ItmsGrpCod" SMALLINT CS_INT DEFAULT 100, "LogInstanc" INTEGER CS_INT, "BinNegQty" NVARCHAR(1) DEFAULT 'N', "VisOrder" INTEGER CS_INT, "ActPrice" DECIMAL(21,6) CS_FIXED, "PostValueL" DECIMAL(21,6) CS_FIXED, "PostValueS" DECIMAL(21,6) CS_FIXED, PRIMARY KEY ("DocEntry", "DocLineNum")) UNLOAD PRIORITY 5  AUTO MERGE ;
CREATE INDEX "IQI1_ITEM_CODE" ON "SBODEMOPT"."IQI1" ( "ItemCode" ASC )