setcursor-using setcursor with table cells You can use the setcursor command to place the cursor into a table cell. In this example we will assign values to several fields on the VA01 initial screen. Note: The setcursor command wil only work with native SAP tables - it does not currently work with GuiXT tables. 1. Launch SAP and navigate to the VA01 initial screen: 2. Open the 'SAPMV45A.E0101.sjs' script file, and enter the following code to create the toolbar pushbutton that will trigger the actions. Create the file if it does not already exist. pushbutton([TOOLBAR], "SetCursor", "/nva01", {"process":z_setcursor}); 3. Create the function that will actually execute the process. An example is shown below: function z_setcursor() { onscreen 'SAPMV45A.0101' set("F[Order Type]", "OR"); set("F[Sales Organization]", "1000"); set("F[Distributions Channel]", "10"); set("F[Division]", "00"); enter(); onscreen 'SAPMV45A.4001' set("F[Sold-to party]", "1460"); set("F[ship-to party]", "1460"); set("cell[All items, Material,1]", "t-bw05-03"); set("cell[All items, Order Quantity, 1]", "1"); setcursor("cell[All items, Order Quantity, 2]"); enter(); } 4. Save the changes and refresh the SAP screen. THen click the SetCursor toolbar pushbutton to initiate the process. When the operation is complete, the VA01 Overview screen will appear as follows: Page 1 / 2 (c) 2016 Liquid UI | Synactive | GuiXT <punil.shah@guixt.com> | 2016-10-01 08:09 URL: http://www.guixt.com/knowledge_baseindex.php?action=artikel&cat=0&id=227&artlang=en Parent topic: setcursor Unique solution ID: #1226 Author: Prasana Raya Last update: 2016-05-03 12:18 Page 2 / 2 (c) 2016 Liquid UI | Synactive | GuiXT <punil.shah@guixt.com> | 2016-10-01 08:09 URL: http://www.guixt.com/knowledge_baseindex.php?action=artikel&cat=0&id=227&artlang=en Powered by TCPDF (www.tcpdf.org)