Ansicht
Dokumentation

BAL_DB_SEARCH - Application Log: Database: Find Logs

BAL_DB_SEARCH - Application Log: Database: Find Logs

ABAP Short Reference   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module BAL_DB_SEARCH finds logs in the database.

You pass log header filter criteria (structure BAL_S_LFIL), and a sorted table of log headers (structure BALHDR) which satisfy the criteria is returned.
You can pass this to the module BAL_DB_LOAD BAL_DB_LOAD, which loads these logs into memory.

  • Notes
    Avoid a FULL TABLE SCAN when you create the filter structure BAL_S_LFIL by specifying the following fields or field combinations:
    - LOGNUMBER (primary index of the log header table)
    - LOG_HANDLE (has an index)
    - OBJECT/SUBOBJECT/EXTNUMBER (has an index)
    For an application object to efficiently access a log, it must have either LOGNUMBER or LOG_HANDLE in its structures, or the field EXTNUMBER should contain a unique key derived from the application object data (e.g. document number). Together with the OBJECT/SUBOBJECT (the application which wrote the log), the access should be unique.
    Other criteria such as time restrictions or transaction which created the log, can also be specified in the filter structure.
    You can also search in another client. The client in E_T_LOG_HEADER is taken into account automatically. If I_CLIENT is not specified, the current client is used.

Example

Report SBAL_DEMO_05 (==>Run ==>Coding) simulates a settlement run for all flights on a specified date. You can choose:

  • Simulate settlement.
    The documents are only collected in memory with temporary numbers, which are logged.
  • Perform settlement.
    A log is saved in the database after the temporary document numbers have been replaced by permanent ones in the log.
  • Display logs.

Related function modules

Save and load logs
Delete logs

Further information

Overview of the most important function groups

Quick start documentation

Application Log: Technical documentation





Parameters

E_T_LOG_HEADER
I_CLIENT
I_S_LOG_FILTER
I_TZONE
I_T_SEL_FIELD

Exceptions

LOG_NOT_FOUND
NO_FILTER_CRITERIA

Function Group

SBAL_DB

Fill RESBD Structure from EBP Component Structure   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3254 Date: 20240520 Time: 190550     sap01-206 ( 50 ms )