SAP SVMC_PROF_CREATE_SESSION Function Module for
SVMC_PROF_CREATE_SESSION is a standard svmc prof create session 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 svmc prof create session FM, simply by entering the name SVMC_PROF_CREATE_SESSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: SVMC_PROFILING
Program Name: SAPLSVMC_PROFILING
Main Program: SAPLSVMC_PROFILING
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SVMC_PROF_CREATE_SESSION 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 'SVMC_PROF_CREATE_SESSION'".
EXPORTING
* EXISTING_SESSION = '' "
IMPORTING
FILTER = "
PARAMETER = "
DIRECTORY = "
ID = "
EXCEPTIONS
PROF_NO_PARAMETERS = 1 PROF_NO_TRACE_SELECTED = 2 PROF_START_FAILED = 3 PROF_CREATE_ABORTED = 4 PROF_NO_NAME = 5 PROF_BAD_PARAMETER = 6
IMPORTING Parameters details for SVMC_PROF_CREATE_SESSION
EXISTING_SESSION -
Data type: SVMCRT_PROF_SESSION_DIRDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SVMC_PROF_CREATE_SESSION
FILTER -
Data type: SVMCRT_PROF_FILTEROptional: No
Call by Reference: No ( called with pass by value option)
PARAMETER -
Data type: SVMCRT_PROF_PARAMETEROptional: No
Call by Reference: No ( called with pass by value option)
DIRECTORY -
Data type: STRINGVALOptional: No
Call by Reference: No ( called with pass by value option)
ID -
Data type: IOptional: No
Call by Reference: Yes
EXCEPTIONS details
PROF_NO_PARAMETERS -
Data type:Optional: No
Call by Reference: Yes
PROF_NO_TRACE_SELECTED -
Data type:Optional: No
Call by Reference: Yes
PROF_START_FAILED -
Data type:Optional: No
Call by Reference: Yes
PROF_CREATE_ABORTED -
Data type:Optional: No
Call by Reference: Yes
PROF_NO_NAME -
Data type:Optional: No
Call by Reference: Yes
PROF_BAD_PARAMETER -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SVMC_PROF_CREATE_SESSION 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_filter | TYPE SVMCRT_PROF_FILTER, " | |||
| lv_existing_session | TYPE SVMCRT_PROF_SESSION_DIR, " '' | |||
| lv_prof_no_parameters | TYPE SVMCRT_PROF_SESSION_DIR, " | |||
| lv_parameter | TYPE SVMCRT_PROF_PARAMETER, " | |||
| lv_prof_no_trace_selected | TYPE SVMCRT_PROF_PARAMETER, " | |||
| lv_directory | TYPE STRINGVAL, " | |||
| lv_prof_start_failed | TYPE STRINGVAL, " | |||
| lv_id | TYPE I, " | |||
| lv_prof_create_aborted | TYPE I, " | |||
| lv_prof_no_name | TYPE I, " | |||
| lv_prof_bad_parameter | TYPE I. " |
|   CALL FUNCTION 'SVMC_PROF_CREATE_SESSION' " |
| EXPORTING | ||
| EXISTING_SESSION | = lv_existing_session | |
| IMPORTING | ||
| FILTER | = lv_filter | |
| PARAMETER | = lv_parameter | |
| DIRECTORY | = lv_directory | |
| ID | = lv_id | |
| EXCEPTIONS | ||
| PROF_NO_PARAMETERS = 1 | ||
| PROF_NO_TRACE_SELECTED = 2 | ||
| PROF_START_FAILED = 3 | ||
| PROF_CREATE_ABORTED = 4 | ||
| PROF_NO_NAME = 5 | ||
| PROF_BAD_PARAMETER = 6 | ||
| . " SVMC_PROF_CREATE_SESSION | ||
ABAP code using 7.40 inline data declarations to call FM SVMC_PROF_CREATE_SESSION
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_existing_session) | = ''. | |||
Search for further information about these or an SAP related objects