Show TOC

Function documentationShared Properties Locate this document in the navigation structure

 

You use this function to create global variables for a project, which can be modified in a deployed project with read-only contents.

Features

These properties are available to all transactions in the project and are available in the Link Editor.

On the Meta-Inf tab page in the SAP MII Workbench, you can open a project folder to see the SharedProperties.mem file. When you open the SharedProperties.mem file, the fields available are based on the Storage Type, Cache, and Read-Only values. Some of these fields are described in the following table:

Field Name

Description

Name

Name of the shared memory property

Description

Text field for the description of the property

Namespace

The fully qualified name of the property including folder information for the current project. The property is only visible for linking within the scope of the given namespace.

Timeout

Amount of time in minutes in which a cached property exists in active memory. Only applies to cached variables.

Read-Only

If this checkbox is selected, the property cannot be changed. The returned value is always the default value.

Storage Type

One of the following types of storage used by the property:

  • Persistent

    Value is stored in the database. The system retrieves the last value written to the property during restart.

  • Inline

    Retrieved from memory; not persisted in the database. When the system is restarted, the default value is loaded. This storage type is not cluster-safe.

Type

Data type of the property

Created

Date and time the property was created

Created By

User who created the property

Modified

Date and time the property was last edited

Modified By

User who last edited the property

Protected

If this checkbox is selected, only transactions in the same folder can access this property.

Cache

If this checkbox is selected, the property is stored in memory for a specified amount of time since it was last accessed.

Default Value

Value of the property the first time it is read if no previous value had been set. This value is required for read-only properties.

If a property has a default value, it always returns a value. Persistent and inline properties work the same related to default values; however, persistent property values are stored in the database. If the property is not in memory when it is read, the system creates a new instance and the value is set to the default value. These properties can be used and then removed by the user. If the property has a default value, removing the property is similar to doing a restore to the default value. A read-only property acts like a constant, so it must have an initial value. Therefore, a default value is required.

Property names and types cannot be changed since changes could affect a transaction that uses the property without the transaction user's knowledge. If you want to rename a property or change its type, you must delete the property and re-create it. If a transaction uses the property you deleted, the system displays a warning that states the transaction may not execute.

You can also create dynamic properties. They should be marked with brackets {} so the Link E ditorcan perform the link and the Expression Edit orcan parse a property name such as Inline.Project.Var-{Transaction.Property}.

Activities

To save a property, click the Save button on the toolbar of the SAP MII Workbench.

You can modify these property values from the SAP MII administration menu by choosing   Data Services   Shared Memory  .

For more information, see Shared Memory.