Purpose
The column() allows you to add new columns in both native SAP tables and Liquid UI tables. Furthermore, you can use it to add checkboxes and push buttons within these columns.
This article explains the various ways to utilize the column().
Syntax
column() can be used in multiple formats.
Format 1: Add column to native SAP tables
// Creates a column to SAP tables column('heading',{"table":"[tablename]","name":value,"size":value,"option":value..});
Format 2: Add column to table
// Creates a column in the table on the screen column('heading',{"name":value,"size":value,"option":value..}); // Size option is mandatory to create a column column('heading',{"size":value});

Note: Click here for details on how to create a column in the SAP tables using various options.
Format 3: Add a column inside a defined table
Adds a column to the mentioned table at the specified row and column.
// Creates a column in the mentioned table table([startrow,startcol],[endrow,endcol],{"name":"table name","title":"table title","rows":number}); column('heading',{"table":"[tablename]","name":value,"size":value,"option":value..});
Properties
- heading - Column heading
Available Options
You can use the following options with the column():
|
"alignright": true - Aligns the field value to the right when set to 'true'. |
|
|
"checkbox": true - Displays the column value as a checkbox if this option is set to true. Possible values are X and ' '. |
|
|
"intensified": true - Displays the value in red color if this option is set to 'true'. |
|
|
"keycolumn": SAPColumnName - When you add or delete rows in an SAP table, the row number 'absrow' can change, and the corresponding index may disappear. To maintain consistent row references, you can use the 'keycolumn' option, which relates the new column with the SAP column. This allows automatic indexing of rows with the custom column based on the value of the assigned keycolumn. |
|
|
"label": push button name - Adds an icon with text on the push button using the notation "@iconid@text". |
|
|
"name": string - Defines the column's internal name, allowing scripts to refer to it. |
|
|
"numerical": true - Allows only numeric input when set to 'true'. |
|
|
"position": value - Determines the column number within the table. If not specified, the new column will be created as the last column in the table. |
|
|
"pushbutton": true - Converts the column value into a push button. |
|
|
"process": process name -Executes a function when the push button is clicked. |
|
|
"readonly": true - Designates the column as non-editable. |
|
|
"size": value - TSets the size of the column in terms of the number of characters. |
|
|
"searchhelp": true - Defines the searchhelp (F4) for the new column. |
|
|
"table": table name - Defines the table name where the column will be created. |
|
|
"techname": SAPcolname - Defines the technical name of the column. |
|
|
"uppercase": true - Converts entered values to uppercase. |
Options Detail
Example
The usage of the column() is demonstrated on the existing All items table, as shown in the image below.

// Allows modification of column position and sets it to read-only column('MaterialType',{"table":"[All Items]","name":"va01_material","size":10,"position":1,"readonly":true}); // Adds techname and intensified to the column column('Taxname',{"table":"[All items]","size":10,"name":"va02_tax1","position":2,"techname":"VBAP-WERKS","intensified":true}); // Adds keycolumn and checkbox option column('Tax1',{"table":"[All items]","size":5,"name":"va02_tax","checkbox":true,"keycolumn":"Item","position":3}); // Adds searchhelp and alignright option column('Material Tested',{"table":"All items","size":10,"name":"z_testcol","position":4,"alignright":true,"searchhelp":"S_MAT1","shname":"MATNR","shname1":"VBAB_MATNR","shdest1":"V[z_testcol_desc]"}); // Sets name and size to the column column('SU1',{"table":"[All Items]","name":"va02_SU1","size":5,"numerical":true,"position":5}); // Sets uppercase and name option to the column column('Material Description',{"table":"[All items]","size":10,"name":"va01_clitm","position":6,"uppercase":true});
Usage Details
- Assign values to Liquid UI table with column()
- Hiding SAP Columns using column()
- Add a column into the SAP table using column()
- Arrays using Key/Value Pairs with column()
- Clear Liquid UI table with column()
- Simplified view with table command and column()
- Sort table values based on the column with column()
- Assigning values to table cells





















