SAP CONTROL_PERF_REQUEST Function Module for









CONTROL_PERF_REQUEST is a standard control perf request 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 control perf request FM, simply by entering the name CONTROL_PERF_REQUEST into the relevant SAP transaction such as SE37 or SE38.

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



Function CONTROL_PERF_REQUEST 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 'CONTROL_PERF_REQUEST'"
EXPORTING
* LOCAL_REMOTE = 'LOCAL' "
LOGICAL_DESTINATION = "
REQUEST_TYP = "Request type (value 100, 101, ....)
REQUEST_ID = "Key for the request (shared memory block)
REQUEST_MODE = "Request mode (S = synchron,, P = put, G = get)
REQUEST_PARAM1 = "Parameter for input and output
REQUEST_PARAM2 = "Parameter for input and output
REQUEST_PARAM3 = "Parameter for input and output

IMPORTING
REQUEST_ID = "Key for the request (shared memory block)
REQUEST_RETURN_CODE = "Return code
REQUEST_PARAM1 = "Parameter for input and output
REQUEST_PARAM2 = "Parameter for input and output
REQUEST_PARAM3 = "Parameter for input and output

EXCEPTIONS
REQUEST_TO_OLD = 1 COLLECTOR_NOT_RUNNING = 10 SHARED_MEMORY_NOT_AVAILABLE = 11 COLLECTOR_BUSY = 12 VERSION_CONFLICT = 13 INTERNAL_ERROR_ADRESS_FAILED = 14 INTERNAL_ERROR_DIFFERENT_FIELD = 15 INTERNAL_ERROR_NO_NEW_LINE = 16 NO_NETWORK_COLLECTOR_RUNNING = 17 SYSTEM_FAILURE = 18 COMMUNICATION_FAILURE = 19 NO_BUFFER_SPACE_IN_SHM = 2 UNVALID_REQUEST_ID = 3 ANSWER_IS_NOT_YET_AVAILABLE = 4 COMMUNICATION_ERROR = 5 ANSWER_NOT_POSSIBLE = 6 COMMUNICATION_BUFFER_TO_SMALL = 7 UNKNOWN_ERROR = 8 ILLEGAL_PARAMETER = 9
.



IMPORTING Parameters details for CONTROL_PERF_REQUEST

LOCAL_REMOTE -

Data type: DEF_PAR_FU-LOC_REMOTE
Default: 'LOCAL'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOGICAL_DESTINATION -

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

REQUEST_TYP - Request type (value 100, 101, ....)

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

REQUEST_ID - Key for the request (shared memory block)

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

REQUEST_MODE - Request mode (S = synchron,, P = put, G = get)

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

REQUEST_PARAM1 - Parameter for input and output

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

REQUEST_PARAM2 - Parameter for input and output

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

REQUEST_PARAM3 - Parameter for input and output

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

EXPORTING Parameters details for CONTROL_PERF_REQUEST

REQUEST_ID - Key for the request (shared memory block)

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

REQUEST_RETURN_CODE - Return code

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

REQUEST_PARAM1 - Parameter for input and output

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

REQUEST_PARAM2 - Parameter for input and output

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

REQUEST_PARAM3 - Parameter for input and output

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

EXCEPTIONS details

REQUEST_TO_OLD - Request is too old - answer has been overwritten

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

COLLECTOR_NOT_RUNNING -

Data type:
Optional: No
Call by Reference: Yes

SHARED_MEMORY_NOT_AVAILABLE -

Data type:
Optional: No
Call by Reference: Yes

COLLECTOR_BUSY -

Data type:
Optional: No
Call by Reference: Yes

VERSION_CONFLICT -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR_ADRESS_FAILED -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR_DIFFERENT_FIELD -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR_NO_NEW_LINE -

Data type:
Optional: No
Call by Reference: Yes

NO_NETWORK_COLLECTOR_RUNNING -

Data type:
Optional: No
Call by Reference: Yes

SYSTEM_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

COMMUNICATION_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

NO_BUFFER_SPACE_IN_SHM - No buffer space available in shared memory

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

UNVALID_REQUEST_ID - Invalid request-id

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

ANSWER_IS_NOT_YET_AVAILABLE - Please wait - answer has not yet arrived

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

COMMUNICATION_ERROR - Communication error ==> program error

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

ANSWER_NOT_POSSIBLE - Answer is not possible

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

COMMUNICATION_BUFFER_TO_SMALL - Communication buffer is to small (hard-coded)

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

UNKNOWN_ERROR - Unknown error (see /usr/sap/tmp/dev_coll)

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

ILLEGAL_PARAMETER - Illegal parameter (for example path by DirFree)

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

Copy and paste ABAP code example for CONTROL_PERF_REQUEST 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_request_id  TYPE DEF_PAR_FU-REQ_ID, "   
lv_local_remote  TYPE DEF_PAR_FU-LOC_REMOTE, "   'LOCAL'
lv_request_to_old  TYPE DEF_PAR_FU, "   
lv_collector_not_running  TYPE DEF_PAR_FU, "   
lv_shared_memory_not_available  TYPE DEF_PAR_FU, "   
lv_collector_busy  TYPE DEF_PAR_FU, "   
lv_version_conflict  TYPE DEF_PAR_FU, "   
lv_internal_error_adress_failed  TYPE DEF_PAR_FU, "   
lv_internal_error_different_field  TYPE DEF_PAR_FU, "   
lv_internal_error_no_new_line  TYPE DEF_PAR_FU, "   
lv_no_network_collector_running  TYPE DEF_PAR_FU, "   
lv_system_failure  TYPE DEF_PAR_FU, "   
lv_communication_failure  TYPE DEF_PAR_FU, "   
lv_logical_destination  TYPE RFCDES-RFCDEST, "   
lv_request_return_code  TYPE DEF_PAR_FU-REQ_RC, "   
lv_no_buffer_space_in_shm  TYPE DEF_PAR_FU, "   
lv_request_typ  TYPE DEF_PAR_FU-REQ_TYP, "   
lv_request_param1  TYPE DEF_PAR_FU-REQ_PARAM1, "   
lv_unvalid_request_id  TYPE DEF_PAR_FU, "   
lv_request_id  TYPE DEF_PAR_FU-REQ_ID, "   
lv_request_param2  TYPE DEF_PAR_FU-REQ_PARAM2, "   
lv_answer_is_not_yet_available  TYPE DEF_PAR_FU, "   
lv_request_mode  TYPE DEF_PAR_FU-REQ_MODE, "   
lv_request_param3  TYPE DEF_PAR_FU-REQ_PARAM3, "   
lv_communication_error  TYPE DEF_PAR_FU, "   
lv_request_param1  TYPE DEF_PAR_FU-REQ_PARAM1, "   
lv_answer_not_possible  TYPE DEF_PAR_FU, "   
lv_request_param2  TYPE DEF_PAR_FU-REQ_PARAM2, "   
lv_communication_buffer_to_small  TYPE DEF_PAR_FU, "   
lv_unknown_error  TYPE DEF_PAR_FU, "   
lv_request_param3  TYPE DEF_PAR_FU-REQ_PARAM3, "   
lv_illegal_parameter  TYPE DEF_PAR_FU. "   

  CALL FUNCTION 'CONTROL_PERF_REQUEST'  "
    EXPORTING
         LOCAL_REMOTE = lv_local_remote
         LOGICAL_DESTINATION = lv_logical_destination
         REQUEST_TYP = lv_request_typ
         REQUEST_ID = lv_request_id
         REQUEST_MODE = lv_request_mode
         REQUEST_PARAM1 = lv_request_param1
         REQUEST_PARAM2 = lv_request_param2
         REQUEST_PARAM3 = lv_request_param3
    IMPORTING
         REQUEST_ID = lv_request_id
         REQUEST_RETURN_CODE = lv_request_return_code
         REQUEST_PARAM1 = lv_request_param1
         REQUEST_PARAM2 = lv_request_param2
         REQUEST_PARAM3 = lv_request_param3
    EXCEPTIONS
        REQUEST_TO_OLD = 1
        COLLECTOR_NOT_RUNNING = 10
        SHARED_MEMORY_NOT_AVAILABLE = 11
        COLLECTOR_BUSY = 12
        VERSION_CONFLICT = 13
        INTERNAL_ERROR_ADRESS_FAILED = 14
        INTERNAL_ERROR_DIFFERENT_FIELD = 15
        INTERNAL_ERROR_NO_NEW_LINE = 16
        NO_NETWORK_COLLECTOR_RUNNING = 17
        SYSTEM_FAILURE = 18
        COMMUNICATION_FAILURE = 19
        NO_BUFFER_SPACE_IN_SHM = 2
        UNVALID_REQUEST_ID = 3
        ANSWER_IS_NOT_YET_AVAILABLE = 4
        COMMUNICATION_ERROR = 5
        ANSWER_NOT_POSSIBLE = 6
        COMMUNICATION_BUFFER_TO_SMALL = 7
        UNKNOWN_ERROR = 8
        ILLEGAL_PARAMETER = 9
. " CONTROL_PERF_REQUEST




ABAP code using 7.40 inline data declarations to call FM CONTROL_PERF_REQUEST

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 REQ_ID FROM DEF_PAR_FU INTO @DATA(ld_request_id).
 
"SELECT single LOC_REMOTE FROM DEF_PAR_FU INTO @DATA(ld_local_remote).
DATA(ld_local_remote) = 'LOCAL'.
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_logical_destination).
 
"SELECT single REQ_RC FROM DEF_PAR_FU INTO @DATA(ld_request_return_code).
 
 
"SELECT single REQ_TYP FROM DEF_PAR_FU INTO @DATA(ld_request_typ).
 
"SELECT single REQ_PARAM1 FROM DEF_PAR_FU INTO @DATA(ld_request_param1).
 
 
"SELECT single REQ_ID FROM DEF_PAR_FU INTO @DATA(ld_request_id).
 
"SELECT single REQ_PARAM2 FROM DEF_PAR_FU INTO @DATA(ld_request_param2).
 
 
"SELECT single REQ_MODE FROM DEF_PAR_FU INTO @DATA(ld_request_mode).
 
"SELECT single REQ_PARAM3 FROM DEF_PAR_FU INTO @DATA(ld_request_param3).
 
 
"SELECT single REQ_PARAM1 FROM DEF_PAR_FU INTO @DATA(ld_request_param1).
 
 
"SELECT single REQ_PARAM2 FROM DEF_PAR_FU INTO @DATA(ld_request_param2).
 
 
 
"SELECT single REQ_PARAM3 FROM DEF_PAR_FU INTO @DATA(ld_request_param3).
 
 


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!