SAP CVV1_PLOT_DOCUMENTS Function Module for NOTRANSL: DDS: Plotten von Dokumenten
CVV1_PLOT_DOCUMENTS is a standard cvv1 plot documents 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: DDS: Plotten von Dokumenten 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 cvv1 plot documents FM, simply by entering the name CVV1_PLOT_DOCUMENTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CVV1
Program Name: SAPLCVV1
Main Program: SAPLCVV1
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CVV1_PLOT_DOCUMENTS 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 'CVV1_PLOT_DOCUMENTS'"NOTRANSL: DDS: Plotten von Dokumenten.
EXPORTING
* I_CLASS = "Class
* I_CLASSTYPE = '170' "Class Type
I_PRINTER = "
* I_STATUS = 'SY' "
* I_COM_TYPE = "Distribution Type
* I_BATCH_PROCESSING = 'X' "
* I_DRZOI = "
IMPORTING
E_DDI_ID = "Initial order ID
TABLES
* DOCUMENTS = "
* CHARACTERISTICS = "Characteristic Values
EXCEPTIONS
PRINTER_DOES_NOT_EXIST = 1 CLASSIFICATION_UPDATE_ERROR = 2 PARAMETER_ERROR = 3 ERROR = 4
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCVV1_001 DDS: User-Exit - Save recipient list
EXIT_SAPLCVV1_002 DDS: User-Exit - Modify initial values for screen 100
EXIT_SAPLCVV1_003 DDS: User-Exit - Determine original
EXIT_SAPLCVV1_004 DDS: User-Exit - Determine document part and version of a document
EXIT_SAPLCVV1_005 DDS: User-Exit - Determine workstation application
IMPORTING Parameters details for CVV1_PLOT_DOCUMENTS
I_CLASS - Class
Data type: KLAH-CLASSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CLASSTYPE - Class Type
Data type: KLAH-KLARTDefault: '170'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PRINTER -
Data type: TDIPR-PRINTEROptional: No
Call by Reference: No ( called with pass by value option)
I_STATUS -
Data type: DRZOC-STATUSDefault: 'SY'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_COM_TYPE - Distribution Type
Data type: DRZOC-COM_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BATCH_PROCESSING -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DRZOI -
Data type: DRZOIOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CVV1_PLOT_DOCUMENTS
E_DDI_ID - Initial order ID
Data type: DRZOI-DDI_IDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CVV1_PLOT_DOCUMENTS
DOCUMENTS -
Data type: CVIOBJDATAOptional: Yes
Call by Reference: No ( called with pass by value option)
CHARACTERISTICS - Characteristic Values
Data type: CLS_CHARACOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PRINTER_DOES_NOT_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CLASSIFICATION_UPDATE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_ERROR - Incorrect Parameter
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CVV1_PLOT_DOCUMENTS 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_class | TYPE KLAH-CLASS, " | |||
| lv_e_ddi_id | TYPE DRZOI-DDI_ID, " | |||
| lt_documents | TYPE STANDARD TABLE OF CVIOBJDATA, " | |||
| lv_printer_does_not_exist | TYPE CVIOBJDATA, " | |||
| lv_i_classtype | TYPE KLAH-KLART, " '170' | |||
| lt_characteristics | TYPE STANDARD TABLE OF CLS_CHARAC, " | |||
| lv_classification_update_error | TYPE CLS_CHARAC, " | |||
| lv_i_printer | TYPE TDIPR-PRINTER, " | |||
| lv_parameter_error | TYPE TDIPR, " | |||
| lv_error | TYPE TDIPR, " | |||
| lv_i_status | TYPE DRZOC-STATUS, " 'SY' | |||
| lv_i_com_type | TYPE DRZOC-COM_TYPE, " | |||
| lv_i_batch_processing | TYPE DRZOC, " 'X' | |||
| lv_i_drzoi | TYPE DRZOI. " |
|   CALL FUNCTION 'CVV1_PLOT_DOCUMENTS' "NOTRANSL: DDS: Plotten von Dokumenten |
| EXPORTING | ||
| I_CLASS | = lv_i_class | |
| I_CLASSTYPE | = lv_i_classtype | |
| I_PRINTER | = lv_i_printer | |
| I_STATUS | = lv_i_status | |
| I_COM_TYPE | = lv_i_com_type | |
| I_BATCH_PROCESSING | = lv_i_batch_processing | |
| I_DRZOI | = lv_i_drzoi | |
| IMPORTING | ||
| E_DDI_ID | = lv_e_ddi_id | |
| TABLES | ||
| DOCUMENTS | = lt_documents | |
| CHARACTERISTICS | = lt_characteristics | |
| EXCEPTIONS | ||
| PRINTER_DOES_NOT_EXIST = 1 | ||
| CLASSIFICATION_UPDATE_ERROR = 2 | ||
| PARAMETER_ERROR = 3 | ||
| ERROR = 4 | ||
| . " CVV1_PLOT_DOCUMENTS | ||
ABAP code using 7.40 inline data declarations to call FM CVV1_PLOT_DOCUMENTS
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 CLASS FROM KLAH INTO @DATA(ld_i_class). | ||||
| "SELECT single DDI_ID FROM DRZOI INTO @DATA(ld_e_ddi_id). | ||||
| "SELECT single KLART FROM KLAH INTO @DATA(ld_i_classtype). | ||||
| DATA(ld_i_classtype) | = '170'. | |||
| "SELECT single PRINTER FROM TDIPR INTO @DATA(ld_i_printer). | ||||
| "SELECT single STATUS FROM DRZOC INTO @DATA(ld_i_status). | ||||
| DATA(ld_i_status) | = 'SY'. | |||
| "SELECT single COM_TYPE FROM DRZOC INTO @DATA(ld_i_com_type). | ||||
| DATA(ld_i_batch_processing) | = 'X'. | |||
Search for further information about these or an SAP related objects