Liquid UI - WS Reference Library

File Handling


Prerequisites


Runs On

  SAP GUI Android iOS WM Web
Direct Connect          
Liquid UI Server Connect        

Purpose

This is a basic example of opening a file, appending to it, and then closing the file. In this example we use a .txt file however you can use .csv and .xls as well.

User Interface

Log into SAP and on the Easy Access screen, the script will run. Initially, our .txt file will be blank but after the script runs, we should see the following:



Liquid UI Script

//SAPLSMTR_NAVIGATION.E0100.sjs

// Author: Synactive, Inc. [1065 E. Hillsdale Blvd, Foster City, CA, 94404, USA]
// Email: support@guixt.com; sales@guixt.com;
// Contact: 650.341.3310
// Version: 1.0.0.0
// Open the file up
openfile("filenames.txt", {"delimiter":";", "output":true});
name1 = "John";
name2 = "Nancy";
name3 = "Alexander";
// Append to the file, set the variables you want to carry over as true
appendfile("filenames.txt", {"name1":true, "name2":true, "name3":true});
// Always close the file after
closefile("filenames.txt");