CREATE COLUMN TABLE "SBODEMOPT"."OBVL" ("AbsEntry" INTEGER CS_INT NOT NULL , "DocEntry" INTEGER CS_INT, "DocLineNum" INTEGER CS_INT, "DocType" INTEGER CS_INT DEFAULT -1, "BaseType" INTEGER CS_INT DEFAULT -1, "ActionType" INTEGER CS_INT DEFAULT 5, "AccumType" INTEGER CS_INT DEFAULT 0, "ManagedBy" INTEGER CS_INT DEFAULT -1, "CreateDate" LONGDATE CS_LONGDATE, "CreateTime" SMALLINT CS_INT, "ItemCode" NVARCHAR(50), "SysNumber" INTEGER CS_INT, "DistNumber" NVARCHAR(36), "MdAbsEntry" INTEGER CS_INT, "TrValApply" NVARCHAR(1) DEFAULT 'Y', "TransValue" DECIMAL(21,6) CS_FIXED, "InvValue" DECIMAL(21,6) CS_FIXED, "CogsValue" DECIMAL(21,6) CS_FIXED, "Quantity" DECIMAL(21,6) CS_FIXED, "OverlapQty" DECIMAL(21,6) CS_FIXED, "CogsQty" DECIMAL(21,6) CS_FIXED, "CalcPrice" DECIMAL(21,6) CS_FIXED, "PriceDiff" DECIMAL(21,6) CS_FIXED, "InvDiff" DECIMAL(21,6) CS_FIXED, "Balance" DECIMAL(21,6) CS_FIXED, "AccTotal" DECIMAL(21,6) CS_FIXED, "AccQty" DECIMAL(21,6) CS_FIXED, "AccNegQ" DECIMAL(21,6) CS_FIXED, "ILMEntry" INTEGER CS_INT, "ITLEntry" INTEGER CS_INT, "CostQty" DECIMAL(21,6) CS_FIXED, "Cost" DECIMAL(21,6) CS_FIXED, "BaseDocEn" INTEGER CS_INT, "BaseLnNum" INTEGER CS_INT, "DeltaAccT" DECIMAL(21,6) CS_FIXED, "RowAction" INTEGER CS_INT, PRIMARY KEY ("AbsEntry")) UNLOAD PRIORITY 5  AUTO MERGE ;
CREATE CPBTREE INDEX "OBVL_ILM_ENT" ON "SBODEMOPT"."OBVL" ( "ILMEntry" ASC )