SAP IHC_CL_UTIL_LOG OO Class - Central Logging in IHC









IHC_CL_UTIL_LOG is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class IHC_CL_UTIL_LOG including details of:

  • Interface class implementations
  • Inheritance details
  • Methods defined within class ( including link to full details )
  • Attributes ( including initial values )
  • Class Events



Method list of IHC_CL_UTIL_LOG SAP class


A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD. Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...


Method NameDescriptionVisability
ADD_MESSAGEWrite Messages to LogPublic
CALL METHOD ihc_cl_util_log=>ADD_MESSAGE...more details

CLOSE_LOGCloses (and Possibly Saves) a LogPublic
CALL METHOD ihc_cl_util_log=>CLOSE_LOG...more details

CONSTRUCTORConstructorPublic
CALL METHOD ihc_cl_util_log=>CONSTRUCTOR...more details

DISABLE_LOGSwitch Off LoggingPublic
CALL METHOD ihc_cl_util_log=>DISABLE_LOG...more details

DISPLAY_LOGDisplay Messages in LogPublic
CALL METHOD ihc_cl_util_log=>DISPLAY_LOG...more details

FIND_LOGSearch for LogPublic
CALL METHOD ihc_cl_util_log=>FIND_LOG...more details

GET_LOG_FOR_ARCHIVEGet Log Data for ArchivingPublic
CALL METHOD ihc_cl_util_log=>GET_LOG_FOR_ARCHIVE...more details

GET_MESSAGESGets MessagesPublic
CALL METHOD ihc_cl_util_log=>GET_MESSAGES...more details

OPEN_LOGOpen (New or Old) LogPublic
CALL METHOD ihc_cl_util_log=>OPEN_LOG...more details

S_INSTANCEFactory MethodPublic
CALL METHOD ihc_cl_util_log=>S_INSTANCE...more details

_CREATE_EXTERNAL_NUMBERGenerate External NumberPrivate
CALL METHOD ihc_cl_util_log=>_CREATE_EXTERNAL_NUMBER...more details

_GET_DB_REFERENCEFactory Method for DB InstancePrivate
CALL METHOD ihc_cl_util_log=>_GET_DB_REFERENCE...more details

_OPEN_LOGOpen LogPrivate
CALL METHOD ihc_cl_util_log=>_OPEN_LOG...more details

_SAVE_CONTEXTTransfer Context to LogPrivate
CALL METHOD ihc_cl_util_log=>_SAVE_CONTEXT...more details

_SAVE_LOGSaves a LogPrivate
CALL METHOD ihc_cl_util_log=>_SAVE_LOG...more details

_SET_CONTEXTFill Current ContextPrivate
CALL METHOD ihc_cl_util_log=>_SET_CONTEXT...more details



IHC_CL_UTIL_LOG attributes

List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.

NameLevelDescriptionInitial ValueTypeVisability
GR_CONTEXTInstance AttributeReference Current ContextLIKE
DATA
Private
GR_DB_LOGInstance AttributeDatabase Access for LoggingLIKE
IHC_CL_DB_LOG
Private
GR_NULLInstance AttributeNull ReferenceLIKE
CX_IHC_LOG
Private
GS_ACTIVEInstance AttributeActive Layer, Context, etc.LIKE
GS_TYP_ACTIVE
Private
GS_PRIMA_NOTAInstance AttributeCurrent Payment OrderLIKE
IHC_DB_PN
Public
GT_LAYER_STACKInstance AttributeHistory of Previous ContextsLIKE
IHC_TTY_LOG_LAYER_CONTEXT
Private
GT_MESSAGESInstance AttributeMessages ContextsLIKE
GT_TYP_MESSAGES
Private
G_COLLECTInstance AttributeOpen Log only after CLOSE' 'LIKE
XFELD
Private
G_CON_DEFAULT_CONTEXTConstantDefault Context Name'$DEFAULT'LIKE
IHC_DTE_LOG_CONTEXT
Private
G_CON_LOG_OBJECTConstantIHC Log Object'IHC'LIKE
BALOBJ_D
Private
G_DISABLEDInstance Attribute'X': Log OffSPACELIKE
XFELD
Private
G_LOG_HANDLEInstance AttributeApplication Log: Log HandleLIKE
BALLOGHNDL
Private
G_MSG_COUNTERInstance AttributeNumber of Active MessagesLIKE
I
Private
G_MSG_INDEXInstance AttributeIndex of Collected MessagesLIKE
SYTABIX
Private
G_TESTInstance AttributeTest RunLIKE
IHC_DTE_TESTRUN
Private
SR_EXCEPTIONStatic AttributeExceptionLIKE
CX_IHC_EXCEPTION
Private
SR_LOG_INSTANCEStatic AttributeCentral Logging in IHCLIKE
IHC_CL_UTIL_LOG
Private


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!