CREATE COLUMN TABLE "SBODEMODE"."ELS1" ("RunId" INTEGER CS_INT NOT NULL , "VatViewAbs" INTEGER CS_INT NOT NULL , "Code" NVARCHAR(8) NOT NULL , "Name" NVARCHAR(50), "SrcObjType" NVARCHAR(20), "DocNum" INTEGER CS_INT, "Category" NVARCHAR(1) NOT NULL , "IsEC" NVARCHAR(1), "IsAcq" NVARCHAR(1), "VatPercent" DECIMAL(21,6) CS_FIXED, "EqPercent" DECIMAL(21,6) CS_FIXED, "DocDate" LONGDATE CS_LONGDATE, "TaxDate" LONGDATE CS_LONGDATE, "CANCELLED" NVARCHAR(1), "BaseSum" DECIMAL(21,6) CS_FIXED, "VatSum" DECIMAL(21,6) CS_FIXED, "EqSum" DECIMAL(21,6) CS_FIXED, "DeductSum" DECIMAL(21,6) CS_FIXED, "SrcObjAbs" INTEGER CS_INT, "BaseObjTyp" NVARCHAR(20), "TaxAbs" INTEGER CS_INT, "InvNum" INTEGER CS_INT, "InvDate" LONGDATE CS_LONGDATE, "InvAmnt" DECIMAL(21,6) CS_FIXED, "InvVatAmnt" DECIMAL(21,6) CS_FIXED, "VendorRef" NVARCHAR(200), "BaseSumSc" DECIMAL(21,6) CS_FIXED, "VatSumSc" DECIMAL(21,6) CS_FIXED, "EqSumSC" DECIMAL(21,6) CS_FIXED, "DedctSumSC" DECIMAL(21,6) CS_FIXED, "TaxType" NVARCHAR(1), "CrditDebit" NVARCHAR(1), "CardCode" NVARCHAR(15), "CardName" NVARCHAR(200), "ReportType" INTEGER CS_INT, "SrcLineNum" INTEGER CS_INT, "VatDate" LONGDATE CS_LONGDATE, "VatIdUnCmp" NVARCHAR(32), "DocLicTrad" NVARCHAR(32), "BPLicTrad" NVARCHAR(32), "AddID" NVARCHAR(64), "OrdinLNum" INTEGER CS_INT, "EqBaseSum" DECIMAL(21,6) CS_FIXED, "IsSplitPay" NVARCHAR(1), "CAOutCode" NVARCHAR(8), "CABasSum" DECIMAL(21,6) CS_FIXED, "CABasSumSc" DECIMAL(21,6) CS_FIXED, "CAVatSum" DECIMAL(21,6) CS_FIXED, "CAVatSumSc" DECIMAL(21,6) CS_FIXED, "VatSumSrc" NVARCHAR(1), "VatType" INTEGER CS_INT, "GoddsShip" NVARCHAR(1), "ServSupply" NVARCHAR(1), PRIMARY KEY ("RunId", "VatViewAbs", "Code", "Category")) UNLOAD PRIORITY 5  AUTO MERGE 