Show TOC

Function documentationWrite File Locate this document in the navigation structure

 

You use this action to create or write to a file.

Features

On the configuration screen, you can select the Use BOM checkbox to write out a byte order mark (BOM) for UTF-8 in front of the file. It only writes out in CREATE mode. The BOM is required by specific programs, such as in Microsoft Excel where it is used to recognize a UTF-8 CSV file that contains Unicode characters.

The properties in the Link Editorfor this action are listed in the following table:

Property

Data Type

Access

Description

Path

String

In and out

Identifies the fully qualified path of the file you want to create or modify. For the action to be successful, the Internet Guest Account user for the machine must have write access to the directory.

For example, if you want to create or modify the file index.htm, the file path is c:\Inetpub\wwwroot\index.htm.

If the file exists in the SAP MII Web content, you can define the path as follows:

WEB://<ProjectName>/<FolderPath>/index.htm

db://<ProjectName>/WEB/<FolderPath>/index.htm

Text

String

In and out

The data written to the file.

Mode

String

In and out

One of the following actions to be performed:

  • Create

  • Append

    You can create a new file where its name and location are specified by the path, or you can append data to the file.

Success

Boolean

Out

Indicates whether the action succeeded or failed. If it failed, errors are displayed in the server trace log.