PREPARE_ADD_APPLOG SAP Method Preparation steps to add messages to application log









Below is documentation, parameters and attributes of ABAP Method PREPARE_ADD_APPLOG 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 is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.

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 PREPARE_ADD_APPLOG can also be found below:

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


Parameters of Method PREPARE_ADD_APPLOG

.

NameTypeData TypeDescriptionDefault Value
IV_BO_KEYImportingTYPE
/BOBF/OBM_BO_KEY
Business Object
IV_DETLEVELImportingTYPE
BALLEVEL
Application Log: Level of detail
IV_EXT_ALNUMBERImportingTYPE
BALNREXT
Application Log: External ID
IV_FORCE_NEW_APPLOGImportingTYPE
ABAP_BOOL
Create new AppLog (force)
IV_HANDLEImportingTYPE
BALLOGHNDL
Application Log: Log Handle
IV_MSG_ORIGINATORImportingTYPE
STRING
IV_OBJECTImportingTYPE
BALOBJ_D
Application log: Object name (Application code)
IV_PROBCLImportingTYPE
BALPROBCL
Application log: Message problem class
IV_SUBOBJECTImportingTYPE
BALSUBOBJ
Application Log: Subobject
IV_USE_BALImportingTYPE
ABAP_BOOL
Write BAL directly instead of via Applog BO
IV_FORCEImportingTYPE
ABAP_BOOL
Force posting message into App. Log
EO_SRVExportingTYPE REF TO
/BOBF/IF_TRA_SERVICE_MANAGER
Containing the public service methods of a service manager
EV_DETLEVELExportingTYPE
BALLEVEL
Application Log: Level of detail
EV_PROBCLExportingTYPE
BALPROBCL
Application log: Message problem class
CV_HANDLEChangingTYPE
BALLOGHNDL
Application Log: Log Handle



Exceptions of Method PREPARE_ADD_APPLOG

This method does not have any exceptions

Example ABAP coding

This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.

DATA: lv_CV_HANDLE TYPE BALLOGHNDL,
lv_EO_SRV TYPE /BOBF/IF_TRA_SERVICE_MANAGER,
lv_EV_DETLEVEL TYPE BALLEVEL,
lv_EV_PROBCL TYPE BALPROBCL,
lv_IV_BO_KEY TYPE /BOBF/OBM_BO_KEY,
lv_IV_DETLEVEL TYPE BALLEVEL,
lv_IV_EXT_ALNUMBER TYPE BALNREXT,
lv_IV_FORCE_NEW_APPLOG TYPE ABAP_BOOL,
lv_IV_HANDLE TYPE BALLOGHNDL,
lv_IV_MSG_ORIGINATOR TYPE STRING,
lv_IV_OBJECT TYPE BALOBJ_D,
lv_IV_PROBCL TYPE BALPROBCL,
lv_IV_SUBOBJECT TYPE BALSUBOBJ,
lv_IV_USE_BAL TYPE ABAP_BOOL,
lv_IV_FORCE TYPE ABAP_BOOL,
lv_other TYPE c.

CALL METHOD /SCMTMS/CL_APPLOG_HELPER=>PREPARE_ADD_APPLOG(
EXPORTING
IV_BO_KEY = lv_IV_BO_KEY
IV_DETLEVEL = lv_IV_DETLEVEL
IV_EXT_ALNUMBER = lv_IV_EXT_ALNUMBER
IV_FORCE_NEW_APPLOG = lv_IV_FORCE_NEW_APPLOG
IV_HANDLE = lv_IV_HANDLE
IV_MSG_ORIGINATOR = lv_IV_MSG_ORIGINATOR
IV_OBJECT = lv_IV_OBJECT
IV_PROBCL = lv_IV_PROBCL
IV_SUBOBJECT = lv_IV_SUBOBJECT
IV_USE_BAL = lv_IV_USE_BAL
IV_FORCE = lv_IV_FORCE
IMPORTING
EO_SRV = lv_EO_SRV
EV_DETLEVEL = lv_EV_DETLEVEL
EV_PROBCL = lv_EV_PROBCL
CHANGING
CV_HANDLE = lv_CV_HANDLE ).

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!