SAP PERFORMANCE_PROT_GLOBAL_DARK Function Module for









PERFORMANCE_PROT_GLOBAL_DARK is a standard performance prot global dark 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 performance prot global dark FM, simply by entering the name PERFORMANCE_PROT_GLOBAL_DARK into the relevant SAP transaction such as SE37 or SE38.

Function Group: PERF_TRA_DIA
Program Name: SAPLPERF_TRA_DIA
Main Program: SAPLPERF_TRA_DIA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function PERFORMANCE_PROT_GLOBAL_DARK 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 'PERFORMANCE_PROT_GLOBAL_DARK'"
EXPORTING
P_LOGID = "
* P_DSR_WO_TX = 'X' "
* P_CHECKLIST = 'X' "
* P_EC_EXEC_DATA = "
* P_ASCHEMA = ' ' "
* P_MODULAR = ' ' "
P_PERFTEST_TEXT = "
P_EC_TCONF = "
* P_EC_VAR_TO_EXEC = "
* P_PRERUN = 0 "
* P_MAINRUN = 1 "
* P_RUNWTR = ' ' "
* P_RUNW_DSR = ' ' "
* P_DESTIN_MON = 'NONE' "

IMPORTING
P_MAIN_TEST_INFO = "
P_ERROR = "

TABLES
* T_LOGBOOK = "
* T_ADD_DEST = "
* T_ADD_TEST_INFO = "
* T_DEST_SCI_RESULT = "
.



IMPORTING Parameters details for PERFORMANCE_PROT_GLOBAL_DARK

P_LOGID -

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

P_DSR_WO_TX -

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

P_CHECKLIST -

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

P_EC_EXEC_DATA -

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

P_ASCHEMA -

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

P_MODULAR -

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

P_PERFTEST_TEXT -

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

P_EC_TCONF -

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

P_EC_VAR_TO_EXEC -

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

P_PRERUN -

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

P_MAINRUN -

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

P_RUNWTR -

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

P_RUNW_DSR -

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

P_DESTIN_MON -

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

EXPORTING Parameters details for PERFORMANCE_PROT_GLOBAL_DARK

P_MAIN_TEST_INFO -

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

P_ERROR -

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

TABLES Parameters details for PERFORMANCE_PROT_GLOBAL_DARK

T_LOGBOOK -

Data type: STRACPRO_D
Optional: Yes
Call by Reference: Yes

T_ADD_DEST -

Data type: ADD_DEST
Optional: Yes
Call by Reference: Yes

T_ADD_TEST_INFO -

Data type: ADD_TEST_INFO
Optional: Yes
Call by Reference: Yes

T_DEST_SCI_RESULT -

Data type: SDEST_SCI_RESULT
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for PERFORMANCE_PROT_GLOBAL_DARK 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_p_logid  TYPE REFID1, "   
lt_t_logbook  TYPE STANDARD TABLE OF STRACPRO_D, "   
lv_p_main_test_info  TYPE MAIN_TEST_INFO, "   
lv_p_dsr_wo_tx  TYPE WO_TID, "   'X'
lv_p_checklist  TYPE CREA_CHECKLIST, "   'X'
lv_p_ec_exec_data  TYPE ETEXECDATA, "   
lv_p_aschema  TYPE ASCHEMA, "   SPACE
lv_p_modular  TYPE PERF_MEAS_TYPE, "   SPACE
lv_p_error  TYPE XFELD, "   
lt_t_add_dest  TYPE STANDARD TABLE OF ADD_DEST, "   
lv_p_perftest_text  TYPE PROTIDTEXT, "   
lv_p_ec_tconf  TYPE ETOBJ_NAME, "   
lt_t_add_test_info  TYPE STANDARD TABLE OF ADD_TEST_INFO, "   
lv_p_ec_var_to_exec  TYPE ETVAR_ID_TABTYPE, "   
lt_t_dest_sci_result  TYPE STANDARD TABLE OF SDEST_SCI_RESULT, "   
lv_p_prerun  TYPE COLDRUN, "   0
lv_p_mainrun  TYPE HOTRUN, "   1
lv_p_runwtr  TYPE RUNWTR, "   SPACE
lv_p_runw_dsr  TYPE RUNWJV, "   SPACE
lv_p_destin_mon  TYPE DESTIN_Z. "   'NONE'

  CALL FUNCTION 'PERFORMANCE_PROT_GLOBAL_DARK'  "
    EXPORTING
         P_LOGID = lv_p_logid
         P_DSR_WO_TX = lv_p_dsr_wo_tx
         P_CHECKLIST = lv_p_checklist
         P_EC_EXEC_DATA = lv_p_ec_exec_data
         P_ASCHEMA = lv_p_aschema
         P_MODULAR = lv_p_modular
         P_PERFTEST_TEXT = lv_p_perftest_text
         P_EC_TCONF = lv_p_ec_tconf
         P_EC_VAR_TO_EXEC = lv_p_ec_var_to_exec
         P_PRERUN = lv_p_prerun
         P_MAINRUN = lv_p_mainrun
         P_RUNWTR = lv_p_runwtr
         P_RUNW_DSR = lv_p_runw_dsr
         P_DESTIN_MON = lv_p_destin_mon
    IMPORTING
         P_MAIN_TEST_INFO = lv_p_main_test_info
         P_ERROR = lv_p_error
    TABLES
         T_LOGBOOK = lt_t_logbook
         T_ADD_DEST = lt_t_add_dest
         T_ADD_TEST_INFO = lt_t_add_test_info
         T_DEST_SCI_RESULT = lt_t_dest_sci_result
. " PERFORMANCE_PROT_GLOBAL_DARK




ABAP code using 7.40 inline data declarations to call FM PERFORMANCE_PROT_GLOBAL_DARK

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.

 
 
 
DATA(ld_p_dsr_wo_tx) = 'X'.
 
DATA(ld_p_checklist) = 'X'.
 
 
DATA(ld_p_aschema) = ' '.
 
DATA(ld_p_modular) = ' '.
 
 
 
 
 
 
 
 
 
DATA(ld_p_mainrun) = 1.
 
DATA(ld_p_runwtr) = ' '.
 
DATA(ld_p_runw_dsr) = ' '.
 
DATA(ld_p_destin_mon) = 'NONE'.
 


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!