SAP CVFF_EVENT_SET Function Module for NOTRANSL: EHS: Setzen eines Events im Eventpuffer des Berichtsversands
CVFF_EVENT_SET is a standard cvff event set 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: EHS: Setzen eines Events im Eventpuffer des Berichtsversands 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 cvff event set FM, simply by entering the name CVFF_EVENT_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: CVFF
Program Name: SAPLCVFF
Main Program: SAPLCVFF
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CVFF_EVENT_SET 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 'CVFF_EVENT_SET'"NOTRANSL: EHS: Setzen eines Events im Eventpuffer des Berichtsversands.
EXPORTING
I_STATUS = "Status
I_JOBID = "Processing Cycle ID Number
I_EVENTID = "Background Processing Event
* I_FLG_COMMIT = ESP1_FALSE "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
E_EVENTPARM = "Background Event Parameters (Such as, Jobname/Jobcount)
EXCEPTIONS
EVENT_SET_FAILED = 1 NO_EVENTKEY = 2
IMPORTING Parameters details for CVFF_EVENT_SET
I_STATUS - Status
Data type: CVDDH-STATUSOptional: No
Call by Reference: No ( called with pass by value option)
I_JOBID - Processing Cycle ID Number
Data type: CVDDH-JOBIDOptional: No
Call by Reference: No ( called with pass by value option)
I_EVENTID - Background Processing Event
Data type: CVCHE-EVENTIDOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_COMMIT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CVFF_EVENT_SET
E_EVENTPARM - Background Event Parameters (Such as, Jobname/Jobcount)
Data type: CVCHE-EVENTPARMOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EVENT_SET_FAILED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_EVENTKEY - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CVFF_EVENT_SET 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_status | TYPE CVDDH-STATUS, " | |||
lv_e_eventparm | TYPE CVCHE-EVENTPARM, " | |||
lv_event_set_failed | TYPE CVCHE, " | |||
lv_i_jobid | TYPE CVDDH-JOBID, " | |||
lv_no_eventkey | TYPE CVDDH, " | |||
lv_i_eventid | TYPE CVCHE-EVENTID, " | |||
lv_i_flg_commit | TYPE ESP1_BOOLEAN. " ESP1_FALSE |
  CALL FUNCTION 'CVFF_EVENT_SET' "NOTRANSL: EHS: Setzen eines Events im Eventpuffer des Berichtsversands |
EXPORTING | ||
I_STATUS | = lv_i_status | |
I_JOBID | = lv_i_jobid | |
I_EVENTID | = lv_i_eventid | |
I_FLG_COMMIT | = lv_i_flg_commit | |
IMPORTING | ||
E_EVENTPARM | = lv_e_eventparm | |
EXCEPTIONS | ||
EVENT_SET_FAILED = 1 | ||
NO_EVENTKEY = 2 | ||
. " CVFF_EVENT_SET |
ABAP code using 7.40 inline data declarations to call FM CVFF_EVENT_SET
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 STATUS FROM CVDDH INTO @DATA(ld_i_status). | ||||
"SELECT single EVENTPARM FROM CVCHE INTO @DATA(ld_e_eventparm). | ||||
"SELECT single JOBID FROM CVDDH INTO @DATA(ld_i_jobid). | ||||
"SELECT single EVENTID FROM CVCHE INTO @DATA(ld_i_eventid). | ||||
DATA(ld_i_flg_commit) | = ESP1_FALSE. | |||
Search for further information about these or an SAP related objects