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 directly

The 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

.

NameTypeData TypeDescriptionDefault Value
IV_ALPROGImportingTYPE
BALPROG
Application Log: Program Name
IV_ALUSERImportingTYPE
BALUSER
Application log: user name
IV_EXTNUMBERImportingTYPE
BALNREXT
Application Log: External ID
IV_OBJECTImportingTYPE
BALOBJ_D
Application Log: Object Name (Application Abbreviation)
IV_PROBCL_SHOWImportingTYPE
BALPROBCL
Application Log: Message Problem Class
IV_SUBOBJECTImportingTYPE
BALSUBOBJ
Application Log: Subobject



Exceptions of Method LOG_CREATE

/SCTM/CX_CORE_CODE - Exception: Internal Programming Error BASIS

Example 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



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!