CREATE TABLE   R5COMMODITIES(
CMD_CODE nvarchar(15),
CMD_DESC nvarchar(80),
CMD_CLASS nvarchar(8),
CMD_ORG nvarchar(15),
CMD_CLASS_ORG nvarchar(15),
CMD_NOTUSED nvarchar(1),
CMD_UOM nvarchar(30),
CMD_EMISSIONCATEGORY nvarchar(8),
CMD_UPDATED datetime,
DMLTYPE nchar(1) NULL DEFAULT ('N'),
PRIMARY KEY (CMD_CODE)
);
INSERT INTO R5SYSCOLUMNS VALUES ('R5COMMODITIES', 'CMD_CODE','+', NULL, NULL, NULL, NULL, NULL, NULL, 'N');

INSERT INTO R5LISTENTITY(LET_DATAGRID,LET_SEQNO,LET_GROUPID,LET_DELINSUPD,LET_FILTER,LET_TABLENAME,LET_ORGKEY,LET_CONNECTEDMODE,
LET_ALWAYSDOWNLOAD)
VALUES('SCCOMM_IPAD',47,0,3,NULL,'R5COMMODITIES','CMD_ORG','-','-');

UPDATE R5APPSETTINGS SET AST_VALUE = '11412' WHERE AST_NAME='DBVERSION';
