SAP CO_BP_OPR_INSERT_TMP Function Module for NOTRANSL: OCM: Temporäres Einfügen eines Vorgangs nur für die Anzeige
CO_BP_OPR_INSERT_TMP is a standard co bp opr insert tmp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: OCM: Temporäres Einfügen eines Vorgangs nur für die Anzeige 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 co bp opr insert tmp FM, simply by entering the name CO_BP_OPR_INSERT_TMP into the relevant SAP transaction such as SE37 or SE38.
Function Group: COBP
Program Name: SAPLCOBP
Main Program: SAPLCOBP
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CO_BP_OPR_INSERT_TMP 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 'CO_BP_OPR_INSERT_TMP'"NOTRANSL: OCM: Temporäres Einfügen eines Vorgangs nur für die Anzeige.
EXPORTING
AUFNR_IMP = "Order Number
* RESULT_IMP = ' ' "Generic Type
AUFPL_IMP = "Routing number of operations in the order
APLFL_IMP = "Sequence
* SUMNR_IMP = "Node number of the superior operation
* VSNMR_KEY = ' ' "Number or description of a version
* AUFPL_KEY = "Routing number of operations in the order
* APLZL_KEY = "General counter for order
SOURCE_IMP = "Generic Type
* AFVGB_IMP = "Order: Operation structure for buffer table
IMPORTING
APLZL_TMP = "General counter for order
EXCEPTIONS
INVALID_SOURCE = 1 OPERATION_NOT_FOUND = 2
IMPORTING Parameters details for CO_BP_OPR_INSERT_TMP
AUFNR_IMP - Order Number
Data type: AUFK-AUFNROptional: No
Call by Reference: No ( called with pass by value option)
RESULT_IMP - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUFPL_IMP - Routing number of operations in the order
Data type: AFVC-AUFPLOptional: No
Call by Reference: No ( called with pass by value option)
APLFL_IMP - Sequence
Data type: AFVC-APLFLOptional: No
Call by Reference: No ( called with pass by value option)
SUMNR_IMP - Node number of the superior operation
Data type: AFVC-SUMNROptional: Yes
Call by Reference: No ( called with pass by value option)
VSNMR_KEY - Number or description of a version
Data type: VSKOPF-VSNMRDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUFPL_KEY - Routing number of operations in the order
Data type: AFVC-AUFPLOptional: Yes
Call by Reference: No ( called with pass by value option)
APLZL_KEY - General counter for order
Data type: AFVC-APLZLOptional: Yes
Call by Reference: No ( called with pass by value option)
SOURCE_IMP - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
AFVGB_IMP - Order: Operation structure for buffer table
Data type: AFVGBOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CO_BP_OPR_INSERT_TMP
APLZL_TMP - General counter for order
Data type: AFVC-APLZLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_SOURCE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OPERATION_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CO_BP_OPR_INSERT_TMP 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_aplzl_tmp | TYPE AFVC-APLZL, " | |||
| lv_aufnr_imp | TYPE AUFK-AUFNR, " | |||
| lv_invalid_source | TYPE AUFK, " | |||
| lv_result_imp | TYPE C, " ' ' | |||
| lv_aufpl_imp | TYPE AFVC-AUFPL, " | |||
| lv_operation_not_found | TYPE AFVC, " | |||
| lv_aplfl_imp | TYPE AFVC-APLFL, " | |||
| lv_sumnr_imp | TYPE AFVC-SUMNR, " | |||
| lv_vsnmr_key | TYPE VSKOPF-VSNMR, " ' ' | |||
| lv_aufpl_key | TYPE AFVC-AUFPL, " | |||
| lv_aplzl_key | TYPE AFVC-APLZL, " | |||
| lv_source_imp | TYPE C, " | |||
| lv_afvgb_imp | TYPE AFVGB. " |
|   CALL FUNCTION 'CO_BP_OPR_INSERT_TMP' "NOTRANSL: OCM: Temporäres Einfügen eines Vorgangs nur für die Anzeige |
| EXPORTING | ||
| AUFNR_IMP | = lv_aufnr_imp | |
| RESULT_IMP | = lv_result_imp | |
| AUFPL_IMP | = lv_aufpl_imp | |
| APLFL_IMP | = lv_aplfl_imp | |
| SUMNR_IMP | = lv_sumnr_imp | |
| VSNMR_KEY | = lv_vsnmr_key | |
| AUFPL_KEY | = lv_aufpl_key | |
| APLZL_KEY | = lv_aplzl_key | |
| SOURCE_IMP | = lv_source_imp | |
| AFVGB_IMP | = lv_afvgb_imp | |
| IMPORTING | ||
| APLZL_TMP | = lv_aplzl_tmp | |
| EXCEPTIONS | ||
| INVALID_SOURCE = 1 | ||
| OPERATION_NOT_FOUND = 2 | ||
| . " CO_BP_OPR_INSERT_TMP | ||
ABAP code using 7.40 inline data declarations to call FM CO_BP_OPR_INSERT_TMP
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 APLZL FROM AFVC INTO @DATA(ld_aplzl_tmp). | ||||
| "SELECT single AUFNR FROM AUFK INTO @DATA(ld_aufnr_imp). | ||||
| DATA(ld_result_imp) | = ' '. | |||
| "SELECT single AUFPL FROM AFVC INTO @DATA(ld_aufpl_imp). | ||||
| "SELECT single APLFL FROM AFVC INTO @DATA(ld_aplfl_imp). | ||||
| "SELECT single SUMNR FROM AFVC INTO @DATA(ld_sumnr_imp). | ||||
| "SELECT single VSNMR FROM VSKOPF INTO @DATA(ld_vsnmr_key). | ||||
| DATA(ld_vsnmr_key) | = ' '. | |||
| "SELECT single AUFPL FROM AFVC INTO @DATA(ld_aufpl_key). | ||||
| "SELECT single APLZL FROM AFVC INTO @DATA(ld_aplzl_key). | ||||
Search for further information about these or an SAP related objects