SAP CVPI_GET_FILES_DATA Function Module for NOTRANSL: DVS: (PlugIn) Originaldaten zu einem Dokument holen
CVPI_GET_FILES_DATA is a standard cvpi get files data 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: DVS: (PlugIn) Originaldaten zu einem Dokument holen 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 cvpi get files data FM, simply by entering the name CVPI_GET_FILES_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: CVPI
Program Name: SAPLCVPI
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CVPI_GET_FILES_DATA 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 'CVPI_GET_FILES_DATA'"NOTRANSL: DVS: (PlugIn) Originaldaten zu einem Dokument holen.
EXPORTING
PS_DRAW = "
* PF_HOSTNAME = "Host Name
* PF_FRONTENDTYPE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* PF_ACTIVE_ONLY = 'X' "
* PF_GETCOMPONENTS = '' "
IMPORTING
PSX_RETURN = "
TABLES
PTX_FILES = "
* PTX_COMPONENTS = "
IMPORTING Parameters details for CVPI_GET_FILES_DATA
PS_DRAW -
Data type: DRAWOptional: No
Call by Reference: Yes
PF_HOSTNAME - Host Name
Data type: TDWD-NTADROptional: Yes
Call by Reference: No ( called with pass by value option)
PF_FRONTENDTYPE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: TDWE-TYPDTOptional: Yes
Call by Reference: No ( called with pass by value option)
PF_ACTIVE_ONLY -
Data type: MCDOK-ACTIONDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PF_GETCOMPONENTS -
Data type: MCDOK-ACTIONDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CVPI_GET_FILES_DATA
PSX_RETURN -
Data type: BAPIRET2Optional: No
Call by Reference: Yes
TABLES Parameters details for CVPI_GET_FILES_DATA
PTX_FILES -
Data type: API_DOC_FILES2_PIOptional: No
Call by Reference: No ( called with pass by value option)
PTX_COMPONENTS -
Data type: API_DOC_COMP_PIOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CVPI_GET_FILES_DATA 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_ps_draw | TYPE DRAW, " | |||
| lt_ptx_files | TYPE STANDARD TABLE OF API_DOC_FILES2_PI, " | |||
| lv_psx_return | TYPE BAPIRET2, " | |||
| lv_pf_hostname | TYPE TDWD-NTADR, " | |||
| lt_ptx_components | TYPE STANDARD TABLE OF API_DOC_COMP_PI, " | |||
| lv_pf_frontendtype | TYPE TDWE-TYPDT, " | |||
| lv_pf_active_only | TYPE MCDOK-ACTION, " 'X' | |||
| lv_pf_getcomponents | TYPE MCDOK-ACTION. " '' |
|   CALL FUNCTION 'CVPI_GET_FILES_DATA' "NOTRANSL: DVS: (PlugIn) Originaldaten zu einem Dokument holen |
| EXPORTING | ||
| PS_DRAW | = lv_ps_draw | |
| PF_HOSTNAME | = lv_pf_hostname | |
| PF_FRONTENDTYPE | = lv_pf_frontendtype | |
| PF_ACTIVE_ONLY | = lv_pf_active_only | |
| PF_GETCOMPONENTS | = lv_pf_getcomponents | |
| IMPORTING | ||
| PSX_RETURN | = lv_psx_return | |
| TABLES | ||
| PTX_FILES | = lt_ptx_files | |
| PTX_COMPONENTS | = lt_ptx_components | |
| . " CVPI_GET_FILES_DATA | ||
ABAP code using 7.40 inline data declarations to call FM CVPI_GET_FILES_DATA
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 NTADR FROM TDWD INTO @DATA(ld_pf_hostname). | ||||
| "SELECT single TYPDT FROM TDWE INTO @DATA(ld_pf_frontendtype). | ||||
| "SELECT single ACTION FROM MCDOK INTO @DATA(ld_pf_active_only). | ||||
| DATA(ld_pf_active_only) | = 'X'. | |||
| "SELECT single ACTION FROM MCDOK INTO @DATA(ld_pf_getcomponents). | ||||
| DATA(ld_pf_getcomponents) | = ''. | |||
Search for further information about these or an SAP related objects