SAP UWL_LOG_MESSAGE Function Module for Used for UWL application logging









UWL_LOG_MESSAGE is a standard uwl log message SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Used for UWL application logging processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for uwl log message FM, simply by entering the name UWL_LOG_MESSAGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: UWLCONN
Program Name: SAPLUWLCONN
Main Program: SAPLUWLCONN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function UWL_LOG_MESSAGE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'UWL_LOG_MESSAGE'"Used for UWL application logging
EXPORTING
* SUBCATEGORY = 'UWL_GENERAL' "Application Log: Subobject
* MESSAGE_TYPE = 'I' "Message Type: I - Information(default), W - Warning, E - Error
MESSAGE_TEXT = "Message Variable
* MESSAGE_TEXT_OPTIONAL1 = '' "Message Variable
* MESSAGE_TEXT_OPTIONAL2 = '' "Message Variable
* MESSAGE_TEXT_OPTIONAL3 = '' "Message Variable

IMPORTING
OUTPUT_MESSAGE = "Character 100
RETURN_CODE = "0 for success

TABLES
* USERS = "UWL user
.



IMPORTING Parameters details for UWL_LOG_MESSAGE

SUBCATEGORY - Application Log: Subobject

Data type: BALSUBOBJ
Default: 'UWL_GENERAL'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MESSAGE_TYPE - Message Type: I - Information(default), W - Warning, E - Error

Data type: SYMSGTY
Default: 'I'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MESSAGE_TEXT - Message Variable

Data type: SYMSGV
Optional: No
Call by Reference: No ( called with pass by value option)

MESSAGE_TEXT_OPTIONAL1 - Message Variable

Data type: SYMSGV
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

MESSAGE_TEXT_OPTIONAL2 - Message Variable

Data type: SYMSGV
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

MESSAGE_TEXT_OPTIONAL3 - Message Variable

Data type: SYMSGV
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for UWL_LOG_MESSAGE

OUTPUT_MESSAGE - Character 100

Data type: CHAR100
Optional: No
Call by Reference: Yes

RETURN_CODE - 0 for success

Data type: I
Optional: No
Call by Reference: Yes

TABLES Parameters details for UWL_LOG_MESSAGE

USERS - UWL user

Data type: UWLUSER
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for UWL_LOG_MESSAGE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_users  TYPE STANDARD TABLE OF UWLUSER, "   
lv_subcategory  TYPE BALSUBOBJ, "   'UWL_GENERAL'
lv_output_message  TYPE CHAR100, "   
lv_return_code  TYPE I, "   
lv_message_type  TYPE SYMSGTY, "   'I'
lv_message_text  TYPE SYMSGV, "   
lv_message_text_optional1  TYPE SYMSGV, "   ''
lv_message_text_optional2  TYPE SYMSGV, "   ''
lv_message_text_optional3  TYPE SYMSGV. "   ''

  CALL FUNCTION 'UWL_LOG_MESSAGE'  "Used for UWL application logging
    EXPORTING
         SUBCATEGORY = lv_subcategory
         MESSAGE_TYPE = lv_message_type
         MESSAGE_TEXT = lv_message_text
         MESSAGE_TEXT_OPTIONAL1 = lv_message_text_optional1
         MESSAGE_TEXT_OPTIONAL2 = lv_message_text_optional2
         MESSAGE_TEXT_OPTIONAL3 = lv_message_text_optional3
    IMPORTING
         OUTPUT_MESSAGE = lv_output_message
         RETURN_CODE = lv_return_code
    TABLES
         USERS = lt_users
. " UWL_LOG_MESSAGE




ABAP code using 7.40 inline data declarations to call FM UWL_LOG_MESSAGE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
DATA(ld_subcategory) = 'UWL_GENERAL'.
 
 
 
DATA(ld_message_type) = 'I'.
 
 
DATA(ld_message_text_optional1) = ''.
 
DATA(ld_message_text_optional2) = ''.
 
DATA(ld_message_text_optional3) = ''.
 


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!