## 4.2.15.9.2.3.6  CL\_BALI\_FREE\_TEXT\_SETTER (Interface IF\_BALI\_FREE\_TEXT\_SETTER)
To add a new free text to an application log, an object of class CL\_BALI\_FREE\_TEXT\_SETTER is used. The public interface of the instance methods is IF\_BALI\_FREE\_TEXT\_SETTER . It contains the interface IF\_BALI\_ITEM\_SETTER .
## Public Attributes
## Name
| CATEGORY                   | Category of the item                                            |
|----------------------------|-----------------------------------------------------------------|
| (from IF_BALI_ITEM_SETTER) | Contains fixed value: IF_BALI_CONSTANTS=>C_CATE- GORY_FREE_TEXT |
## Public Methods
Create an instance of the free text class and set the text and the severity:
CREATE (static)
| Name                 | Description                                                                                                 |
|----------------------|-------------------------------------------------------------------------------------------------------------|
| Importing parameters | Importing parameters                                                                                        |
| SEVERITY             | (Optional): Severity of the message ('Error', 'Warning', etc) Default: IF_BALI_CONSTANTS=>C_SEVERITY_STATUS |
## Description
## Name
TEXT
Returning parameter
FREE\_TEXT
Set the free text and severity:
## SET\_TEXT
| Name                 | Description                                                                                                 |
|----------------------|-------------------------------------------------------------------------------------------------------------|
| Importing parameters |                                                                                                             |
| SEVERITY             | (Optional): Severity of the message ('Error', 'Warning', etc) Default: IF_BALI_CONSTANTS=>C_SEVERITY_STATUS |
| TEXT                 | Free text                                                                                                   |
| Returning parameter  |                                                                                                             |
| NEW_FREE_TEXT        | Reference to current free text object                                                                       |
Set the level of detail of the free text:
SET\_DETAIL\_LEVEL
## Name
Importing parameter
DETAIL\_LEVEL
Returning parameter
NEW\_FREE\_TEXT
Description
Detail level of the free text
Allowed values: Number between '1' and '9' or ' '
Reference to current free text object
Set the free text context using a data dictionary structure:
## SET\_CONTEXT
## Name
Importing parameter
CONTEXT
Returning parameter
NEW\_FREE\_TEXT
Exceptions (inherit from CX\_BALI\_RUNTIME)
## Description
Free text
Free text object: A reference to interface
IF\_BALI\_FREE\_TEXT\_SETTER
## Description
Structure with the context data
Reference to the current free text object
## Name
## Description
| CX_BALI_INVALID_PARAMETER   | • Field CONTEXT is not based on a database table or structure that is defined in the data dictionary • The total size of field CONTEXT is longer than 256 char- acters   |
|-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
## Get all free text values:
GET\_ALL\_VALUES
## Name
## Description
| Exporting parameters   |                                                                                                                                                                                                                                                                                                    |
|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| DETAIL_LEVEL           | Detail level of the free text Number between '1' and '9' or ' '                                                                                                                                                                                                                                    |
| SEVERITY               | Severity of the free text ('Error', 'Warning', etc)                                                                                                                                                                                                                                                |
| TEXT                   | Content of the free text                                                                                                                                                                                                                                                                           |
| CONTEXT_DATA           | Structure and content of the context. CONTEXT_DATA has the following fields: • STRUCTURE_NAME : Nameof the data dictionary structure which was used for the context data • CONTENT : The content of the context data. The con- tent is stored in a character field with a length of 256 characters |
Check whether the free text can pass an item filter:
CHECK\_PASSING\_ITEM\_FILTER (from IF\_BALI\_ITEM\_SETTER)
## Name
## Description
| Importing parameter   |                                                    |
|-----------------------|----------------------------------------------------|
| ITEM_FILTER           | Reference to the item filter that is being checked |
| Returning parameter   |                                                    |
| FILTER_PASSED         | If set, the free text can pass the item filter     |
<!-- image -->
##  Note
If the severity of the free text contains a value which is not allowed, it is changed to
IF\_BALI\_CONSTANTS=&gt;C\_SEVERITY\_DEFAULT . Allowed values of the severity can be found in interface IF\_BALI\_CONSTANTS .
If the detail level of the free text contains a value which is not allowed, it is changed to IF\_BALI\_CONSTANTS=&gt;C\_DETAIL\_LEVEL\_DEFAULT . Allowed values of the detail level are a number
- between '1' and '9' and ' '.