LOG_CREATE SAP Method Create a Log
Below is documentation, parameters and attributes of ABAP Method LOG_CREATE within SAP class /SCTM/CL_MSG_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 /SCTM/CL_MSG_LOG 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 LOG_CREATE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method LOG_CREATE
.| Name | Type | Data Type | Description | Default Value |
| IV_ALPROG | Importing | TYPE BALPROG | Application Log: Program Name | |
| IV_ALUSER | Importing | TYPE BALUSER | Application log: user name | |
| IV_EXTNUMBER | Importing | TYPE BALNREXT | Application Log: External ID | |
| IV_OBJECT | Importing | TYPE BALOBJ_D | Application Log: Object Name (Application Abbreviation) | |
| IV_PROBCL_SHOW | Importing | TYPE BALPROBCL | Application Log: Message Problem Class | |
| IV_SUBOBJECT | Importing | TYPE BALSUBOBJ | Application Log: Subobject |
Exceptions of Method LOG_CREATE
/SCTM/CX_CORE_CODE - Exception: Internal Programming Error BASISExample ABAP coding
DATA: lv_IV_ALPROG TYPE BALPROG,
lv_IV_ALUSER TYPE BALUSER,
lv_IV_EXTNUMBER TYPE BALNREXT,
lv_IV_OBJECT TYPE BALOBJ_D,
lv_IV_PROBCL_SHOW TYPE BALPROBCL,
lv_IV_SUBOBJECT TYPE BALSUBOBJ,
lv_other TYPE c.
CALL METHOD /SCTM/CL_MSG_LOG=>LOG_CREATE(
EXPORTING
IV_ALPROG = lv_IV_ALPROG
IV_ALUSER = lv_IV_ALUSER
IV_EXTNUMBER = lv_IV_EXTNUMBER
IV_OBJECT = lv_IV_OBJECT
IV_PROBCL_SHOW = lv_IV_PROBCL_SHOW
IV_SUBOBJECT = lv_IV_SUBOBJECT ).
Links to Related Class(s)
/SCTM/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects