SAP SALI_MSC_CREATE_ATTACH Function Module for









SALI_MSC_CREATE_ATTACH is a standard sali msc 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 to perform a specific ABAP function and below is the pattern details, 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 msc create attach FM, simply by entering the name SALI_MSC_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_MSC_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_MSC_CREATE_ATTACH'"
EXPORTING
PARENT_TID = "
* MTE_SECONDS_TIL_COLLECTINGTOOL = 0 "
* MTE_SECONDS_UNTIL_SET_INACTIVE = 0 "
* MTE_SECONDS_WARMUPTIME = 0 "
MTE_F1_HELP_TEXT_MSGID = "
MTE_F1_HELP_TEXT_MSGNO = "
MSC_CUSTOMIZING_GROUP = "
* MSC_SUBTYPE = AL_STD_MSC_CACHE "
* MSC_RAISE_VALUE = AL_VAL_GREEN "
* MSC_RAISE_SEVERITY = 255 "
* MSC_ACTUAL_MSG_MODE = AL_MSC_VAL_MODE_LAST "
MTE_NAME = "
* MSC_ACTUAL_MSG_TIMEFRAME_MINUT = 0 "
* MSC_MAX_ALERTS_PER_MSGID = 0 "
* MSC_KEEP_LINES_TYPE = AL_TD_KL_NEWEST "
* MSC_KEEP_LINES_MAX = 100 "
* TOOL_COLLECTING = "
* TOOL_ONALERT = "
* TOOL_ANALYZE = "
MTE_CLASS = "
* MTE_NUMRANGE = AL_NR_AUTO "
* MTE_UNIQUENUM = "
* MTE_SEVERITY = 50 "
* MTE_VISIBLE_ON_USERLEV = AL_VISIBLE_OPERATOR "
* MTE_KEEPALTYPE = AL_KEEP_NEWEST "
* MTE_KEEPALMAX = 10 "

IMPORTING
NEW_TID = "
DETAILED_ERROR_TEXT = "

EXCEPTIONS
INVALID_TID = 1 UNABLE_TO_EXPAND_NAME = 2 INVALID_PARAMETERS = 3 COMMUNICATION_FAILURE = 4 OTHER_PROBLEM = 5 WRONG_SEGMENT = 6 INTERNAL_FAILURE_SALS = 7 NO_MORE_SPACE = 8
.



IMPORTING Parameters details for SALI_MSC_CREATE_ATTACH

PARENT_TID -

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

MTE_SECONDS_TIL_COLLECTINGTOOL -

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

MTE_SECONDS_UNTIL_SET_INACTIVE -

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

MTE_SECONDS_WARMUPTIME -

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

MTE_F1_HELP_TEXT_MSGID -

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

MTE_F1_HELP_TEXT_MSGNO -

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

MSC_CUSTOMIZING_GROUP -

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

MSC_SUBTYPE -

Data type: ALTDEFRC-MTESUBTYPE
Default: AL_STD_MSC_CACHE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSC_RAISE_VALUE -

Data type: ALMSCCUSW-RAISEVALUE
Default: AL_VAL_GREEN
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSC_RAISE_SEVERITY -

Data type: ALMSCCUSW-RAISESEVER
Default: 255
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSC_ACTUAL_MSG_MODE -

Data type: ALMSCCUSW-ACTMSGMODE
Default: AL_MSC_VAL_MODE_LAST
Optional: Yes
Call by Reference: No ( called with pass by value option)

MTE_NAME -

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

MSC_ACTUAL_MSG_TIMEFRAME_MINUT -

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

MSC_MAX_ALERTS_PER_MSGID -

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

MSC_KEEP_LINES_TYPE -

Data type: ALMSCCUSW-KEEPLINTYP
Default: AL_TD_KL_NEWEST
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSC_KEEP_LINES_MAX -

Data type: ALMSCCUSW-KEEPLINMAX
Default: 100
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)

MTE_CLASS -

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

MTE_NUMRANGE -

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

MTE_UNIQUENUM -

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

MTE_SEVERITY -

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

MTE_VISIBLE_ON_USERLEV -

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

MTE_KEEPALTYPE -

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

MTE_KEEPALMAX -

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

EXPORTING Parameters details for SALI_MSC_CREATE_ATTACH

NEW_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

INVALID_TID -

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

UNABLE_TO_EXPAND_NAME -

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

INVALID_PARAMETERS - Invalid parameter

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 -

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)

INTERNAL_FAILURE_SALS - Internal Error

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)

Copy and paste ABAP code example for SALI_MSC_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_new_tid  TYPE ALGLOBTID, "   
lv_parent_tid  TYPE ALGLOBTID, "   
lv_invalid_tid  TYPE ALGLOBTID, "   
lv_mte_seconds_til_collectingtool  TYPE ALMTCUSTWR-SECTRGTOOL, "   0
lv_mte_seconds_until_set_inactive  TYPE ALMTCUSTWR-SECINACTIV, "   0
lv_mte_seconds_warmuptime  TYPE ALMTCUSTWR-WARMUPTIME, "   0
lv_mte_f1_help_text_msgid  TYPE SY-MSGID, "   
lv_mte_f1_help_text_msgno  TYPE SY-MSGNO, "   
lv_msc_customizing_group  TYPE ALMTCREATE-CUSGROUPOT, "   
lv_msc_subtype  TYPE ALTDEFRC-MTESUBTYPE, "   AL_STD_MSC_CACHE
lv_msc_raise_value  TYPE ALMSCCUSW-RAISEVALUE, "   AL_VAL_GREEN
lv_msc_raise_severity  TYPE ALMSCCUSW-RAISESEVER, "   255
lv_msc_actual_msg_mode  TYPE ALMSCCUSW-ACTMSGMODE, "   AL_MSC_VAL_MODE_LAST
lv_mte_name  TYPE ALMTCREATE-NAME, "   
lv_detailed_error_text  TYPE STRING, "   
lv_unable_to_expand_name  TYPE STRING, "   
lv_msc_actual_msg_timeframe_minut  TYPE ALMSCCUSW-ACTMSGMAXS, "   0
lv_msc_max_alerts_per_msgid  TYPE ALMSCCUSW-MAXALPROID, "   0
lv_msc_keep_lines_type  TYPE ALMSCCUSW-KEEPLINTYP, "   AL_TD_KL_NEWEST
lv_msc_keep_lines_max  TYPE ALMSCCUSW-KEEPLINMAX, "   100
lv_tool_collecting  TYPE ALTOOLASSG-TOOLNAME, "   
lv_tool_onalert  TYPE ALTOOLASSG-TOOLNAME, "   
lv_tool_analyze  TYPE ALTOOLASSG-TOOLNAME, "   
lv_mte_class  TYPE ALMTCREATE-CUSGROUPMT, "   
lv_invalid_parameters  TYPE ALMTCREATE, "   
lv_mte_numrange  TYPE ALGLOBTID-MTNUMRANGE, "   AL_NR_AUTO
lv_communication_failure  TYPE ALGLOBTID, "   
lv_mte_uniquenum  TYPE ALMTCREATE-UNIQUENUM, "   
lv_other_problem  TYPE ALMTCREATE, "   
lv_mte_severity  TYPE ALMTCUSTWR-SEVERITY, "   50
lv_wrong_segment  TYPE ALMTCUSTWR, "   
lv_internal_failure_sals  TYPE ALMTCUSTWR, "   
lv_mte_visible_on_userlev  TYPE ALMTCUSTWR-VISUSERLEV, "   AL_VISIBLE_OPERATOR
lv_no_more_space  TYPE ALMTCUSTWR, "   
lv_mte_keepaltype  TYPE ALMTCUSTWR-KEEPALTYPE, "   AL_KEEP_NEWEST
lv_mte_keepalmax  TYPE ALMTCUSTWR-KEEPALMAX. "   10

  CALL FUNCTION 'SALI_MSC_CREATE_ATTACH'  "
    EXPORTING
         PARENT_TID = lv_parent_tid
         MTE_SECONDS_TIL_COLLECTINGTOOL = lv_mte_seconds_til_collectingtool
         MTE_SECONDS_UNTIL_SET_INACTIVE = lv_mte_seconds_until_set_inactive
         MTE_SECONDS_WARMUPTIME = lv_mte_seconds_warmuptime
         MTE_F1_HELP_TEXT_MSGID = lv_mte_f1_help_text_msgid
         MTE_F1_HELP_TEXT_MSGNO = lv_mte_f1_help_text_msgno
         MSC_CUSTOMIZING_GROUP = lv_msc_customizing_group
         MSC_SUBTYPE = lv_msc_subtype
         MSC_RAISE_VALUE = lv_msc_raise_value
         MSC_RAISE_SEVERITY = lv_msc_raise_severity
         MSC_ACTUAL_MSG_MODE = lv_msc_actual_msg_mode
         MTE_NAME = lv_mte_name
         MSC_ACTUAL_MSG_TIMEFRAME_MINUT = lv_msc_actual_msg_timeframe_minut
         MSC_MAX_ALERTS_PER_MSGID = lv_msc_max_alerts_per_msgid
         MSC_KEEP_LINES_TYPE = lv_msc_keep_lines_type
         MSC_KEEP_LINES_MAX = lv_msc_keep_lines_max
         TOOL_COLLECTING = lv_tool_collecting
         TOOL_ONALERT = lv_tool_onalert
         TOOL_ANALYZE = lv_tool_analyze
         MTE_CLASS = lv_mte_class
         MTE_NUMRANGE = lv_mte_numrange
         MTE_UNIQUENUM = lv_mte_uniquenum
         MTE_SEVERITY = lv_mte_severity
         MTE_VISIBLE_ON_USERLEV = lv_mte_visible_on_userlev
         MTE_KEEPALTYPE = lv_mte_keepaltype
         MTE_KEEPALMAX = lv_mte_keepalmax
    IMPORTING
         NEW_TID = lv_new_tid
         DETAILED_ERROR_TEXT = lv_detailed_error_text
    EXCEPTIONS
        INVALID_TID = 1
        UNABLE_TO_EXPAND_NAME = 2
        INVALID_PARAMETERS = 3
        COMMUNICATION_FAILURE = 4
        OTHER_PROBLEM = 5
        WRONG_SEGMENT = 6
        INTERNAL_FAILURE_SALS = 7
        NO_MORE_SPACE = 8
. " SALI_MSC_CREATE_ATTACH




ABAP code using 7.40 inline data declarations to call FM SALI_MSC_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 SECTRGTOOL FROM ALMTCUSTWR INTO @DATA(ld_mte_seconds_til_collectingtool).
 
"SELECT single SECINACTIV FROM ALMTCUSTWR INTO @DATA(ld_mte_seconds_until_set_inactive).
 
"SELECT single WARMUPTIME FROM ALMTCUSTWR INTO @DATA(ld_mte_seconds_warmuptime).
 
"SELECT single MSGID FROM SY INTO @DATA(ld_mte_f1_help_text_msgid).
 
"SELECT single MSGNO FROM SY INTO @DATA(ld_mte_f1_help_text_msgno).
 
"SELECT single CUSGROUPOT FROM ALMTCREATE INTO @DATA(ld_msc_customizing_group).
 
"SELECT single MTESUBTYPE FROM ALTDEFRC INTO @DATA(ld_msc_subtype).
DATA(ld_msc_subtype) = AL_STD_MSC_CACHE.
 
"SELECT single RAISEVALUE FROM ALMSCCUSW INTO @DATA(ld_msc_raise_value).
DATA(ld_msc_raise_value) = AL_VAL_GREEN.
 
"SELECT single RAISESEVER FROM ALMSCCUSW INTO @DATA(ld_msc_raise_severity).
DATA(ld_msc_raise_severity) = 255.
 
"SELECT single ACTMSGMODE FROM ALMSCCUSW INTO @DATA(ld_msc_actual_msg_mode).
DATA(ld_msc_actual_msg_mode) = AL_MSC_VAL_MODE_LAST.
 
"SELECT single NAME FROM ALMTCREATE INTO @DATA(ld_mte_name).
 
 
 
"SELECT single ACTMSGMAXS FROM ALMSCCUSW INTO @DATA(ld_msc_actual_msg_timeframe_minut).
 
"SELECT single MAXALPROID FROM ALMSCCUSW INTO @DATA(ld_msc_max_alerts_per_msgid).
 
"SELECT single KEEPLINTYP FROM ALMSCCUSW INTO @DATA(ld_msc_keep_lines_type).
DATA(ld_msc_keep_lines_type) = AL_TD_KL_NEWEST.
 
"SELECT single KEEPLINMAX FROM ALMSCCUSW INTO @DATA(ld_msc_keep_lines_max).
DATA(ld_msc_keep_lines_max) = 100.
 
"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).
 
"SELECT single CUSGROUPMT FROM ALMTCREATE INTO @DATA(ld_mte_class).
 
 
"SELECT single MTNUMRANGE FROM ALGLOBTID INTO @DATA(ld_mte_numrange).
DATA(ld_mte_numrange) = AL_NR_AUTO.
 
 
"SELECT single UNIQUENUM FROM ALMTCREATE INTO @DATA(ld_mte_uniquenum).
 
 
"SELECT single SEVERITY FROM ALMTCUSTWR INTO @DATA(ld_mte_severity).
DATA(ld_mte_severity) = 50.
 
 
 
"SELECT single VISUSERLEV FROM ALMTCUSTWR INTO @DATA(ld_mte_visible_on_userlev).
DATA(ld_mte_visible_on_userlev) = AL_VISIBLE_OPERATOR.
 
 
"SELECT single KEEPALTYPE FROM ALMTCUSTWR INTO @DATA(ld_mte_keepaltype).
DATA(ld_mte_keepaltype) = AL_KEEP_NEWEST.
 
"SELECT single KEEPALMAX FROM ALMTCUSTWR INTO @DATA(ld_mte_keepalmax).
DATA(ld_mte_keepalmax) = 10.
 


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!