SAP SALC_GET_MT_LIST_BY_MTCLASS Function Module for
SALC_GET_MT_LIST_BY_MTCLASS is a standard salc get mt list by mtclass 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 salc get mt list by mtclass FM, simply by entering the name SALC_GET_MT_LIST_BY_MTCLASS into the relevant SAP transaction such as SE37 or SE38.
Function Group: SALC
Program Name: SAPLSALC
Main Program: SAPLSALC
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SALC_GET_MT_LIST_BY_MTCLASS 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 'SALC_GET_MT_LIST_BY_MTCLASS'".
EXPORTING
MTGROUP = "
* GET_STANDARD_ROUTES = 'X' "
* GET_PRIO_ROUTES = ' ' "
* GET_ALL_ROUTES = ' ' "
* ONLY_IF_PRIMARY_CEN = ' ' "
* SYSID = SY-SYSID "Name of SAP R/3 System
* SEGMENT = "
* CLIENT = "R/3 System, Client Number from Logon
* GET_MEMBERS = ' ' "
* GET_USING_FOR_CUS = ' ' "
* GET_USING_FOR_TOOLS = ' ' "
* TID_TO_START_FROM = "
* ONLY_LOCAL = ' ' "
TABLES
* MEMBERS_OF_MTGROUP = "
* TIDS_USE_FOR_GENERAL_CUS = "
* TIDS_USE_FOR_COLLECT_TOOL = "
* TIDS_USE_FOR_ANALYZE_TOOL = "
* TIDS_USE_FOR_ONALERT_TOOL = "
* SEGMENTS_TO_IGNORE = "CCMS: Row with SYSID and Segment
EXCEPTIONS
INVALID_TID = 1 SYSID_NOT_IN_ALCONSEG = 2 OTHER_PROBLEM = 3 C_CALL_FAILED = 4 SEGMENT_NOT_AVAILABLE = 5
IMPORTING Parameters details for SALC_GET_MT_LIST_BY_MTCLASS
MTGROUP -
Data type: ALCUSGRPRC-CUSGRPNAMEOptional: No
Call by Reference: No ( called with pass by value option)
GET_STANDARD_ROUTES -
Data type: ALPARAMS-ONLY_LOCALDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_PRIO_ROUTES -
Data type: ALPARAMS-ONLY_LOCALDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_ALL_ROUTES -
Data type: ALPARAMS-ONLY_LOCALDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ONLY_IF_PRIMARY_CEN -
Data type: ALFLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SYSID - Name of SAP R/3 System
Data type: SY-SYSIDDefault: SY-SYSID
Optional: Yes
Call by Reference: No ( called with pass by value option)
SEGMENT -
Data type: ALMSEGNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
CLIENT - R/3 System, Client Number from Logon
Data type: SY-MANDTOptional: Yes
Call by Reference: No ( called with pass by value option)
GET_MEMBERS -
Data type: ALPARAMS-ONLY_LOCALDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_USING_FOR_CUS -
Data type: ALPARAMS-ONLY_LOCALDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_USING_FOR_TOOLS -
Data type: ALPARAMS-ONLY_LOCALDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TID_TO_START_FROM -
Data type: ALGLOBTIDOptional: Yes
Call by Reference: No ( called with pass by value option)
ONLY_LOCAL -
Data type: ALPARAMS-ONLY_LOCALDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SALC_GET_MT_LIST_BY_MTCLASS
MEMBERS_OF_MTGROUP -
Data type: ALGLOBTIDOptional: Yes
Call by Reference: No ( called with pass by value option)
TIDS_USE_FOR_GENERAL_CUS -
Data type: ALGLOBTIDOptional: Yes
Call by Reference: No ( called with pass by value option)
TIDS_USE_FOR_COLLECT_TOOL -
Data type: ALGLOBTIDOptional: Yes
Call by Reference: No ( called with pass by value option)
TIDS_USE_FOR_ANALYZE_TOOL -
Data type: ALGLOBTIDOptional: Yes
Call by Reference: No ( called with pass by value option)
TIDS_USE_FOR_ONALERT_TOOL -
Data type: ALGLOBTIDOptional: Yes
Call by Reference: No ( called with pass by value option)
SEGMENTS_TO_IGNORE - CCMS: Row with SYSID and Segment
Data type: ALSYSSEGMOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
INVALID_TID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSID_NOT_IN_ALCONSEG -
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)
C_CALL_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SEGMENT_NOT_AVAILABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SALC_GET_MT_LIST_BY_MTCLASS 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_mtgroup | TYPE ALCUSGRPRC-CUSGRPNAME, " | |||
| lv_invalid_tid | TYPE ALCUSGRPRC, " | |||
| lt_members_of_mtgroup | TYPE STANDARD TABLE OF ALGLOBTID, " | |||
| lv_get_standard_routes | TYPE ALPARAMS-ONLY_LOCAL, " 'X' | |||
| lv_get_prio_routes | TYPE ALPARAMS-ONLY_LOCAL, " ' ' | |||
| lv_get_all_routes | TYPE ALPARAMS-ONLY_LOCAL, " ' ' | |||
| lv_only_if_primary_cen | TYPE ALFLAG, " ' ' | |||
| lv_sysid | TYPE SY-SYSID, " SY-SYSID | |||
| lv_sysid_not_in_alconseg | TYPE SY, " | |||
| lt_tids_use_for_general_cus | TYPE STANDARD TABLE OF ALGLOBTID, " | |||
| lv_segment | TYPE ALMSEGNAME, " | |||
| lv_other_problem | TYPE ALMSEGNAME, " | |||
| lt_tids_use_for_collect_tool | TYPE STANDARD TABLE OF ALGLOBTID, " | |||
| lv_client | TYPE SY-MANDT, " | |||
| lv_c_call_failed | TYPE SY, " | |||
| lt_tids_use_for_analyze_tool | TYPE STANDARD TABLE OF ALGLOBTID, " | |||
| lv_get_members | TYPE ALPARAMS-ONLY_LOCAL, " ' ' | |||
| lv_segment_not_available | TYPE ALPARAMS, " | |||
| lt_tids_use_for_onalert_tool | TYPE STANDARD TABLE OF ALGLOBTID, " | |||
| lv_get_using_for_cus | TYPE ALPARAMS-ONLY_LOCAL, " ' ' | |||
| lt_segments_to_ignore | TYPE STANDARD TABLE OF ALSYSSEGM, " | |||
| lv_get_using_for_tools | TYPE ALPARAMS-ONLY_LOCAL, " ' ' | |||
| lv_tid_to_start_from | TYPE ALGLOBTID, " | |||
| lv_only_local | TYPE ALPARAMS-ONLY_LOCAL. " ' ' |
|   CALL FUNCTION 'SALC_GET_MT_LIST_BY_MTCLASS' " |
| EXPORTING | ||
| MTGROUP | = lv_mtgroup | |
| GET_STANDARD_ROUTES | = lv_get_standard_routes | |
| GET_PRIO_ROUTES | = lv_get_prio_routes | |
| GET_ALL_ROUTES | = lv_get_all_routes | |
| ONLY_IF_PRIMARY_CEN | = lv_only_if_primary_cen | |
| SYSID | = lv_sysid | |
| SEGMENT | = lv_segment | |
| CLIENT | = lv_client | |
| GET_MEMBERS | = lv_get_members | |
| GET_USING_FOR_CUS | = lv_get_using_for_cus | |
| GET_USING_FOR_TOOLS | = lv_get_using_for_tools | |
| TID_TO_START_FROM | = lv_tid_to_start_from | |
| ONLY_LOCAL | = lv_only_local | |
| TABLES | ||
| MEMBERS_OF_MTGROUP | = lt_members_of_mtgroup | |
| TIDS_USE_FOR_GENERAL_CUS | = lt_tids_use_for_general_cus | |
| TIDS_USE_FOR_COLLECT_TOOL | = lt_tids_use_for_collect_tool | |
| TIDS_USE_FOR_ANALYZE_TOOL | = lt_tids_use_for_analyze_tool | |
| TIDS_USE_FOR_ONALERT_TOOL | = lt_tids_use_for_onalert_tool | |
| SEGMENTS_TO_IGNORE | = lt_segments_to_ignore | |
| EXCEPTIONS | ||
| INVALID_TID = 1 | ||
| SYSID_NOT_IN_ALCONSEG = 2 | ||
| OTHER_PROBLEM = 3 | ||
| C_CALL_FAILED = 4 | ||
| SEGMENT_NOT_AVAILABLE = 5 | ||
| . " SALC_GET_MT_LIST_BY_MTCLASS | ||
ABAP code using 7.40 inline data declarations to call FM SALC_GET_MT_LIST_BY_MTCLASS
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 CUSGRPNAME FROM ALCUSGRPRC INTO @DATA(ld_mtgroup). | ||||
| "SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_standard_routes). | ||||
| DATA(ld_get_standard_routes) | = 'X'. | |||
| "SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_prio_routes). | ||||
| DATA(ld_get_prio_routes) | = ' '. | |||
| "SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_all_routes). | ||||
| DATA(ld_get_all_routes) | = ' '. | |||
| DATA(ld_only_if_primary_cen) | = ' '. | |||
| "SELECT single SYSID FROM SY INTO @DATA(ld_sysid). | ||||
| DATA(ld_sysid) | = SY-SYSID. | |||
| "SELECT single MANDT FROM SY INTO @DATA(ld_client). | ||||
| "SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_members). | ||||
| DATA(ld_get_members) | = ' '. | |||
| "SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_using_for_cus). | ||||
| DATA(ld_get_using_for_cus) | = ' '. | |||
| "SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_using_for_tools). | ||||
| DATA(ld_get_using_for_tools) | = ' '. | |||
| "SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_only_local). | ||||
| DATA(ld_only_local) | = ' '. | |||
Search for further information about these or an SAP related objects