SAP CNEV_05_POST Function Module for NOTRANSL: PS EV posting
CNEV_05_POST is a standard cnev 05 post 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: PS EV posting 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 cnev 05 post FM, simply by entering the name CNEV_05_POST into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNEV_05_DB_INTERFACE
Program Name: SAPLCNEV_05_DB_INTERFACE
Main Program: SAPLCNEV_05_DB_INTERFACE
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1

Function CNEV_05_POST 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 'CNEV_05_POST'"NOTRANSL: PS EV posting.
EXPORTING
* I_FLG_EVOP = 'X' "Indicator: 'X': Update EVOP
* I_FLG_EVPOC = 'X' "Indicator: 'X': Update EVPOC
TABLES
* IT_EVOPB = "EVOP entries to update (table)
* IT_EVPOCB = "EVPOC entries to update (table)
EXCEPTIONS
EVOP_INSERT = 1 EVOP_UPDATE = 2 EVOP_DELETE = 3 EVPOC_INSERT = 4 EVPOC_UPDATE = 5 EVPOC_DELETE = 6
IMPORTING Parameters details for CNEV_05_POST
I_FLG_EVOP - Indicator: 'X': Update EVOP
Data type: RCJ_MARKL-MARKDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_EVPOC - Indicator: 'X': Update EVPOC
Data type: RCJ_MARKL-MARKDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CNEV_05_POST
IT_EVOPB - EVOP entries to update (table)
Data type: CNEVT_T_EVOPBOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_EVPOCB - EVPOC entries to update (table)
Data type: CNEVT_T_EVPOCBOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EVOP_INSERT - Error when inserting EVOP
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EVOP_UPDATE - Error when updating EVOP
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EVOP_DELETE - Error when deleting EVOP
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EVPOC_INSERT - Error when inserting EVPOC
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EVPOC_UPDATE - Error when updating EVPOC
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EVPOC_DELETE - Error when deleting EVPOC
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CNEV_05_POST 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: | ||||
| lt_it_evopb | TYPE STANDARD TABLE OF CNEVT_T_EVOPB, " | |||
| lv_i_flg_evop | TYPE RCJ_MARKL-MARK, " 'X' | |||
| lv_evop_insert | TYPE RCJ_MARKL, " | |||
| lt_it_evpocb | TYPE STANDARD TABLE OF CNEVT_T_EVPOCB, " | |||
| lv_evop_update | TYPE CNEVT_T_EVPOCB, " | |||
| lv_i_flg_evpoc | TYPE RCJ_MARKL-MARK, " 'X' | |||
| lv_evop_delete | TYPE RCJ_MARKL, " | |||
| lv_evpoc_insert | TYPE RCJ_MARKL, " | |||
| lv_evpoc_update | TYPE RCJ_MARKL, " | |||
| lv_evpoc_delete | TYPE RCJ_MARKL. " |
|   CALL FUNCTION 'CNEV_05_POST' "NOTRANSL: PS EV posting |
| EXPORTING | ||
| I_FLG_EVOP | = lv_i_flg_evop | |
| I_FLG_EVPOC | = lv_i_flg_evpoc | |
| TABLES | ||
| IT_EVOPB | = lt_it_evopb | |
| IT_EVPOCB | = lt_it_evpocb | |
| EXCEPTIONS | ||
| EVOP_INSERT = 1 | ||
| EVOP_UPDATE = 2 | ||
| EVOP_DELETE = 3 | ||
| EVPOC_INSERT = 4 | ||
| EVPOC_UPDATE = 5 | ||
| EVPOC_DELETE = 6 | ||
| . " CNEV_05_POST | ||
ABAP code using 7.40 inline data declarations to call FM CNEV_05_POST
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 MARK FROM RCJ_MARKL INTO @DATA(ld_i_flg_evop). | ||||
| DATA(ld_i_flg_evop) | = 'X'. | |||
| "SELECT single MARK FROM RCJ_MARKL INTO @DATA(ld_i_flg_evpoc). | ||||
| DATA(ld_i_flg_evpoc) | = 'X'. | |||
Search for further information about these or an SAP related objects