SAP TEST_SALC_GET_ALL_DATA Function Module for Test Module: Get all Data from R/3 System









TEST_SALC_GET_ALL_DATA is a standard test salc get all data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Test Module: Get all Data from R/3 System 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 test salc get all data FM, simply by entering the name TEST_SALC_GET_ALL_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function TEST_SALC_GET_ALL_DATA 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 'TEST_SALC_GET_ALL_DATA'"Test Module: Get all Data from R/3 System
EXPORTING
* START_CONTEXT = ' ' "
* GET_PERF = ' ' "
* GET_SMES = ' ' "
* GET_SMOOTH = ' ' "
* GET_MSC_SPECIFIC = ' ' "
* GET_MSC_LINES = ' ' "
* READ_MESSAGE_LINES = ' ' "
* GET_TEXTATTR = ' ' "
* GET_REFERENCES = ' ' "
* VERIFY_AIDS = ' ' "
* GET_ALERTS = ' ' "
* ONLY_LOCAL = ' ' "
* GET_TOOL = ' ' "
* VISUSERLEV = 3 "
* MSC_START_TIMESTAMP = "
* MSC_END_TIMESTAMP = "
* USE_GET_ALL_CALL = ' ' "
* GET_ALL = ' ' "
* GET_TREE = ' ' "
* VERIFY_TIDS = ' ' "
* GET_GENERALDATA = ' ' "
* GET_EFF_TOOLS = ' ' "
* GET_GENERALDATA_ASYN = ' ' "

IMPORTING
MTE_HIGHEST_ALERTS = "Alerts: Sorted Table with Expanded Alert
TID_RC_TREE_ALL = "Table Type for ALMTTRE40B

CHANGING
TID_VISI_MAXLEVEL = "Alerts: Alert: TID + MaxLevel + VisibleOnUserLevel

TABLES
OUT_TID = "
MSC_FILTER = "
MSC_LINES = "
TEXTATTRRC = "
REFERENCES = "
TIDAID = "
AID = "
AIDRC = "
ALERTRC = "
TIDAID_TIDRC_TBL = "
TOOL_EFFECTIVE_RC = "
OUT_TYPEDEF_RC = "
OUT_TYPEDEF_RC_ASYN = "
OUT_TREEINFO = "
TREE_TIDRC_TBL = "
TIDSMOOTHRC = "
PERFTYPERC = "
SMESTYPERC = "
MSC_SPECIFIC_RC = "
.



IMPORTING Parameters details for TEST_SALC_GET_ALL_DATA

START_CONTEXT -

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

GET_PERF -

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

GET_SMES -

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

GET_SMOOTH -

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

GET_MSC_SPECIFIC -

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

GET_MSC_LINES -

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

READ_MESSAGE_LINES -

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

GET_TEXTATTR -

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

GET_REFERENCES -

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

VERIFY_AIDS -

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

GET_ALERTS -

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

ONLY_LOCAL -

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

GET_TOOL -

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

VISUSERLEV -

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

MSC_START_TIMESTAMP -

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

MSC_END_TIMESTAMP -

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

USE_GET_ALL_CALL -

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

GET_ALL -

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

GET_TREE -

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

VERIFY_TIDS -

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

GET_GENERALDATA -

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

GET_EFF_TOOLS -

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

GET_GENERALDATA_ASYN -

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

EXPORTING Parameters details for TEST_SALC_GET_ALL_DATA

MTE_HIGHEST_ALERTS - Alerts: Sorted Table with Expanded Alert

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

TID_RC_TREE_ALL - Table Type for ALMTTRE40B

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

CHANGING Parameters details for TEST_SALC_GET_ALL_DATA

TID_VISI_MAXLEVEL - Alerts: Alert: TID + MaxLevel + VisibleOnUserLevel

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

TABLES Parameters details for TEST_SALC_GET_ALL_DATA

OUT_TID -

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

MSC_FILTER -

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

MSC_LINES -

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

TEXTATTRRC -

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

REFERENCES -

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

TIDAID -

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

AID -

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

AIDRC -

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

ALERTRC -

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

TIDAID_TIDRC_TBL -

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

TOOL_EFFECTIVE_RC -

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

OUT_TYPEDEF_RC -

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

OUT_TYPEDEF_RC_ASYN -

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

OUT_TREEINFO -

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

TREE_TIDRC_TBL -

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

TIDSMOOTHRC -

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

PERFTYPERC -

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

SMESTYPERC -

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

MSC_SPECIFIC_RC -

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

Copy and paste ABAP code example for TEST_SALC_GET_ALL_DATA 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:
lt_out_tid  TYPE STANDARD TABLE OF ALGLOBTID, "   
lv_start_context  TYPE ALMTNAME_L-ALMTFULLNM, "   ' '
lv_tid_visi_maxlevel  TYPE ALTIDMLTBL, "   
lv_mte_highest_alerts  TYPE ALALERTS_S, "   
lv_get_perf  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_msc_filter  TYPE STANDARD TABLE OF ALMSCTIDFL, "   
lv_get_smes  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_msc_lines  TYPE STANDARD TABLE OF ALMSCTIDML, "   
lv_get_smooth  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_textattrrc  TYPE STANDARD TABLE OF ALTEXTATTR, "   
lt_references  TYPE STANDARD TABLE OF ALTXTLNKAT, "   
lv_get_msc_specific  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_tidaid  TYPE STANDARD TABLE OF ALGTIDGAID, "   
lv_get_msc_lines  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_aid  TYPE STANDARD TABLE OF ALGLOBAID, "   
lv_read_message_lines  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_aidrc  TYPE STANDARD TABLE OF ALGAIDRC, "   
lv_get_textattr  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_alertrc  TYPE STANDARD TABLE OF ALALERTRC, "   
lv_get_references  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lv_verify_aids  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_tidaid_tidrc_tbl  TYPE STANDARD TABLE OF ALGTIDRC, "   
lv_get_alerts  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_tool_effective_rc  TYPE STANDARD TABLE OF ALTOOLEFRC, "   
lv_only_local  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_out_typedef_rc  TYPE STANDARD TABLE OF ALTDEFRC, "   
lv_tid_rc_tree_all  TYPE ALTREERCTBL, "   
lv_get_tool  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lv_visuserlev  TYPE ALTIDMAXLV-VISUSERLEV, "   3
lv_msc_start_timestamp  TYPE ALTMSTPUTC, "   
lv_msc_end_timestamp  TYPE ALTMSTPUTC, "   
lv_use_get_all_call  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_out_typedef_rc_asyn  TYPE STANDARD TABLE OF ALTDEFRC, "   
lv_get_all  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_out_treeinfo  TYPE STANDARD TABLE OF ALMTTRE40B, "   
lv_get_tree  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_tree_tidrc_tbl  TYPE STANDARD TABLE OF ALGTIDRC, "   
lt_tidsmoothrc  TYPE STANDARD TABLE OF ALGTIDSMO, "   
lv_verify_tids  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_perftyperc  TYPE STANDARD TABLE OF ALPERFTYPE, "   
lv_get_generaldata  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_smestyperc  TYPE STANDARD TABLE OF ALSMSGTYPE, "   
lv_get_eff_tools  TYPE ALPARAMS-ONLY_LOCAL, "   ' '
lt_msc_specific_rc  TYPE STANDARD TABLE OF ALMSCTYPE, "   
lv_get_generaldata_asyn  TYPE ALPARAMS-ONLY_LOCAL. "   ' '

  CALL FUNCTION 'TEST_SALC_GET_ALL_DATA'  "Test Module: Get all Data from R/3 System
    EXPORTING
         START_CONTEXT = lv_start_context
         GET_PERF = lv_get_perf
         GET_SMES = lv_get_smes
         GET_SMOOTH = lv_get_smooth
         GET_MSC_SPECIFIC = lv_get_msc_specific
         GET_MSC_LINES = lv_get_msc_lines
         READ_MESSAGE_LINES = lv_read_message_lines
         GET_TEXTATTR = lv_get_textattr
         GET_REFERENCES = lv_get_references
         VERIFY_AIDS = lv_verify_aids
         GET_ALERTS = lv_get_alerts
         ONLY_LOCAL = lv_only_local
         GET_TOOL = lv_get_tool
         VISUSERLEV = lv_visuserlev
         MSC_START_TIMESTAMP = lv_msc_start_timestamp
         MSC_END_TIMESTAMP = lv_msc_end_timestamp
         USE_GET_ALL_CALL = lv_use_get_all_call
         GET_ALL = lv_get_all
         GET_TREE = lv_get_tree
         VERIFY_TIDS = lv_verify_tids
         GET_GENERALDATA = lv_get_generaldata
         GET_EFF_TOOLS = lv_get_eff_tools
         GET_GENERALDATA_ASYN = lv_get_generaldata_asyn
    IMPORTING
         MTE_HIGHEST_ALERTS = lv_mte_highest_alerts
         TID_RC_TREE_ALL = lv_tid_rc_tree_all
    CHANGING
         TID_VISI_MAXLEVEL = lv_tid_visi_maxlevel
    TABLES
         OUT_TID = lt_out_tid
         MSC_FILTER = lt_msc_filter
         MSC_LINES = lt_msc_lines
         TEXTATTRRC = lt_textattrrc
         REFERENCES = lt_references
         TIDAID = lt_tidaid
         AID = lt_aid
         AIDRC = lt_aidrc
         ALERTRC = lt_alertrc
         TIDAID_TIDRC_TBL = lt_tidaid_tidrc_tbl
         TOOL_EFFECTIVE_RC = lt_tool_effective_rc
         OUT_TYPEDEF_RC = lt_out_typedef_rc
         OUT_TYPEDEF_RC_ASYN = lt_out_typedef_rc_asyn
         OUT_TREEINFO = lt_out_treeinfo
         TREE_TIDRC_TBL = lt_tree_tidrc_tbl
         TIDSMOOTHRC = lt_tidsmoothrc
         PERFTYPERC = lt_perftyperc
         SMESTYPERC = lt_smestyperc
         MSC_SPECIFIC_RC = lt_msc_specific_rc
. " TEST_SALC_GET_ALL_DATA




ABAP code using 7.40 inline data declarations to call FM TEST_SALC_GET_ALL_DATA

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 ALMTFULLNM FROM ALMTNAME_L INTO @DATA(ld_start_context).
DATA(ld_start_context) = ' '.
 
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_perf).
DATA(ld_get_perf) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_smes).
DATA(ld_get_smes) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_smooth).
DATA(ld_get_smooth) = ' '.
 
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_msc_specific).
DATA(ld_get_msc_specific) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_msc_lines).
DATA(ld_get_msc_lines) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_read_message_lines).
DATA(ld_read_message_lines) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_textattr).
DATA(ld_get_textattr) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_references).
DATA(ld_get_references) = ' '.
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_verify_aids).
DATA(ld_verify_aids) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_alerts).
DATA(ld_get_alerts) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_only_local).
DATA(ld_only_local) = ' '.
 
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_tool).
DATA(ld_get_tool) = ' '.
 
"SELECT single VISUSERLEV FROM ALTIDMAXLV INTO @DATA(ld_visuserlev).
DATA(ld_visuserlev) = 3.
 
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_use_get_all_call).
DATA(ld_use_get_all_call) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_all).
DATA(ld_get_all) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_tree).
DATA(ld_get_tree) = ' '.
 
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_verify_tids).
DATA(ld_verify_tids) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_generaldata).
DATA(ld_get_generaldata) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_eff_tools).
DATA(ld_get_eff_tools) = ' '.
 
 
"SELECT single ONLY_LOCAL FROM ALPARAMS INTO @DATA(ld_get_generaldata_asyn).
DATA(ld_get_generaldata_asyn) = ' '.
 


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!