SAP IBAPI_C_COMPONENT_CHANGE Function Module for Change Components
IBAPI_C_COMPONENT_CHANGE is a standard ibapi c component 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 Change Components 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 ibapi c component change FM, simply by entering the name IBAPI_C_COMPONENT_CHANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: IBAPI_C
Program Name: SAPLIBAPI_C
Main Program: SAPLIBAPI_C
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function IBAPI_C_COMPONENT_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 'IBAPI_C_COMPONENT_CHANGE'"Change Components.
EXPORTING
* IV_INIT_LOG = CC_X "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
IS_CAUFVD = "Dialog Structure for Order Headers and Item
* IS_AFPOD = "Order Item Dialog Structure
IS_AFVGD = "Order: Dialog Table for Table AFVG (Order Operation)
IS_AFFLD = "Order: Dialog table for order sequences (AFFL)
IS_RESBD = "Reservation/Dependent Requirements
IS_RESBD_UP = "PM/CS BAPI Order Components (Update Structure for RESBD)
IMPORTING
ET_MESSAGES = "Error Messages
ES_AFPOD = "Order Item Dialog Structure
ES_AFVGD = "Order: Dialog Table for Table AFVG (Order Operation)
ES_AFFLD = "Order: Dialog table for order sequences (AFFL)
EXCEPTIONS
LOG_ERROR = 1
IMPORTING Parameters details for IBAPI_C_COMPONENT_CHANGE
IV_INIT_LOG - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEDefault: CC_X
Optional: Yes
Call by Reference: Yes
IS_CAUFVD - Dialog Structure for Order Headers and Item
Data type: CAUFVDOptional: No
Call by Reference: Yes
IS_AFPOD - Order Item Dialog Structure
Data type: AFPODOptional: Yes
Call by Reference: Yes
IS_AFVGD - Order: Dialog Table for Table AFVG (Order Operation)
Data type: AFVGDOptional: No
Call by Reference: Yes
IS_AFFLD - Order: Dialog table for order sequences (AFFL)
Data type: AFFLDOptional: No
Call by Reference: Yes
IS_RESBD - Reservation/Dependent Requirements
Data type: RESBDOptional: No
Call by Reference: Yes
IS_RESBD_UP - PM/CS BAPI Order Components (Update Structure for RESBD)
Data type: IBAPI_RESBD_UPDATEOptional: No
Call by Reference: Yes
EXPORTING Parameters details for IBAPI_C_COMPONENT_CHANGE
ET_MESSAGES - Error Messages
Data type: PS_MESSAGESOptional: No
Call by Reference: Yes
ES_AFPOD - Order Item Dialog Structure
Data type: AFPODOptional: No
Call by Reference: Yes
ES_AFVGD - Order: Dialog Table for Table AFVG (Order Operation)
Data type: AFVGDOptional: No
Call by Reference: Yes
ES_AFFLD - Order: Dialog table for order sequences (AFFL)
Data type: AFFLDOptional: No
Call by Reference: Yes
EXCEPTIONS details
LOG_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for IBAPI_C_COMPONENT_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_log_error | TYPE STRING, " | |||
| lv_et_messages | TYPE PS_MESSAGES, " | |||
| lv_iv_init_log | TYPE BOOLE-BOOLE, " CC_X | |||
| lv_es_afpod | TYPE AFPOD, " | |||
| lv_is_caufvd | TYPE CAUFVD, " | |||
| lv_es_afvgd | TYPE AFVGD, " | |||
| lv_is_afpod | TYPE AFPOD, " | |||
| lv_es_affld | TYPE AFFLD, " | |||
| lv_is_afvgd | TYPE AFVGD, " | |||
| lv_is_affld | TYPE AFFLD, " | |||
| lv_is_resbd | TYPE RESBD, " | |||
| lv_is_resbd_up | TYPE IBAPI_RESBD_UPDATE. " |
|   CALL FUNCTION 'IBAPI_C_COMPONENT_CHANGE' "Change Components |
| EXPORTING | ||
| IV_INIT_LOG | = lv_iv_init_log | |
| IS_CAUFVD | = lv_is_caufvd | |
| IS_AFPOD | = lv_is_afpod | |
| IS_AFVGD | = lv_is_afvgd | |
| IS_AFFLD | = lv_is_affld | |
| IS_RESBD | = lv_is_resbd | |
| IS_RESBD_UP | = lv_is_resbd_up | |
| IMPORTING | ||
| ET_MESSAGES | = lv_et_messages | |
| ES_AFPOD | = lv_es_afpod | |
| ES_AFVGD | = lv_es_afvgd | |
| ES_AFFLD | = lv_es_affld | |
| EXCEPTIONS | ||
| LOG_ERROR = 1 | ||
| . " IBAPI_C_COMPONENT_CHANGE | ||
ABAP code using 7.40 inline data declarations to call FM IBAPI_C_COMPONENT_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.| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_iv_init_log). | ||||
| DATA(ld_iv_init_log) | = CC_X. | |||
Search for further information about these or an SAP related objects