Function Module Overview

Simple call

Function module

Use

BAL_LOG_CREATE

Create log with header data

BAL_LOG_MSG_ADD

Put message in log

BAL_LOG_EXCEPTION_ADD    

Put exception in log

BAL_DSP_LOG_DISPLAY

Display messages in memory

Program SBAL_DEMO_01

Methods of collecting messages

Function module

Use

BAL_LOG_CREATE

Create log with header data

BAL_LOG_MSG_ADD

Put message in log

BAL_LOG_EXCEPTION_ADD    

Put exception in log

BAL_LOG_MSG_CUMULATE

Add message cumulated

BAL_LOG_MSG_REPLACE

Replace last message

BAL_GLB_MSG_CURRENT_HANDLE_GET

Get current message handle

BAL_LOG_MSG_DELETE

Delete message

BAL_LOG_EXCEPTION_DELETE

Delete exception

BAL_LOG_MSG_CHANGE

Change message

BAL_LOG_EXCEPTION_CHANGE   

Change exception

BAL_GLB_MSG_DEFAULTS_GET

Get message defaults

Program SBAL_DEMO_02

Find and read messages in memory

Function module

Use

BAL_GLB_SEARCH_LOG

Find logs in memory

BAL_GLB_SEARCH_MSG

Find messages in memory

BAL_LOG_HDR_READ

Read log header and other data

BAL_LOG_MSG_READ

Read message and other data

BAL_LOG_EXCEPTION_READ  

Read exception and other data

Program SBAL_DEMO_03

Log display and display profiles

Function module

Use

BAL_DSP_LOG_DISPLAY

Display Log

BAL_DSP_PROFILE_STANDARD_GET

Standard profile (SLG1) for a lot of logs

BAL_DSP_PROFILE_SINGLE_LOG_GET

Standard profile (SLG1) for one log

BAL_DSP_PROFILE_NO_TREE_GET

Display without tree (fullscreen)

BAL_DSP_PROFILE_POPUP_GET

Display without tree (popup)

BAL_DSP_PROFILE_DETLEVEL_GET

Message hierarchy in DETLEVEL

Program SBAL_DEMO_04

Display log in subscreen

Function module

Use

BAL_DSP_OUTPUT_INIT

Initialize output

BAL_DSP_OUTPUT_SET_DATA

Set dataset to be displayed

BAL_DSP_OUTPUT_FREE

End output

Program SBAL_DEMO_04_SUBSCREEN

Log display in Control Container

Function module

Use

BAL_CNTL_CREATE

Create Control for log display

BAL_CNTL_REFRESH

Put new data in log display

BAL_CNTL_FREE

Release Control

Program SBAL_DEMO_04_CONTROL

Save, load, find and delete logs in the database

Function module

Use

BAL_DB_SAVE

Save logs in the database

BAL_DB_SAVE_PREPARE

Prepare save

BAL_DB_SEARCH

Find logs in the database

BAL_DB_LOAD

Load logs from the database

BAL_LOG_REFRESH

Delete log from memory

BAL_GLB_MEMORY_REFRESH

(Partially) reset global memory

BAL_DB_DELETE

Delete logs from the database

Program SBAL_DEMO_05

Change logs

Function module

Use

BAL_DB_ENQUEUE

Lock log

BAL_DB_LOAD

Load log(s)

BAL_DB_SAVE

Save log(s)

BAL_DB_DEQUEUE

Unlock log

BAL_LOG_MSG_CHANGE

Change message

BAL_LOG_EXCEPTION_CHANGE

Change exception

BAL_LOG_MSG_DELETE

Delete message

BAL_LOG_EXCEPTION_DELETE    

Delete exception

BAL_LOG_HDR_CHANGE

Change log header

BAL_LOG_DELETE

Delete log (from database also at Save)

BAL_LOG_REFRESH

Delete log from memory

Start transaction: Initializations

Function module

Use

BAL_GLB_CONFIG_SET

Set configuration

BAL_GLB_CONFIG_GET

Read configuration

BAL_GLB_AUTHORIZATION_GET

Assign authorization

BAL_GLB_AUTHORIZATION_RESET

Reset authorization

BAL_GLB_MEMORY_REFRESH

(Partially) initialize memory

BAL_MSG_DISPLAY_ABAP

Output message as ABAP-MESSAGE

Working roll area-independently

Function module

Use

BAL_GLB_MEMORY_EXPORT

Put function group memory in ABAP-MEMORY

BAL_GLB_MEMORY_IMPORT

Get function group memory from ABAP-MEMORY

Data and existence checks

Function module

Use

BAL_LOG_HDR_CHECK

Check log header data for consistency

BAL_LOG_MSG_CHECK

Check message data for consistency

BAL_LOG_EXIST

Check existence of a log in memory

BAL_LOG_MSG_EXIST

Check existence of a message in memory

Read or check Application Log object and subobject

Function module

Use

BAL_OBJECT_SELECT

Read Application Log objects table record

BAL_SUBOBJECT_SELECT

Read subobject table record

BAL_OBJECT_SUBOBJECT

Check whether object and subobject exist and the combination is allowed

Log Display: Detail screens

Function module

Use

BAL_DSP_MSG_LONGTEXT

Display message long text

BAL_DSP_MSG_PARAMETERS

Either output extended long text or call a callback routine (based on the data in BAL_S_MSG-PARAMS)

BAL_DSP_MSG_TECHNICAL_DATA

Output technical data of a message such as work area, error number, etc.

BAL_DSP_LOG_PARAMETERS

Either output extended long text or call a callback routine (based on the data in BAL_S_LOG-PARAMS)

BAL_DSP_LOG_TECHNICAL_DATA

Output all log header data