## 4.2.15.9.2.3.4  CL\_BALI\_HEADER\_SETTER (Interface IF\_BALI\_HEADER\_SETTER)
Class CL\_BALI\_HEADER\_SETTER is used to set the header attributes of an application log, such as the log object, subobject, and the external identifier. The public interface of the instance methods is IF\_BALI\_HEADER\_SETTER .
## Public Methods
Create an instance of the header class with the settings of the descriptor (object, subobject and external identifier):
## CREATE (static)
| Name                                                      | Description                                                                                            |
|-----------------------------------------------------------|--------------------------------------------------------------------------------------------------------|
| Importing parameters                                      |                                                                                                        |
| OBJECT                                                    | Object of the log                                                                                      |
| SUBOBJECT                                                 | Subobject of the log If no subobjects were defined for the log object, the parame- ter should be empty |
| EXTERNAL_ID                                               | (Optional): External identifier of the log Default: ' '                                                |
| Returning parameter                                       |                                                                                                        |
| HEADER                                                    | Header object: A reference to interface IF_BALI_HEADER_SETTER                                          |
| Exceptions (inherit from CX_BALI_RUNTIME)                 |                                                                                                        |
| CX_BALI_NOT_POSSIBLE                                      | ERROR_CODE: CX_BALI_NOT_POSSIBLE=>OB- JECT_NOT_ALLOWED: Access to the log object is not allowed        |
| CX_BALI_INVALID_PARAMETER                                 | The log object or subobject of the header doesn't exist                                                |
| Set object, subobject and external identifier of the log: |                                                                                                        |
| Name                                                      | Description                                                                                            |
| Importing parameters                                      |                                                                                                        |
| OBJECT                                                    | Object of the log                                                                                      |
| SUBOBJECT                                                 | Subobject of the log                                                                                   |
| EXTERNAL_ID                                               | (Optional): External identifier of the log Default: ' '                                                |
| Returning parameter                                       |                                                                                                        |
| NEW_HEADER                                                | Reference to current header object                                                                     |
| Exceptions (inherit from CX_BALI_RUNTIME)                 |                                                                                                        |
| CX_BALI_NOT_POSSIBLE                                      | ERROR_CODE: CX_BALI_NOT_POSSIBLE=>OB- JECT_NOT_ALLOWED: Access to the log object is not allowed        |
| CX_BALI_INVALID_PARAMETER                                 | The log object or subobject of the header doesn't exist                                                |
Set the expiry date and attributes:
## SET\_EXPIRY
| Name                                                   | Description                                                                                                                                                                                    |
|--------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Importing parameters                                   |                                                                                                                                                                                                |
| EXPIRY_DATE                                            | Date when the log expires and can be deleted. If the parame- ter is initial, the expiry date remains unchanged; the default value of the expiry date is the creation date of the log + 7 days. |
| KEEP_UNTIL_EXPIRY                                      | (Optional): If set: It is not allowed to delete the log before the expiry date                                                                                                                 |
| Returning parameter                                    |                                                                                                                                                                                                |
| NEW_HEADER                                             | Reference to current header object                                                                                                                                                             |
| Set the log context using a data dictionary structure: |                                                                                                                                                                                                |
| SET_CONTEXT                                            |                                                                                                                                                                                                |
| Name                                                   | Description                                                                                                                                                                                    |
| Importing parameter                                    |                                                                                                                                                                                                |
| CONTEXT                                                | Structure with the context data                                                                                                                                                                |
| Returning parameters                                   |                                                                                                                                                                                                |
| NEW_HEADER                                             | Reference to current header object                                                                                                                                                             |
| Exceptions (inherit from CX_BALI_RUNTIME )             |                                                                                                                                                                                                |
| CX_BALI_INVALID_PARAMETER                              | • Field CONTEXT is not based on a database table or structure which is defined in the data dictionary • The total size of field CONTEXT is longer than 256 char- acters                        |
| Get all header values:                                 |                                                                                                                                                                                                |
| GET_ALL_VALUES                                         |                                                                                                                                                                                                |
| Name                                                   | Description                                                                                                                                                                                    |
| Exporting parameters                                   |                                                                                                                                                                                                |
| OBJECT                                                 | Object of the log                                                                                                                                                                              |
| SUBOBJECT                                              | Subobject of the log                                                                                                                                                                           |
| EXTERNAL_ID                                            | External identifier of the log                                                                                                                                                                 |
| Name              | Description                                                                                                                                                                                                                                                                       |
|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| EXPIRY_DATE       | Date when the log expires and can be deleted                                                                                                                                                                                                                                      |
| KEEP_UNTIL_EXPIRY | If set: It is not allowed to delete the log before the expiry date                                                                                                                                                                                                                |
| 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, stored in a character field with a length of 256 characters |