SAP CNEV_02_READ_PROGRESS_OF_PER Function Module for NOTRANSL: Read POC of periods
CNEV_02_READ_PROGRESS_OF_PER is a standard cnev 02 read progress of per 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: Read POC of periods 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 02 read progress of per FM, simply by entering the name CNEV_02_READ_PROGRESS_OF_PER into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNEV_02_GENERAL_DATA
Program Name: SAPLCNEV_02_GENERAL_DATA
Main Program: SAPLCNEV_02_GENERAL_DATA
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CNEV_02_READ_PROGRESS_OF_PER 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_02_READ_PROGRESS_OF_PER'"NOTRANSL: Read POC of periods.
EXPORTING
* I_VSNMR = ' ' "
* I_PERIV = ' ' "
* I_SUMKZ = ' ' "
I_KOKRS = "
I_VERSN_EV = "Project version
* I_EVPAI = '2' "
TABLES
T_EVOFL = "
T_EVPVL = "
EXCEPTIONS
NO_STAGR_FOUND = 1
IMPORTING Parameters details for CNEV_02_READ_PROGRESS_OF_PER
I_VSNMR -
Data type: EVFGB-VSNMRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PERIV -
Data type: T009B-PERIVDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SUMKZ -
Data type: EVFG-SUMKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KOKRS -
Data type: EVVS-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_VERSN_EV - Project version
Data type: EVVS-VERSN_EVOptional: No
Call by Reference: No ( called with pass by value option)
I_EVPAI -
Data type: EVOP-EVPAIDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CNEV_02_READ_PROGRESS_OF_PER
T_EVOFL -
Data type: EVOFLOptional: No
Call by Reference: No ( called with pass by value option)
T_EVPVL -
Data type: EVPVLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_STAGR_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CNEV_02_READ_PROGRESS_OF_PER 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_i_vsnmr | TYPE EVFGB-VSNMR, " SPACE | |||
lt_t_evofl | TYPE STANDARD TABLE OF EVOFL, " | |||
lv_no_stagr_found | TYPE EVOFL, " | |||
lv_i_periv | TYPE T009B-PERIV, " SPACE | |||
lt_t_evpvl | TYPE STANDARD TABLE OF EVPVL, " | |||
lv_i_sumkz | TYPE EVFG-SUMKZ, " SPACE | |||
lv_i_kokrs | TYPE EVVS-KOKRS, " | |||
lv_i_versn_ev | TYPE EVVS-VERSN_EV, " | |||
lv_i_evpai | TYPE EVOP-EVPAI. " '2' |
  CALL FUNCTION 'CNEV_02_READ_PROGRESS_OF_PER' "NOTRANSL: Read POC of periods |
EXPORTING | ||
I_VSNMR | = lv_i_vsnmr | |
I_PERIV | = lv_i_periv | |
I_SUMKZ | = lv_i_sumkz | |
I_KOKRS | = lv_i_kokrs | |
I_VERSN_EV | = lv_i_versn_ev | |
I_EVPAI | = lv_i_evpai | |
TABLES | ||
T_EVOFL | = lt_t_evofl | |
T_EVPVL | = lt_t_evpvl | |
EXCEPTIONS | ||
NO_STAGR_FOUND = 1 | ||
. " CNEV_02_READ_PROGRESS_OF_PER |
ABAP code using 7.40 inline data declarations to call FM CNEV_02_READ_PROGRESS_OF_PER
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 VSNMR FROM EVFGB INTO @DATA(ld_i_vsnmr). | ||||
DATA(ld_i_vsnmr) | = ' '. | |||
"SELECT single PERIV FROM T009B INTO @DATA(ld_i_periv). | ||||
DATA(ld_i_periv) | = ' '. | |||
"SELECT single SUMKZ FROM EVFG INTO @DATA(ld_i_sumkz). | ||||
DATA(ld_i_sumkz) | = ' '. | |||
"SELECT single KOKRS FROM EVVS INTO @DATA(ld_i_kokrs). | ||||
"SELECT single VERSN_EV FROM EVVS INTO @DATA(ld_i_versn_ev). | ||||
"SELECT single EVPAI FROM EVOP INTO @DATA(ld_i_evpai). | ||||
DATA(ld_i_evpai) | = '2'. | |||
Search for further information about these or an SAP related objects