Skip to content

Latest commit

 

History

History
198 lines (120 loc) · 2.29 KB

if-bali-item-getter-5ff735c.md

File metadata and controls

198 lines (120 loc) · 2.29 KB

IF_BALI_ITEM_GETTER

If an item like a message or exception is read from an application log, its object instance contains the interface IF_BALI_ITEM_GETTER. So, interface IF_BALI_ITEM_GETTER contains all attributes and methods which are available for all items which are read from the log.

Public Attributes

Name

Description

CATEGORY

Category of the item

Possible values:

  • IF_BALI_CONSTANTS=>C_CATEGORY_MESSAGE: Item is a message

  • IF_BALI_CONSTANTS=>C_CATEGORY_FREE_TEXT: Item is a free text

  • IF_BALI_CONSTANTS=>C_CATEGORY_EXCEPTION: Item is an exception

LOG_ITEM_NUMBER

Serial number which is the position of the item in the log

SEVERITY

Severity of the item ('Error', 'Warning', etc)

DETAIL_LEVEL

Detail level of the item (number between '1' and '9' or ' ')

TIMESTAMP

UTC time stamp of the item creation

CONTEXT_STRUCTURE_NAME

Data dictionary name of the context structure

Public Methods

Get the message text of the item. It is:

  • The output of ABAP command MESSAGE for a message item

  • The text of a free text item

  • The output of method GET_TEXT of the ABAP exception object for an exception item

GET_MESSAGE_TEXT

Name

Description

Returning parameter

MESSAGE_TEXT

ext of the item message in the logon language

Get the context data of the item:

GET_CONTEXT

Name

Description

Exporting parameter

CONTEXT

Structure that is filled with context data