SAP SALI_MC_CREATE_ATTACH Function Module for Creates a New or Attaches to an Existing Monitoring Context (MC)









SALI_MC_CREATE_ATTACH is a standard sali mc create attach SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Creates a New or Attaches to an Existing Monitoring Context (MC) 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 sali mc create attach FM, simply by entering the name SALI_MC_CREATE_ATTACH into the relevant SAP transaction such as SE37 or SE38.

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



Function SALI_MC_CREATE_ATTACH 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 'SALI_MC_CREATE_ATTACH'"Creates a New or Attaches to an Existing Monitoring Context (MC)
EXPORTING
MCNAME = "
* DESC_TEXT_MSGID = 'RT' "
* DESC_TEXT_MSGNO = 013 "
* TOOL_COLLECTING = "
* TOOL_ONALERT = "
* TOOL_ANALYZE = "
* CONTEXT_FIXED_ON_SEGMENT = ' ' "
* NUMRANGE = AL_NR_AUTO "
OWNER = "
* SEGMENT = "
MT_CLASS = "
* SYSID = SY-SYSID "
* CLIENT = AL_MC_ALL_CLIENTS "
* SYSTEMWIDE_CONTEXT = ' ' "
* VISIBLE_ON_USERLEV = AL_VISIBLE_OPERATOR "

IMPORTING
ROOT_TID = "
DETAILED_ERROR_TEXT = "

EXCEPTIONS
UNABLE_TO_EXPAND_NAME = 1 SEGMENT_NOT_FOUND = 2 COMMUNICATION_FAILURE = 3 OTHER_PROBLEM = 4 WRONG_SEGMENT = 5 NO_MORE_SPACE = 6 INVALID_PARAMETER = 7
.



IMPORTING Parameters details for SALI_MC_CREATE_ATTACH

MCNAME -

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

DESC_TEXT_MSGID -

Data type: SY-MSGID
Default: 'RT'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DESC_TEXT_MSGNO -

Data type: SY-MSGNO
Default: 013
Optional: Yes
Call by Reference: No ( called with pass by value option)

TOOL_COLLECTING -

Data type: ALTOOLASSG-TOOLNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

TOOL_ONALERT -

Data type: ALTOOLASSG-TOOLNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

TOOL_ANALYZE -

Data type: ALTOOLASSG-TOOLNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

CONTEXT_FIXED_ON_SEGMENT -

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

NUMRANGE -

Data type: ALGLOBTID-MTNUMRANGE
Default: AL_NR_AUTO
Optional: Yes
Call by Reference: No ( called with pass by value option)

OWNER -

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

SEGMENT -

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

MT_CLASS -

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

SYSID -

Data type: SY-SYSID
Default: SY-SYSID
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENT -

Data type: SY-MANDT
Default: AL_MC_ALL_CLIENTS
Optional: Yes
Call by Reference: No ( called with pass by value option)

SYSTEMWIDE_CONTEXT -

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

VISIBLE_ON_USERLEV -

Data type: ALMTCUSTWR-VISUSERLEV
Default: AL_VISIBLE_OPERATOR
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SALI_MC_CREATE_ATTACH

ROOT_TID -

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

DETAILED_ERROR_TEXT -

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

EXCEPTIONS details

UNABLE_TO_EXPAND_NAME -

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

SEGMENT_NOT_FOUND -

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

COMMUNICATION_FAILURE -

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

OTHER_PROBLEM - Miscellaneous

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

WRONG_SEGMENT -

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

NO_MORE_SPACE -

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

INVALID_PARAMETER -

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

Copy and paste ABAP code example for SALI_MC_CREATE_ATTACH 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:
lv_mcname  TYPE C, "   
lv_root_tid  TYPE ALGLOBTID, "   
lv_unable_to_expand_name  TYPE ALGLOBTID, "   
lv_desc_text_msgid  TYPE SY-MSGID, "   'RT'
lv_desc_text_msgno  TYPE SY-MSGNO, "   013
lv_tool_collecting  TYPE ALTOOLASSG-TOOLNAME, "   
lv_tool_onalert  TYPE ALTOOLASSG-TOOLNAME, "   
lv_tool_analyze  TYPE ALTOOLASSG-TOOLNAME, "   
lv_context_fixed_on_segment  TYPE ALFLAG, "   ' '
lv_numrange  TYPE ALGLOBTID-MTNUMRANGE, "   AL_NR_AUTO
lv_segment_not_found  TYPE ALGLOBTID, "   
lv_detailed_error_text  TYPE STRING, "   
lv_owner  TYPE C, "   
lv_communication_failure  TYPE C, "   
lv_segment  TYPE C, "   
lv_other_problem  TYPE C, "   
lv_mt_class  TYPE C, "   
lv_wrong_segment  TYPE C, "   
lv_sysid  TYPE SY-SYSID, "   SY-SYSID
lv_no_more_space  TYPE SY, "   
lv_client  TYPE SY-MANDT, "   AL_MC_ALL_CLIENTS
lv_invalid_parameter  TYPE SY, "   
lv_systemwide_context  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lv_visible_on_userlev  TYPE ALMTCUSTWR-VISUSERLEV. "   AL_VISIBLE_OPERATOR

  CALL FUNCTION 'SALI_MC_CREATE_ATTACH'  "Creates a New or Attaches to an Existing Monitoring Context (MC)
    EXPORTING
         MCNAME = lv_mcname
         DESC_TEXT_MSGID = lv_desc_text_msgid
         DESC_TEXT_MSGNO = lv_desc_text_msgno
         TOOL_COLLECTING = lv_tool_collecting
         TOOL_ONALERT = lv_tool_onalert
         TOOL_ANALYZE = lv_tool_analyze
         CONTEXT_FIXED_ON_SEGMENT = lv_context_fixed_on_segment
         NUMRANGE = lv_numrange
         OWNER = lv_owner
         SEGMENT = lv_segment
         MT_CLASS = lv_mt_class
         SYSID = lv_sysid
         CLIENT = lv_client
         SYSTEMWIDE_CONTEXT = lv_systemwide_context
         VISIBLE_ON_USERLEV = lv_visible_on_userlev
    IMPORTING
         ROOT_TID = lv_root_tid
         DETAILED_ERROR_TEXT = lv_detailed_error_text
    EXCEPTIONS
        UNABLE_TO_EXPAND_NAME = 1
        SEGMENT_NOT_FOUND = 2
        COMMUNICATION_FAILURE = 3
        OTHER_PROBLEM = 4
        WRONG_SEGMENT = 5
        NO_MORE_SPACE = 6
        INVALID_PARAMETER = 7
. " SALI_MC_CREATE_ATTACH




ABAP code using 7.40 inline data declarations to call FM SALI_MC_CREATE_ATTACH

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.

 
 
 
"SELECT single MSGID FROM SY INTO @DATA(ld_desc_text_msgid).
DATA(ld_desc_text_msgid) = 'RT'.
 
"SELECT single MSGNO FROM SY INTO @DATA(ld_desc_text_msgno).
DATA(ld_desc_text_msgno) = 013.
 
"SELECT single TOOLNAME FROM ALTOOLASSG INTO @DATA(ld_tool_collecting).
 
"SELECT single TOOLNAME FROM ALTOOLASSG INTO @DATA(ld_tool_onalert).
 
"SELECT single TOOLNAME FROM ALTOOLASSG INTO @DATA(ld_tool_analyze).
 
DATA(ld_context_fixed_on_segment) = ' '.
 
"SELECT single MTNUMRANGE FROM ALGLOBTID INTO @DATA(ld_numrange).
DATA(ld_numrange) = AL_NR_AUTO.
 
 
 
 
 
 
 
 
 
"SELECT single SYSID FROM SY INTO @DATA(ld_sysid).
DATA(ld_sysid) = SY-SYSID.
 
 
"SELECT single MANDT FROM SY INTO @DATA(ld_client).
DATA(ld_client) = AL_MC_ALL_CLIENTS.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_systemwide_context).
DATA(ld_systemwide_context) = ' '.
 
"SELECT single VISUSERLEV FROM ALMTCUSTWR INTO @DATA(ld_visible_on_userlev).
DATA(ld_visible_on_userlev) = AL_VISIBLE_OPERATOR.
 


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!