SAP BAPI_INSPECTIONPLAN_CHANGE Function Module for BAPI: Maintain Inspection Plan
BAPI_INSPECTIONPLAN_CHANGE is a standard bapi inspectionplan 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 BAPI: Maintain Inspection Plan 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 bapi inspectionplan change FM, simply by entering the name BAPI_INSPECTIONPLAN_CHANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CPCC_ES
Program Name: SAPLCPCC_ES
Main Program: SAPLCPCC_ES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_INSPECTIONPLAN_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 'BAPI_INSPECTIONPLAN_CHANGE'"BAPI: Maintain Inspection Plan.
EXPORTING
* CHANGE_NO = "Change Number
* KEY_DATE = "Date
GROUP = "Key for Task List Group
GROUPCOUNTER = "Group Counter
* MATERIAL = "Material Number
* PLANT = "Plant
* TASK = "Header data
* TASK_X = "Header data changes
* MATERIAL_LONG = "Material Number
TABLES
* MATERIAL_TASK_ALLOCATIONS = "Material Task Allocation
* PRODUCTION_RESOURCES_TOOLS_X = "Production Resources Changes
* INSPECTION_CHARACTERISTICS = "Inspection Characteristics
* INSPECTION_CHARACTERISTICS_X = "Inspection Characteristics Changes
* INSPECTION_VALUES = "Inspection Characteristic Values
* INSPECTION_VALUES_X = "Inspection Characteristic Values Changes
* REFERENCED_OPERATIONS = "Reference Operations
* TEXT = "Text
* TEXT_ALLOCATIONS = "Text Allocations
RETURN = "Messages
* MATERIAL_TASK_ALLOCATIONS_X = "Material Task Allocation Changes
* SEQUENCES = "Sequences
* SEQUENCES_X = "Sequences Changes
* OPERATIONS = "Operations
* OPERATIONS_X = "Operations Changes
* SUBOPERATIONS = "Suboperations
* SUBOPERATIONS_X = "Suboperations Changes
* PRODUCTION_RESOURCES_TOOLS = "Production Resources
IMPORTING Parameters details for BAPI_INSPECTIONPLAN_CHANGE
CHANGE_NO - Change Number
Data type: BAPI_ES_TASK_MAINT_HDR-CHANGE_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
KEY_DATE - Date
Data type: BAPI_ES_TASK_MAINT_HDR-KEY_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
GROUP - Key for Task List Group
Data type: BAPI_ES_TASK_MAINT_HDR-TASK_LIST_GROUPOptional: No
Call by Reference: No ( called with pass by value option)
GROUPCOUNTER - Group Counter
Data type: BAPI_ES_TASK_MAINT_HDR-GROUP_COUNTEROptional: No
Call by Reference: No ( called with pass by value option)
MATERIAL - Material Number
Data type: BAPI_ES_TASK_MAINT_HDR-MATERIALOptional: Yes
Call by Reference: No ( called with pass by value option)
PLANT - Plant
Data type: BAPI_ES_TASK_MAINT_HDR-PLANTOptional: Yes
Call by Reference: No ( called with pass by value option)
TASK - Header data
Data type: BAPI_ES_TASK_MAINT_TSKOptional: Yes
Call by Reference: No ( called with pass by value option)
TASK_X - Header data changes
Data type: BAPI_ES_TASK_MAINT_TSK_XOptional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL_LONG - Material Number
Data type: BAPI_ES_TASK_MAINT_HDR-MATERIAL_LONGOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_INSPECTIONPLAN_CHANGE
MATERIAL_TASK_ALLOCATIONS - Material Task Allocation
Data type: BAPI_ES_TASK_MAINT_MTKOptional: Yes
Call by Reference: No ( called with pass by value option)
PRODUCTION_RESOURCES_TOOLS_X - Production Resources Changes
Data type: BAPI_ES_TASK_MAINT_PRT_XOptional: Yes
Call by Reference: No ( called with pass by value option)
INSPECTION_CHARACTERISTICS - Inspection Characteristics
Data type: BAPI_ES_TASK_MAINT_CHAOptional: Yes
Call by Reference: No ( called with pass by value option)
INSPECTION_CHARACTERISTICS_X - Inspection Characteristics Changes
Data type: BAPI_ES_TASK_MAINT_CHA_XOptional: Yes
Call by Reference: No ( called with pass by value option)
INSPECTION_VALUES - Inspection Characteristic Values
Data type: BAPI_ES_TASK_MAINT_CHVOptional: Yes
Call by Reference: No ( called with pass by value option)
INSPECTION_VALUES_X - Inspection Characteristic Values Changes
Data type: BAPI_ES_TASK_MAINT_CHV_XOptional: Yes
Call by Reference: No ( called with pass by value option)
REFERENCED_OPERATIONS - Reference Operations
Data type: BAPI_ES_TASK_MAINT_ROPROptional: Yes
Call by Reference: No ( called with pass by value option)
TEXT - Text
Data type: BAPI_ES_TASK_MAINT_TXTOptional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_ALLOCATIONS - Text Allocations
Data type: BAPI_ES_TASK_MAINT_TXTHDROptional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Messages
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
MATERIAL_TASK_ALLOCATIONS_X - Material Task Allocation Changes
Data type: BAPI_ES_TASK_MAINT_MTK_XOptional: Yes
Call by Reference: No ( called with pass by value option)
SEQUENCES - Sequences
Data type: BAPI_ES_TASK_MAINT_SEQOptional: Yes
Call by Reference: No ( called with pass by value option)
SEQUENCES_X - Sequences Changes
Data type: BAPI_ES_TASK_MAINT_SEQ_XOptional: Yes
Call by Reference: No ( called with pass by value option)
OPERATIONS - Operations
Data type: BAPI_ES_TASK_MAINT_OPROptional: Yes
Call by Reference: No ( called with pass by value option)
OPERATIONS_X - Operations Changes
Data type: BAPI_ES_TASK_MAINT_OPR_XOptional: Yes
Call by Reference: No ( called with pass by value option)
SUBOPERATIONS - Suboperations
Data type: BAPI_ES_TASK_MAINT_SOPROptional: Yes
Call by Reference: No ( called with pass by value option)
SUBOPERATIONS_X - Suboperations Changes
Data type: BAPI_ES_TASK_MAINT_SOPR_XOptional: Yes
Call by Reference: No ( called with pass by value option)
PRODUCTION_RESOURCES_TOOLS - Production Resources
Data type: BAPI_ES_TASK_MAINT_PRTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_INSPECTIONPLAN_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_change_no | TYPE BAPI_ES_TASK_MAINT_HDR-CHANGE_NO, " | |||
| lt_material_task_allocations | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_MTK, " | |||
| lt_production_resources_tools_x | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_PRT_X, " | |||
| lt_inspection_characteristics | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_CHA, " | |||
| lt_inspection_characteristics_x | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_CHA_X, " | |||
| lt_inspection_values | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_CHV, " | |||
| lt_inspection_values_x | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_CHV_X, " | |||
| lt_referenced_operations | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_ROPR, " | |||
| lt_text | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_TXT, " | |||
| lt_text_allocations | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_TXTHDR, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_key_date | TYPE BAPI_ES_TASK_MAINT_HDR-KEY_DATE, " | |||
| lt_material_task_allocations_x | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_MTK_X, " | |||
| lv_group | TYPE BAPI_ES_TASK_MAINT_HDR-TASK_LIST_GROUP, " | |||
| lt_sequences | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_SEQ, " | |||
| lt_sequences_x | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_SEQ_X, " | |||
| lv_groupcounter | TYPE BAPI_ES_TASK_MAINT_HDR-GROUP_COUNTER, " | |||
| lv_material | TYPE BAPI_ES_TASK_MAINT_HDR-MATERIAL, " | |||
| lt_operations | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_OPR, " | |||
| lv_plant | TYPE BAPI_ES_TASK_MAINT_HDR-PLANT, " | |||
| lt_operations_x | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_OPR_X, " | |||
| lv_task | TYPE BAPI_ES_TASK_MAINT_TSK, " | |||
| lt_suboperations | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_SOPR, " | |||
| lv_task_x | TYPE BAPI_ES_TASK_MAINT_TSK_X, " | |||
| lt_suboperations_x | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_SOPR_X, " | |||
| lv_material_long | TYPE BAPI_ES_TASK_MAINT_HDR-MATERIAL_LONG, " | |||
| lt_production_resources_tools | TYPE STANDARD TABLE OF BAPI_ES_TASK_MAINT_PRT. " |
|   CALL FUNCTION 'BAPI_INSPECTIONPLAN_CHANGE' "BAPI: Maintain Inspection Plan |
| EXPORTING | ||
| CHANGE_NO | = lv_change_no | |
| KEY_DATE | = lv_key_date | |
| GROUP | = lv_group | |
| GROUPCOUNTER | = lv_groupcounter | |
| MATERIAL | = lv_material | |
| PLANT | = lv_plant | |
| TASK | = lv_task | |
| TASK_X | = lv_task_x | |
| MATERIAL_LONG | = lv_material_long | |
| TABLES | ||
| MATERIAL_TASK_ALLOCATIONS | = lt_material_task_allocations | |
| PRODUCTION_RESOURCES_TOOLS_X | = lt_production_resources_tools_x | |
| INSPECTION_CHARACTERISTICS | = lt_inspection_characteristics | |
| INSPECTION_CHARACTERISTICS_X | = lt_inspection_characteristics_x | |
| INSPECTION_VALUES | = lt_inspection_values | |
| INSPECTION_VALUES_X | = lt_inspection_values_x | |
| REFERENCED_OPERATIONS | = lt_referenced_operations | |
| TEXT | = lt_text | |
| TEXT_ALLOCATIONS | = lt_text_allocations | |
| RETURN | = lt_return | |
| MATERIAL_TASK_ALLOCATIONS_X | = lt_material_task_allocations_x | |
| SEQUENCES | = lt_sequences | |
| SEQUENCES_X | = lt_sequences_x | |
| OPERATIONS | = lt_operations | |
| OPERATIONS_X | = lt_operations_x | |
| SUBOPERATIONS | = lt_suboperations | |
| SUBOPERATIONS_X | = lt_suboperations_x | |
| PRODUCTION_RESOURCES_TOOLS | = lt_production_resources_tools | |
| . " BAPI_INSPECTIONPLAN_CHANGE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_INSPECTIONPLAN_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 CHANGE_NO FROM BAPI_ES_TASK_MAINT_HDR INTO @DATA(ld_change_no). | ||||
| "SELECT single KEY_DATE FROM BAPI_ES_TASK_MAINT_HDR INTO @DATA(ld_key_date). | ||||
| "SELECT single TASK_LIST_GROUP FROM BAPI_ES_TASK_MAINT_HDR INTO @DATA(ld_group). | ||||
| "SELECT single GROUP_COUNTER FROM BAPI_ES_TASK_MAINT_HDR INTO @DATA(ld_groupcounter). | ||||
| "SELECT single MATERIAL FROM BAPI_ES_TASK_MAINT_HDR INTO @DATA(ld_material). | ||||
| "SELECT single PLANT FROM BAPI_ES_TASK_MAINT_HDR INTO @DATA(ld_plant). | ||||
| "SELECT single MATERIAL_LONG FROM BAPI_ES_TASK_MAINT_HDR INTO @DATA(ld_material_long). | ||||
Search for further information about these or an SAP related objects