Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Ashfaq Ahmed

Pages: 1 2 [3]
31
WS aka Web Scripts (Attended RPA for SAP) / 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....
 

32
WS aka Web Scripts (Attended RPA for SAP) / Usage of Leadingspace option
« on: October 21, 2019, 09:54:50 pm »
Purpose:

Leadingspace option retains any spaces that may exist before the character entered in an inputfield.

Syntax:

"leadingspace": true

Example:

The following are the steps that Illustrate the Implementation of the leadingspace option.

Steps:

1.Open the Easy Access Script file "SAPLSMTR_NAVIGATION.E0100.sjs" which can be found in the directory folder as Configured in the "guixt.sjs" file.
 And add the following code snippet to the file

 Inputfield ([4,1], "Inputfield Test", [4,8], {"name": "Inputfld"," size":26});

2. Save the File and refresh the SAP screen.
3.Enter the text  "    Testing" into the inputfield.   (using spaces in-front of the Text)
4. You can see that it would not retain any spaces.
5.Now Add leadingspace option as shown below.

   inputfield([4,5], "Inputfield Test", [4,20], {"name":"Inputfld", "size":26,"leadingspace":true});

6. Save the File and refresh the SAP screen.
7.Now You can see that it retains the spaces.

Refer to the attachments for Clarity...

Pages: 1 2 [3]