SAP SALS_INFO_GET_TREE Function Module for
SALS_INFO_GET_TREE is a standard sals info get tree 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 sals info get tree FM, simply by entering the name SALS_INFO_GET_TREE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SALS
Program Name: SAPLSALS
Main Program: SAPLSALS
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function SALS_INFO_GET_TREE 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 'SALS_INFO_GET_TREE'".
EXPORTING
* TID = "
* SYSID = SY-SYSID "
* MC_NAME = "
* MO_NAME = "
* MA_NAME = "
TABLES
* OUT_TREEINFO = "
* PERFTYPERC = "
* SMESTYPERC = "
* LINK_TXT_ATTR_RC = "
EXCEPTIONS
C_CALL_FAILED = 1 INVALID_TID = 2 UNKNOWN_MC = 3 UNKNOWN_MO = 4 UNKNOWN_MA = 5
IMPORTING Parameters details for SALS_INFO_GET_TREE
TID -
Data type: ALGLOBTIDOptional: Yes
Call by Reference: No ( called with pass by value option)
SYSID -
Data type: SY-SYSIDDefault: SY-SYSID
Optional: Yes
Call by Reference: No ( called with pass by value option)
MC_NAME -
Data type: ALMTTRE40B-MTMCNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
MO_NAME -
Data type: ALMTTRE40B-OBJECTNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
MA_NAME -
Data type: ALMTTRE40B-MTNAMESHRTOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SALS_INFO_GET_TREE
OUT_TREEINFO -
Data type: ALMTTRE40BOptional: Yes
Call by Reference: No ( called with pass by value option)
PERFTYPERC -
Data type: ALPERFTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
SMESTYPERC -
Data type: ALSMSGRAWTOptional: Yes
Call by Reference: No ( called with pass by value option)
LINK_TXT_ATTR_RC -
Data type: ALTXTLNKATOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
C_CALL_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_TID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_MC -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_MO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_MA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SALS_INFO_GET_TREE 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_tid | TYPE ALGLOBTID, " | |||
lt_out_treeinfo | TYPE STANDARD TABLE OF ALMTTRE40B, " | |||
lv_c_call_failed | TYPE ALMTTRE40B, " | |||
lv_sysid | TYPE SY-SYSID, " SY-SYSID | |||
lt_perftyperc | TYPE STANDARD TABLE OF ALPERFTYPE, " | |||
lv_invalid_tid | TYPE ALPERFTYPE, " | |||
lv_mc_name | TYPE ALMTTRE40B-MTMCNAME, " | |||
lt_smestyperc | TYPE STANDARD TABLE OF ALSMSGRAWT, " | |||
lv_unknown_mc | TYPE ALSMSGRAWT, " | |||
lv_mo_name | TYPE ALMTTRE40B-OBJECTNAME, " | |||
lv_unknown_mo | TYPE ALMTTRE40B, " | |||
lt_link_txt_attr_rc | TYPE STANDARD TABLE OF ALTXTLNKAT, " | |||
lv_ma_name | TYPE ALMTTRE40B-MTNAMESHRT, " | |||
lv_unknown_ma | TYPE ALMTTRE40B. " |
  CALL FUNCTION 'SALS_INFO_GET_TREE' " |
EXPORTING | ||
TID | = lv_tid | |
SYSID | = lv_sysid | |
MC_NAME | = lv_mc_name | |
MO_NAME | = lv_mo_name | |
MA_NAME | = lv_ma_name | |
TABLES | ||
OUT_TREEINFO | = lt_out_treeinfo | |
PERFTYPERC | = lt_perftyperc | |
SMESTYPERC | = lt_smestyperc | |
LINK_TXT_ATTR_RC | = lt_link_txt_attr_rc | |
EXCEPTIONS | ||
C_CALL_FAILED = 1 | ||
INVALID_TID = 2 | ||
UNKNOWN_MC = 3 | ||
UNKNOWN_MO = 4 | ||
UNKNOWN_MA = 5 | ||
. " SALS_INFO_GET_TREE |
ABAP code using 7.40 inline data declarations to call FM SALS_INFO_GET_TREE
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 SYSID FROM SY INTO @DATA(ld_sysid). | ||||
DATA(ld_sysid) | = SY-SYSID. | |||
"SELECT single MTMCNAME FROM ALMTTRE40B INTO @DATA(ld_mc_name). | ||||
"SELECT single OBJECTNAME FROM ALMTTRE40B INTO @DATA(ld_mo_name). | ||||
"SELECT single MTNAMESHRT FROM ALMTTRE40B INTO @DATA(ld_ma_name). | ||||
Search for further information about these or an SAP related objects