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 directlyThe 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
.| Name | Type | Data Type | Description | Default Value |
| IV_BO_KEY | Importing | TYPE /BOBF/OBM_BO_KEY | Business Object | |
| IV_DETLEVEL | Importing | TYPE BALLEVEL | Application Log: Level of detail | |
| IV_EXT_ALNUMBER | Importing | TYPE BALNREXT | Application Log: External ID | |
| IV_FORCE_NEW_APPLOG | Importing | TYPE ABAP_BOOL | Create new AppLog (force) | |
| IV_HANDLE | Importing | TYPE BALLOGHNDL | Application Log: Log Handle | |
| IV_MSG_ORIGINATOR | Importing | TYPE STRING | ||
| IV_OBJECT | Importing | TYPE BALOBJ_D | Application log: Object name (Application code) | |
| IV_PROBCL | Importing | TYPE BALPROBCL | Application log: Message problem class | |
| IV_SUBOBJECT | Importing | TYPE BALSUBOBJ | Application Log: Subobject | |
| IV_USE_BAL | Importing | TYPE ABAP_BOOL | Write BAL directly instead of via Applog BO | |
| IV_FORCE | Importing | TYPE ABAP_BOOL | Force posting message into App. Log | |
| EO_SRV | Exporting | TYPE REF TO /BOBF/IF_TRA_SERVICE_MANAGER | Containing the public service methods of a service manager | |
| EV_DETLEVEL | Exporting | TYPE BALLEVEL | Application Log: Level of detail | |
| EV_PROBCL | Exporting | TYPE BALPROBCL | Application log: Message problem class | |
| CV_HANDLE | Changing | TYPE BALLOGHNDL | Application Log: Log Handle |
Exceptions of Method PREPARE_ADD_APPLOG
This method does not have any exceptionsExample 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