SAP COND_INT_SESSION_CHANGE Function Module for Internal: Change Session Parameters (Condition Type...)
COND_INT_SESSION_CHANGE is a standard cond int session change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Internal: Change Session Parameters (Condition Type...) 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 cond int session change FM, simply by entering the name COND_INT_SESSION_CHANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: COND_MNT_INTF
Program Name: SAPLCOND_MNT_INTF
Main Program: SAPLCOND_MNT_INTF
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function COND_INT_SESSION_CHANGE 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 'COND_INT_SESSION_CHANGE'"Internal: Change Session Parameters (Condition Type...).
EXPORTING
IV_HANDLE = "Handle for Maintenance Session
* IV_CONDTYPE = "Condition Type
* IV_CONDTABLE = "Condition Table
* IV_ACTIVITY = "Conditions: Maintenance Activity
EXCEPTIONS
CX_COND_MNT_SESSION = 1
IMPORTING Parameters details for COND_INT_SESSION_CHANGE
IV_HANDLE - Handle for Maintenance Session
Data type: COND_MNT_HANDLEOptional: No
Call by Reference: Yes
IV_CONDTYPE - Condition Type
Data type: KSCHLOptional: Yes
Call by Reference: Yes
IV_CONDTABLE - Condition Table
Data type: KOTABNROptional: Yes
Call by Reference: Yes
IV_ACTIVITY - Conditions: Maintenance Activity
Data type: COND_MNT_ACTIVITYOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
CX_COND_MNT_SESSION -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for COND_INT_SESSION_CHANGE 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_iv_handle | TYPE COND_MNT_HANDLE, " | |||
| lv_cx_cond_mnt_session | TYPE COND_MNT_HANDLE, " | |||
| lv_iv_condtype | TYPE KSCHL, " | |||
| lv_iv_condtable | TYPE KOTABNR, " | |||
| lv_iv_activity | TYPE COND_MNT_ACTIVITY. " |
|   CALL FUNCTION 'COND_INT_SESSION_CHANGE' "Internal: Change Session Parameters (Condition Type...) |
| EXPORTING | ||
| IV_HANDLE | = lv_iv_handle | |
| IV_CONDTYPE | = lv_iv_condtype | |
| IV_CONDTABLE | = lv_iv_condtable | |
| IV_ACTIVITY | = lv_iv_activity | |
| EXCEPTIONS | ||
| CX_COND_MNT_SESSION = 1 | ||
| . " COND_INT_SESSION_CHANGE | ||
ABAP code using 7.40 inline data declarations to call FM COND_INT_SESSION_CHANGE
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.Search for further information about these or an SAP related objects