SAP SALI_PERF_CUSTOMIZE_PRESET Function Module for Performance-specific Customizing that has not yet been done from DB









SALI_PERF_CUSTOMIZE_PRESET is a standard sali perf customize preset SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Performance-specific Customizing that has not yet been done from DB 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 sali perf customize preset FM, simply by entering the name SALI_PERF_CUSTOMIZE_PRESET into the relevant SAP transaction such as SE37 or SE38.

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



Function SALI_PERF_CUSTOMIZE_PRESET 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_PERF_CUSTOMIZE_PRESET'"Performance-specific Customizing that has not yet been done from DB
EXPORTING
TID = "
* DECIMALS = 0 "
* ALERT_TEXT_MSGID = 'RT' "
* ALERT_TEXT_MSGNO = 001 "
* CUSTOMIZING_GROUP = "
* RELEVANT_VALUE = AL_PERF_RV_LAST "
* THRESHOLD_DIRECTION = AL_THRESHDIR_ABOVE "
TH_GREEN_TO_YELLOW = "
TH_YELLOW_TO_RED = "
* TH_YELLOW_TO_GREEN = "
* TH_RED_TO_YELLOW = "
* UNIT = "

IMPORTING
DETAILED_ERROR_TEXT = "

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



IMPORTING Parameters details for SALI_PERF_CUSTOMIZE_PRESET

TID -

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

DECIMALS -

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

ALERT_TEXT_MSGID -

Data type: C
Default: 'RT'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ALERT_TEXT_MSGNO -

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

CUSTOMIZING_GROUP -

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

RELEVANT_VALUE -

Data type: ALPERFCUSW-RELVALTYPE
Default: AL_PERF_RV_LAST
Optional: Yes
Call by Reference: No ( called with pass by value option)

THRESHOLD_DIRECTION -

Data type: ALPERFCUSW-THRESHDIR
Default: AL_THRESHDIR_ABOVE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TH_GREEN_TO_YELLOW -

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

TH_YELLOW_TO_RED -

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

TH_YELLOW_TO_GREEN -

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

TH_RED_TO_YELLOW -

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

UNIT -

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

EXPORTING Parameters details for SALI_PERF_CUSTOMIZE_PRESET

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)

WRONG_TYPECLASS -

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)

Copy and paste ABAP code example for SALI_PERF_CUSTOMIZE_PRESET 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, "   
lv_invalid_tid  TYPE ALGLOBTID, "   
lv_detailed_error_text  TYPE STRING, "   
lv_decimals  TYPE ALPERFCUSW-DECIMALS, "   0
lv_alert_text_msgid  TYPE C, "   'RT'
lv_alert_text_msgno  TYPE SY-MSGNO, "   001
lv_wrong_typeclass  TYPE SY, "   
lv_customizing_group  TYPE C, "   
lv_relevant_value  TYPE ALPERFCUSW-RELVALTYPE, "   AL_PERF_RV_LAST
lv_invalid_parameters  TYPE ALPERFCUSW, "   
lv_threshold_direction  TYPE ALPERFCUSW-THRESHDIR, "   AL_THRESHDIR_ABOVE
lv_communication_failure  TYPE ALPERFCUSW, "   
lv_other_problem  TYPE ALPERFCUSW, "   
lv_th_green_to_yellow  TYPE ALPERFCUSW-THRESHG2Y, "   
lv_wrong_segment  TYPE ALPERFCUSW, "   
lv_th_yellow_to_red  TYPE ALPERFCUSW-THRESHY2R, "   
lv_th_yellow_to_green  TYPE ALPERFCUSW-THRESHY2G, "   
lv_internal_failure_sals  TYPE ALPERFCUSW, "   
lv_th_red_to_yellow  TYPE ALPERFCUSW-THRESHR2Y, "   
lv_unit  TYPE C. "   

  CALL FUNCTION 'SALI_PERF_CUSTOMIZE_PRESET'  "Performance-specific Customizing that has not yet been done from DB
    EXPORTING
         TID = lv_tid
         DECIMALS = lv_decimals
         ALERT_TEXT_MSGID = lv_alert_text_msgid
         ALERT_TEXT_MSGNO = lv_alert_text_msgno
         CUSTOMIZING_GROUP = lv_customizing_group
         RELEVANT_VALUE = lv_relevant_value
         THRESHOLD_DIRECTION = lv_threshold_direction
         TH_GREEN_TO_YELLOW = lv_th_green_to_yellow
         TH_YELLOW_TO_RED = lv_th_yellow_to_red
         TH_YELLOW_TO_GREEN = lv_th_yellow_to_green
         TH_RED_TO_YELLOW = lv_th_red_to_yellow
         UNIT = lv_unit
    IMPORTING
         DETAILED_ERROR_TEXT = lv_detailed_error_text
    EXCEPTIONS
        INVALID_TID = 1
        WRONG_TYPECLASS = 2
        INVALID_PARAMETERS = 3
        COMMUNICATION_FAILURE = 4
        OTHER_PROBLEM = 5
        WRONG_SEGMENT = 6
        INTERNAL_FAILURE_SALS = 7
. " SALI_PERF_CUSTOMIZE_PRESET




ABAP code using 7.40 inline data declarations to call FM SALI_PERF_CUSTOMIZE_PRESET

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 DECIMALS FROM ALPERFCUSW INTO @DATA(ld_decimals).
 
DATA(ld_alert_text_msgid) = 'RT'.
 
"SELECT single MSGNO FROM SY INTO @DATA(ld_alert_text_msgno).
DATA(ld_alert_text_msgno) = 001.
 
 
 
"SELECT single RELVALTYPE FROM ALPERFCUSW INTO @DATA(ld_relevant_value).
DATA(ld_relevant_value) = AL_PERF_RV_LAST.
 
 
"SELECT single THRESHDIR FROM ALPERFCUSW INTO @DATA(ld_threshold_direction).
DATA(ld_threshold_direction) = AL_THRESHDIR_ABOVE.
 
 
 
"SELECT single THRESHG2Y FROM ALPERFCUSW INTO @DATA(ld_th_green_to_yellow).
 
 
"SELECT single THRESHY2R FROM ALPERFCUSW INTO @DATA(ld_th_yellow_to_red).
 
"SELECT single THRESHY2G FROM ALPERFCUSW INTO @DATA(ld_th_yellow_to_green).
 
 
"SELECT single THRESHR2Y FROM ALPERFCUSW INTO @DATA(ld_th_red_to_yellow).
 
 


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!