SAP SALI_SUM_CREATE_ATTACH Function Module for
SALI_SUM_CREATE_ATTACH is a standard sali sum 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 sum create attach FM, simply by entering the name SALI_SUM_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_SUM_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_SUM_CREATE_ATTACH'".
EXPORTING
PARENT_TID = "
* TOOL_ONALERT = "
* TOOL_ANALYZE = "
SUM_NAME = "
* NUMRANGE = AL_NR_AUTO "
* UNIQUENUM = "
* VISIBLE_ON_USERLEV = AL_VISIBLE_OPERATOR "
* DESC_TEXT_MSGID = 'RT' "
* DESC_TEXT_MSGNO = 013 "
MT_CLASS = "
* TOOL_COLLECTING = "
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_SUM_CREATE_ATTACH
PARENT_TID -
Data type: ALGLOBTIDOptional: No
Call by Reference: No ( called with pass by value option)
TOOL_ONALERT -
Data type: ALTOOLASSG-TOOLNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
TOOL_ANALYZE -
Data type: ALTOOLASSG-TOOLNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
SUM_NAME -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
NUMRANGE -
Data type: ALGLOBTID-MTNUMRANGEDefault: AL_NR_AUTO
Optional: Yes
Call by Reference: No ( called with pass by value option)
UNIQUENUM -
Data type: ALMTCREATE-UNIQUENUMOptional: Yes
Call by Reference: No ( called with pass by value option)
VISIBLE_ON_USERLEV -
Data type: ALMTCUSTWR-VISUSERLEVDefault: AL_VISIBLE_OPERATOR
Optional: Yes
Call by Reference: No ( called with pass by value option)
DESC_TEXT_MSGID -
Data type: SY-MSGIDDefault: 'RT'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DESC_TEXT_MSGNO -
Data type: SY-MSGNODefault: 013
Optional: Yes
Call by Reference: No ( called with pass by value option)
MT_CLASS -
Data type: ALMTCREATE-CUSGROUPMTOptional: No
Call by Reference: No ( called with pass by value option)
TOOL_COLLECTING -
Data type: ALTOOLASSG-TOOLNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SALI_SUM_CREATE_ATTACH
NEW_TID -
Data type: ALGLOBTIDOptional: No
Call by Reference: No ( called with pass by value option)
DETAILED_ERROR_TEXT -
Data type: STRINGOptional: 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 -
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_SUM_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_tool_onalert | TYPE ALTOOLASSG-TOOLNAME, " | |||
lv_tool_analyze | TYPE ALTOOLASSG-TOOLNAME, " | |||
lv_sum_name | TYPE C, " | |||
lv_detailed_error_text | TYPE STRING, " | |||
lv_unable_to_expand_name | TYPE STRING, " | |||
lv_numrange | TYPE ALGLOBTID-MTNUMRANGE, " AL_NR_AUTO | |||
lv_invalid_parameters | TYPE ALGLOBTID, " | |||
lv_uniquenum | TYPE ALMTCREATE-UNIQUENUM, " | |||
lv_communication_failure | TYPE ALMTCREATE, " | |||
lv_other_problem | TYPE ALMTCREATE, " | |||
lv_visible_on_userlev | TYPE ALMTCUSTWR-VISUSERLEV, " AL_VISIBLE_OPERATOR | |||
lv_wrong_segment | TYPE ALMTCUSTWR, " | |||
lv_desc_text_msgid | TYPE SY-MSGID, " 'RT' | |||
lv_desc_text_msgno | TYPE SY-MSGNO, " 013 | |||
lv_internal_failure_sals | TYPE SY, " | |||
lv_mt_class | TYPE ALMTCREATE-CUSGROUPMT, " | |||
lv_no_more_space | TYPE ALMTCREATE, " | |||
lv_tool_collecting | TYPE ALTOOLASSG-TOOLNAME. " |
  CALL FUNCTION 'SALI_SUM_CREATE_ATTACH' " |
EXPORTING | ||
PARENT_TID | = lv_parent_tid | |
TOOL_ONALERT | = lv_tool_onalert | |
TOOL_ANALYZE | = lv_tool_analyze | |
SUM_NAME | = lv_sum_name | |
NUMRANGE | = lv_numrange | |
UNIQUENUM | = lv_uniquenum | |
VISIBLE_ON_USERLEV | = lv_visible_on_userlev | |
DESC_TEXT_MSGID | = lv_desc_text_msgid | |
DESC_TEXT_MSGNO | = lv_desc_text_msgno | |
MT_CLASS | = lv_mt_class | |
TOOL_COLLECTING | = lv_tool_collecting | |
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_SUM_CREATE_ATTACH |
ABAP code using 7.40 inline data declarations to call FM SALI_SUM_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 TOOLNAME FROM ALTOOLASSG INTO @DATA(ld_tool_onalert). | ||||
"SELECT single TOOLNAME FROM ALTOOLASSG INTO @DATA(ld_tool_analyze). | ||||
"SELECT single MTNUMRANGE FROM ALGLOBTID INTO @DATA(ld_numrange). | ||||
DATA(ld_numrange) | = AL_NR_AUTO. | |||
"SELECT single UNIQUENUM FROM ALMTCREATE INTO @DATA(ld_uniquenum). | ||||
"SELECT single VISUSERLEV FROM ALMTCUSTWR INTO @DATA(ld_visible_on_userlev). | ||||
DATA(ld_visible_on_userlev) | = AL_VISIBLE_OPERATOR. | |||
"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 CUSGROUPMT FROM ALMTCREATE INTO @DATA(ld_mt_class). | ||||
"SELECT single TOOLNAME FROM ALTOOLASSG INTO @DATA(ld_tool_collecting). | ||||
Search for further information about these or an SAP related objects