Author Topic: columnheader command  (Read 8187 times)

Ashfaq Ahmed

  • Administrator
  • Newbie
  • *****
  • Posts: 32
    • View Profile
columnheader command
« on: November 04, 2019, 09:53:52 PM »
Purpose:
 
To change the column header (COLUMN NAME/LABEL) on a SAP Table.
 
Syntax:
 
columnheader("[TableName,ColumnName]", "NewColumnName");
 

Note:
1. Does not take any options.
2. Can only be used on native SAP table columns, it will not work on LIQUID UI table columns.

Example

Steps on VA01 Overview screen: The purpose is to change the column name/label "Material" to "Material list" in "All Items" Table.
 
1.Create a script file "SAPMV45A.E4001.sjs" with the following code and save it in your WS scripts directory as configured in "guixt.sjs" file.
                             
                              columnheader("[All items,Material]", "Material List");
 
2.Navigate to the transaction VA01. Input "Order type" as "OR" and hit enter.
 
3.You will see that the Column "Material" is changed with "Material list".
 
Refer to the attachment for further reference....
 
« Last Edit: November 05, 2019, 01:28:43 PM by Rahul Gera »