Purpose
With columnheader(), you can change the name of the column in SAP table.
This command can change the column name in a table control in an SAP screen. It can also be used to add an icon and tooltip to a table header.
Note: columnheader can only be used on native SAP table columns. It will not work on Liquid UI table columns.
Syntax
- For Native SAP tables
columnheader("Col_name", "new_Col_Name");
This syntax below is used when there are multiple tables on the screen.
columnheader("table_name, column_name","new_Col_name");
Available Options
The columnheader command does not take any options.
Example
To show the usage of columnheader() command, we will use an existing table from VA02 Create Standard Order: Overview section that shows scenario of usage of this command:
Script Details
SAPMV45A.E4001.sjs
columnheader("All items,Material","Product");