Ansicht
Dokumentation

APPL_LOG_READ_INTERN - Application Log: Read local memory

APPL_LOG_READ_INTERN - Application Log: Read local memory

Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module reads all log data for the specified object and sub-object from the local memory that at least has the specified log class.

The data is transferred to the calling program in four internal tables (log header data, log parameters, messages, message parameters). The number of read logs is also returned.

The function module also has the optional table parameter MESSAGE_PREPARED and an optional import parameter LANGUAGE. If both parameters are set when called the formatted messages are transferred in this table. The message variables are already inserted in the text.

The optional table parameter T_EXCEPTIONS (exceptions) returns the exceptions that are contained in the log. If the optional parameters T_PREPARED_EXC and LANGUAGE are set, the formatted exceptions are transferred in the table T_PREPARED_EXC.

Example

Example call:


    DATA: OBJECT          LIKE BALHDR-OBJECT,
          SUBOBJECT       LIKE BALHDR-SUBOBJECT,
          LOG_CLASS       LIKE BALHDR-PROBCLASS,
          NUMBER_OF_LOGS  LIKE SY-DBCNT,

          LANGUAGE        LIKE SY_LANGU,
          BEGIN OF HEADER_DATA OCCURS 5.
            INCLUDE STRUCTURE BALHDR.
    DATA: END OF HEADER_DATA,
          BEGIN OF HEADER_PARAMETERS OCCURS 5.
            INCLUDE STRUCTURE BALHDRP.
    DATA: END OF HEADER_PARAMETERS,
          BEGIN OF MESSAGES OCCURS 10.
            INCLUDE STRUCTURE BALM.
    DATA: END OF MESSAGES,
          BEGIN OF MESSAGE_PARAMETERS OCCURS 5.
            INCLUDE STRUCTURE BALMP.
    DATA: END OF MESSAGE_PARAMETERS.
    DATA: MESSAGE_PREPARED TYPE T_PREPARED_MESSAGES.
    ...

    CALL FUNCTION 'APPL_LOG_READ_INTERN'
         EXPORTING
              OBJECT             = OBJECT
              SUBOBJECT          = SUBOBJECT
              LOG_CLASS          = LOG_CLASS
              LANGUAGE           = LANGUAGE
         IMPORTING
              NUMBER_OF_LOGS     = NUMBER
         TABLES
              HEADER_DATA        = HEADER_DATA
              HEADER_PARAMETERS  = HEADER_PARAMETERS
              MESSAGES           = MESSAGES
              MESSAGE_PARAMETERS = MESSAGE_PARAMETERS
              MESSAGE_PREPARED   = MESSAGE_PREPARED.   "optional

Notes

  • To write text module texts for log headers or messages from the local memory to internal tables, use the function module APPL_LOG_READ_INTERN_LONGTEXT.

Further information





Parameters

CONTEXTS
HEADER_DATA
HEADER_PARAMETERS
LANGUAGE
LOG_CLASS
LOG_HANDLE
MESSAGES
MESSAGE_PARAMETERS
MESSAGE_PREPARED
NUMBER_OF_LOGS
OBJECT
SUBOBJECT
T_EXCEPTIONS
T_PREPARED_EXC

Exceptions

FUNCTION_NOT_COMPLETED
MESSAGE_NOT_FOUND
OBJECT_NOT_FOUND
PARAMETER_MISSING
SUBOBJECT_NOT_FOUND

Function Group

SLG0

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 7019 Date: 20240523 Time: 095938     sap01-206 ( 51 ms )