SAP CVE9_RDO_DOKX_DOCFILE_CREATE Function Module for EHS: Create and store final report for DOKX export
CVE9_RDO_DOKX_DOCFILE_CREATE is a standard cve9 rdo dokx docfile create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EHS: Create and store final report for DOKX export 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 cve9 rdo dokx docfile create FM, simply by entering the name CVE9_RDO_DOKX_DOCFILE_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CVE9
Program Name: SAPLCVE9
Main Program: SAPLCVE9
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CVE9_RDO_DOKX_DOCFILE_CREATE 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 'CVE9_RDO_DOKX_DOCFILE_CREATE'"EHS: Create and store final report for DOKX export.
EXPORTING
I_DOCX_EXPORT_PATH = "
I_EXPORT_FILENAME = "
I_RDO_HEADER = "
I_DOCFORMAT = "
TABLES
I_REPORT_TAB = "
EXCEPTIONS
FILE_OPEN_ERROR = 1 UNKNOWN_ERROR = 2 NO_PERMISSION = 3 AP_FILE_EXISTS = 4 FILE_CLOSE_ERROR = 5 FILE_WRITE_ERROR = 6
IMPORTING Parameters details for CVE9_RDO_DOKX_DOCFILE_CREATE
I_DOCX_EXPORT_PATH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_EXPORT_FILENAME -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_RDO_HEADER -
Data type: CVDDS_APIDH_WA_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_DOCFORMAT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CVE9_RDO_DOKX_DOCFILE_CREATE
I_REPORT_TAB -
Data type: RCGREPFILEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FILE_OPEN_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PERMISSION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AP_FILE_EXISTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FILE_CLOSE_ERROR -
Data type:Optional: No
Call by Reference: Yes
FILE_WRITE_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CVE9_RDO_DOKX_DOCFILE_CREATE 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_i_report_tab | TYPE STANDARD TABLE OF RCGREPFILE, " | |||
lv_file_open_error | TYPE RCGREPFILE, " | |||
lv_i_docx_export_path | TYPE RCGREPFILE, " | |||
lv_unknown_error | TYPE RCGREPFILE, " | |||
lv_i_export_filename | TYPE RCGREPFILE, " | |||
lv_i_rdo_header | TYPE CVDDS_APIDH_WA_TYPE, " | |||
lv_no_permission | TYPE CVDDS_APIDH_WA_TYPE, " | |||
lv_i_docformat | TYPE CVDDS_APIDH_WA_TYPE, " | |||
lv_ap_file_exists | TYPE CVDDS_APIDH_WA_TYPE, " | |||
lv_file_close_error | TYPE CVDDS_APIDH_WA_TYPE, " | |||
lv_file_write_error | TYPE CVDDS_APIDH_WA_TYPE. " |
  CALL FUNCTION 'CVE9_RDO_DOKX_DOCFILE_CREATE' "EHS: Create and store final report for DOKX export |
EXPORTING | ||
I_DOCX_EXPORT_PATH | = lv_i_docx_export_path | |
I_EXPORT_FILENAME | = lv_i_export_filename | |
I_RDO_HEADER | = lv_i_rdo_header | |
I_DOCFORMAT | = lv_i_docformat | |
TABLES | ||
I_REPORT_TAB | = lt_i_report_tab | |
EXCEPTIONS | ||
FILE_OPEN_ERROR = 1 | ||
UNKNOWN_ERROR = 2 | ||
NO_PERMISSION = 3 | ||
AP_FILE_EXISTS = 4 | ||
FILE_CLOSE_ERROR = 5 | ||
FILE_WRITE_ERROR = 6 | ||
. " CVE9_RDO_DOKX_DOCFILE_CREATE |
ABAP code using 7.40 inline data declarations to call FM CVE9_RDO_DOKX_DOCFILE_CREATE
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.Search for further information about these or an SAP related objects