INIT_APPLOG_BO SAP Method Initialize AppLog - do not use directly!









Below is documentation, parameters and attributes of ABAP Method INIT_APPLOG_BO within SAP class /SCMTMS/CL_APPLOG_HELPER. 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 /SCMTMS/CL_APPLOG_HELPER into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

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

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


Parameters of Method INIT_APPLOG_BO

.

NameTypeData TypeDescriptionDefault Value
IV_BO_KEYImportingTYPE
/BOBF/OBM_BO_KEY
Business Object
IV_CHECK_GLOBAL_SWITCHImportingTYPE
ABAP_BOOL
Check application log mode before writing appl. log
IV_DATETIMEImportingTYPE
TIMESTAMP
UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
IV_EXT_ALNUMBERImportingTYPE
BALNREXT
Application Log: External ID
IV_MSG_ORIGINATORImportingTYPE
STRING
Message Originator (report, API etc.)
IV_OBJECTImportingTYPE
BALOBJ_D
Application log: Object name (Application code)
IV_RETENTION_DAYSImportingTYPE
INT2
Number of days to keep Log
IV_SUBOBJECTImportingTYPE
BALSUBOBJ
Application Log: Subobject
IV_UNAMEImportingTYPE
BALUSER
Application log: user name
IV_USE_BALImportingTYPE
ABAP_BOOL
Write BAL directly instead of via Applog BO
IV_DATETIMEImportingTYPE
TIMESTAMP
Application Log Time (timestamp)
IV_HEADER_CONTEXT_VALUEImportingTYPE
BAL_S_CONT-VALUE
Context value to be added to applog header
IV_RETENTION_DAYSImportingTYPE
INT2
AppLog Retention Time: Number of days to keep Log
IV_SET_RETENTION_DAY_MAXImportingTYPE
BOOLEAN
Set AppLog Retention Time to Max (9999/12/31)
EV_HANDLEExportingTYPE
BALLOGHNDL
Application Log: Log Handle
EV_APP_LOG_KEYExportingTYPE
/BOBF/CONF_KEY
Application Log BOPF Instance Key



Exceptions of Method INIT_APPLOG_BO

This method does not have any exceptions

Example ABAP coding


DATA: lv_EV_HANDLE TYPE BALLOGHNDL,
lv_IV_BO_KEY TYPE /BOBF/OBM_BO_KEY,
lv_IV_CHECK_GLOBAL_SWITCH TYPE ABAP_BOOL,
lv_IV_DATETIME TYPE TIMESTAMP,
lv_IV_EXT_ALNUMBER TYPE BALNREXT,
lv_IV_MSG_ORIGINATOR TYPE STRING,
lv_IV_OBJECT TYPE BALOBJ_D,
lv_IV_RETENTION_DAYS TYPE INT2,
lv_IV_SUBOBJECT TYPE BALSUBOBJ,
lv_IV_UNAME TYPE BALUSER,
lv_IV_USE_BAL TYPE ABAP_BOOL,
lv_EV_APP_LOG_KEY TYPE /BOBF/CONF_KEY,
lv_IV_DATETIME TYPE TIMESTAMP,
lv_IV_HEADER_CONTEXT_VALUE TYPE BAL_S_CONT-VALUE,
lv_IV_RETENTION_DAYS TYPE INT2,
lv_IV_SET_RETENTION_DAY_MAX TYPE BOOLEAN,
lv_other TYPE c.

CALL METHOD /SCMTMS/CL_APPLOG_HELPER=>INIT_APPLOG_BO(
EXPORTING
IV_BO_KEY = lv_IV_BO_KEY
IV_CHECK_GLOBAL_SWITCH = lv_IV_CHECK_GLOBAL_SWITCH
IV_DATETIME = lv_IV_DATETIME
IV_EXT_ALNUMBER = lv_IV_EXT_ALNUMBER
IV_MSG_ORIGINATOR = lv_IV_MSG_ORIGINATOR
IV_OBJECT = lv_IV_OBJECT
IV_RETENTION_DAYS = lv_IV_RETENTION_DAYS
IV_SUBOBJECT = lv_IV_SUBOBJECT
IV_UNAME = lv_IV_UNAME
IV_USE_BAL = lv_IV_USE_BAL
IV_DATETIME = lv_IV_DATETIME
IV_HEADER_CONTEXT_VALUE = lv_IV_HEADER_CONTEXT_VALUE
IV_RETENTION_DAYS = lv_IV_RETENTION_DAYS
IV_SET_RETENTION_DAY_MAX = lv_IV_SET_RETENTION_DAY_MAX
IMPORTING
EV_HANDLE = lv_EV_HANDLE
EV_APP_LOG_KEY = lv_EV_APP_LOG_KEY ).

Links to Related Class(s)

/SCMTMS/...
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!