SAP COND_MNT_RECORD_FIELDCHANGE Function Module for Changing a record in the maintenance session (update 1)
COND_MNT_RECORD_FIELDCHANGE is a standard cond mnt record fieldchange SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Changing a record in the maintenance session (update 1) 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 mnt record fieldchange FM, simply by entering the name COND_MNT_RECORD_FIELDCHANGE 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_MNT_RECORD_FIELDCHANGE 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_MNT_RECORD_FIELDCHANGE'"Changing a record in the maintenance session (update 1).
EXPORTING
IV_HANDLE = "Handle for Maintenance Session
IV_REC_ID = "ID for a Condition Record
IT_CHANGES = "Table with Table Item/Value Pairs
IMPORTING
EV_SUBRC = "Result of Condition Maintenance
ET_MESSAGES = "Messages from Condition Maintenance
EXCEPTIONS
CX_COND_MNT_SESSION = 1 CX_COND_MNT_RECORD = 2
IMPORTING Parameters details for COND_MNT_RECORD_FIELDCHANGE
IV_HANDLE - Handle for Maintenance Session
Data type: COND_MNT_HANDLEOptional: No
Call by Reference: Yes
IV_REC_ID - ID for a Condition Record
Data type: COND_REC_IDOptional: No
Call by Reference: Yes
IT_CHANGES - Table with Table Item/Value Pairs
Data type: COND_MNT_TABVALUE_TOptional: No
Call by Reference: Yes
EXPORTING Parameters details for COND_MNT_RECORD_FIELDCHANGE
EV_SUBRC - Result of Condition Maintenance
Data type: COND_MNT_RESULTOptional: No
Call by Reference: Yes
ET_MESSAGES - Messages from Condition Maintenance
Data type: COND_MNT_MESSAGE_TOptional: No
Call by Reference: Yes
EXCEPTIONS details
CX_COND_MNT_SESSION - Exceptions from Maintenance Session
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CX_COND_MNT_RECORD - Exceptions During Processing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for COND_MNT_RECORD_FIELDCHANGE 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_ev_subrc | TYPE COND_MNT_RESULT, " | |||
| lv_iv_handle | TYPE COND_MNT_HANDLE, " | |||
| lv_cx_cond_mnt_session | TYPE COND_MNT_HANDLE, " | |||
| lv_iv_rec_id | TYPE COND_REC_ID, " | |||
| lv_et_messages | TYPE COND_MNT_MESSAGE_T, " | |||
| lv_cx_cond_mnt_record | TYPE COND_MNT_MESSAGE_T, " | |||
| lv_it_changes | TYPE COND_MNT_TABVALUE_T. " |
|   CALL FUNCTION 'COND_MNT_RECORD_FIELDCHANGE' "Changing a record in the maintenance session (update 1) |
| EXPORTING | ||
| IV_HANDLE | = lv_iv_handle | |
| IV_REC_ID | = lv_iv_rec_id | |
| IT_CHANGES | = lv_it_changes | |
| IMPORTING | ||
| EV_SUBRC | = lv_ev_subrc | |
| ET_MESSAGES | = lv_et_messages | |
| EXCEPTIONS | ||
| CX_COND_MNT_SESSION = 1 | ||
| CX_COND_MNT_RECORD = 2 | ||
| . " COND_MNT_RECORD_FIELDCHANGE | ||
ABAP code using 7.40 inline data declarations to call FM COND_MNT_RECORD_FIELDCHANGE
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