The columnwidth command is used to define the width in pixels of column controls in WS.
This command sets the size of a given column in a table by specifying the actual size in pixels. The value must be set to less than the default size of the column as it is used primarily to restrict entry. The size cannot be set to a value greater than the column's original size. The columnwidth command differs slightly from the columnsize command although they are very similar in function. The major difference is that with the columnwidth command, the column size can be changed in a script with the 'size' option. However, once a size is set with columnsize, it cannot be changed in a script. There are three possible syntaxes. The first is used if only a single table is present on a SAP screen:
columnwidth("[column_name]", value);
The other two syntaxes are interchangeable and are used when multiple tables are present on a SAP screen:
columnwidth("[Table_name, column]", value); columnwidth("table_name, column_name", value);
The columnwidth command does not take any options.