columnheader

The columnheader command is used to change column headings in WS.

Important: columnheader can only be used on native SAP table columns. It will not work on GuiXT table columns.

This command can can change the column headers in a table control in an SAP screen. It also can be used to add an icon and tooltip to a table header. There are three possible syntaxes, which are as follows. The first is used when only a single table is present on a screen:

columnheader("Col_name", "new_Col_Name");

The two syntaxes below are interchangeable and are used when there are multiple tables on the screen in question:

columnheader("[table_name, Col_Name]", "new_Col_Name");
columnheader("table_name, column_name", "new_Col_name");

Options

The columnheader command does not take any options.