FIND_LOG SAP Method Search for Log









Below is documentation, parameters and attributes of ABAP Method FIND_LOG within SAP class IHC_CL_UTIL_LOG. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IHC_CL_UTIL_LOG into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method FIND_LOG can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method FIND_LOG

.

NameTypeData TypeDescriptionDefault Value
IT_CONTEXT_FIELDSImportingTYPE
IHC_TTY_LOG_LOCAL_FIELDS
Context Fields
I_EXTERNAL_NUMBERImportingTYPE
BALNREXT
External ID
I_LAYER_NAMEImportingTYPE
IHC_DTE_LOG_LAYER_NAME
Name of Layer
I_LAYER_TYPEImportingTYPE
IHC_DTE_LOG_LAYER
Layer ID
I_LOG_DATE_HIGHImportingTYPE
BALDATE
Creation Date of Log (To)
I_LOG_DATE_LOWImportingTYPE
BALDATE
Creation Date of Log (From)
I_LOG_TIME_HIGHImportingTYPE
BALTIME
Creation Time of Log (To)
I_LOG_TIME_LOWImportingTYPE
BALTIME
Creation Time of Log (From)
I_TRANSACTIONImportingTYPE
BALTCODE
Transaction Code
I_USERImportingTYPE
BALUSER
User
ET_LOG_HANDLEExportingTYPE
BAL_T_LOGH
Log Handles
ET_MSG_HANDLEExportingTYPE
BAL_T_MSGH
Application Log: Message Handle Table
E_LOG_FOUNDExportingTYPE
XFELD
'X': Log(s) Found



Exceptions of Method FIND_LOG

CX_IHC_LOG - For Exceptions in Log Handling

Example ABAP coding


DATA: lo_class TYPE REF TO IHC_CL_UTIL_LOG.
DATA: lv_ET_LOG_HANDLE TYPE BAL_T_LOGH,
lv_ET_MSG_HANDLE TYPE BAL_T_MSGH,
lv_E_LOG_FOUND TYPE XFELD,
lv_IT_CONTEXT_FIELDS TYPE IHC_TTY_LOG_LOCAL_FIELDS,
lv_I_EXTERNAL_NUMBER TYPE BALNREXT,
lv_I_LAYER_NAME TYPE IHC_DTE_LOG_LAYER_NAME,
lv_I_LAYER_TYPE TYPE IHC_DTE_LOG_LAYER,
lv_I_LOG_DATE_HIGH TYPE BALDATE,
lv_I_LOG_DATE_LOW TYPE BALDATE,
lv_I_LOG_TIME_HIGH TYPE BALTIME,
lv_I_LOG_TIME_LOW TYPE BALTIME,
lv_I_TRANSACTION TYPE BALTCODE,
lv_I_USER TYPE BALUSER,
lv_other TYPE c.

CALL METHOD lo_class=>FIND_LOG(
EXPORTING
IT_CONTEXT_FIELDS = lv_IT_CONTEXT_FIELDS
I_EXTERNAL_NUMBER = lv_I_EXTERNAL_NUMBER
I_LAYER_NAME = lv_I_LAYER_NAME
I_LAYER_TYPE = lv_I_LAYER_TYPE
I_LOG_DATE_HIGH = lv_I_LOG_DATE_HIGH
I_LOG_DATE_LOW = lv_I_LOG_DATE_LOW
I_LOG_TIME_HIGH = lv_I_LOG_TIME_HIGH
I_LOG_TIME_LOW = lv_I_LOG_TIME_LOW
I_TRANSACTION = lv_I_TRANSACTION
I_USER = lv_I_USER
IMPORTING
ET_LOG_HANDLE = lv_ET_LOG_HANDLE
ET_MSG_HANDLE = lv_ET_MSG_HANDLE
E_LOG_FOUND = lv_E_LOG_FOUND ).

Links to Related Class(s)

IHC_CL_U...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!