I have a user table created form sdk. I want to add an column to the table. I want to add a integer column. if I use the following code in SAP :
oUserFieldsMD.TableName = "CODEGENERATOR";
oUserFieldsMD.Name = "ID";
oUserFieldsMD.Description = "Inserted ID";
oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Numeric;
// Adding the Field to the Table
lRetCode = oUserFieldsMD.Add();
it add me an smallint column . If i try to set the edit size gives me an error. Here is the code when i try to set the edit size
oUserFieldsMD.TableName = "CODEGENERATOR";
oUserFieldsMD.Name = "ID";
oUserFieldsMD.Description = "Inserted ID";
oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Numeric;
oUserFieldsMD.EditSize = 254;
// Adding the Field to the Table
lRetCode = oUserFieldsMD.Add();
does any one have any sugestion?