SAP CVAPI_DOC_CHECK_FUNCTION Function Module for NOTRANSL: DVS: Dokument zum Ändern auschecken









CVAPI_DOC_CHECK_FUNCTION is a standard cvapi doc check function 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: Dokument zum Ändern auschecken 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 cvapi doc check function FM, simply by entering the name CVAPI_DOC_CHECK_FUNCTION into the relevant SAP transaction such as SE37 or SE38.

Function Group: CVAPI01
Program Name: SAPLCVAPI01
Main Program: SAPLCVAPI01
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CVAPI_DOC_CHECK_FUNCTION 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 'CVAPI_DOC_CHECK_FUNCTION'"NOTRANSL: DVS: Dokument zum Ändern auschecken
EXPORTING
PF_DOKAR = "Dokumentart
PF_DOKNR = "Dokumentnummer
PF_DOKVR = "Dokumentversion
PF_DOKTL = "Teildokument
* PS_DOC_STATUS = "Statusdaten für API
* PF_CHECK_CREATE = ' ' "Prüfe, ob Dokument angelegt werden kann
* PF_CHECK_CHANGE = ' ' "Prüfe, ob Dokument geändert werden kann
* PF_CHECK_CHECKOUT = ' ' "Prüfe, ob Dokument ausgescheckt werden kann
* PF_SET_LOCK = ' ' "Sperre setzen

IMPORTING
PSX_MESSAGE = "Messages

TABLES
* PT_FILES = "Originale
.



IMPORTING Parameters details for CVAPI_DOC_CHECK_FUNCTION

PF_DOKAR - Dokumentart

Data type: DRAW-DOKAR
Optional: No
Call by Reference: No ( called with pass by value option)

PF_DOKNR - Dokumentnummer

Data type: DRAW-DOKNR
Optional: No
Call by Reference: No ( called with pass by value option)

PF_DOKVR - Dokumentversion

Data type: DRAW-DOKVR
Optional: No
Call by Reference: No ( called with pass by value option)

PF_DOKTL - Teildokument

Data type: DRAW-DOKTL
Optional: No
Call by Reference: No ( called with pass by value option)

PS_DOC_STATUS - Statusdaten für API

Data type: CVAPI_DOC_STATUS
Optional: Yes
Call by Reference: No ( called with pass by value option)

PF_CHECK_CREATE - Prüfe, ob Dokument angelegt werden kann

Data type: MCDOK-ACTION
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PF_CHECK_CHANGE - Prüfe, ob Dokument geändert werden kann

Data type: MCDOK-ACTION
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PF_CHECK_CHECKOUT - Prüfe, ob Dokument ausgescheckt werden kann

Data type: MCDOK-ACTION
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PF_SET_LOCK - Sperre setzen

Data type: MCDOK-ACTION
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CVAPI_DOC_CHECK_FUNCTION

PSX_MESSAGE - Messages

Data type: MESSAGES
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CVAPI_DOC_CHECK_FUNCTION

PT_FILES - Originale

Data type: CVAPI_DOC_FILE
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CVAPI_DOC_CHECK_FUNCTION 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_pf_dokar  TYPE DRAW-DOKAR, "   
lt_pt_files  TYPE STANDARD TABLE OF CVAPI_DOC_FILE, "   
lv_psx_message  TYPE MESSAGES, "   
lv_pf_doknr  TYPE DRAW-DOKNR, "   
lv_pf_dokvr  TYPE DRAW-DOKVR, "   
lv_pf_doktl  TYPE DRAW-DOKTL, "   
lv_ps_doc_status  TYPE CVAPI_DOC_STATUS, "   
lv_pf_check_create  TYPE MCDOK-ACTION, "   SPACE
lv_pf_check_change  TYPE MCDOK-ACTION, "   SPACE
lv_pf_check_checkout  TYPE MCDOK-ACTION, "   SPACE
lv_pf_set_lock  TYPE MCDOK-ACTION. "   SPACE

  CALL FUNCTION 'CVAPI_DOC_CHECK_FUNCTION'  "NOTRANSL: DVS: Dokument zum Ändern auschecken
    EXPORTING
         PF_DOKAR = lv_pf_dokar
         PF_DOKNR = lv_pf_doknr
         PF_DOKVR = lv_pf_dokvr
         PF_DOKTL = lv_pf_doktl
         PS_DOC_STATUS = lv_ps_doc_status
         PF_CHECK_CREATE = lv_pf_check_create
         PF_CHECK_CHANGE = lv_pf_check_change
         PF_CHECK_CHECKOUT = lv_pf_check_checkout
         PF_SET_LOCK = lv_pf_set_lock
    IMPORTING
         PSX_MESSAGE = lv_psx_message
    TABLES
         PT_FILES = lt_pt_files
. " CVAPI_DOC_CHECK_FUNCTION




ABAP code using 7.40 inline data declarations to call FM CVAPI_DOC_CHECK_FUNCTION

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 DOKAR FROM DRAW INTO @DATA(ld_pf_dokar).
 
 
 
"SELECT single DOKNR FROM DRAW INTO @DATA(ld_pf_doknr).
 
"SELECT single DOKVR FROM DRAW INTO @DATA(ld_pf_dokvr).
 
"SELECT single DOKTL FROM DRAW INTO @DATA(ld_pf_doktl).
 
 
"SELECT single ACTION FROM MCDOK INTO @DATA(ld_pf_check_create).
DATA(ld_pf_check_create) = ' '.
 
"SELECT single ACTION FROM MCDOK INTO @DATA(ld_pf_check_change).
DATA(ld_pf_check_change) = ' '.
 
"SELECT single ACTION FROM MCDOK INTO @DATA(ld_pf_check_checkout).
DATA(ld_pf_check_checkout) = ' '.
 
"SELECT single ACTION FROM MCDOK INTO @DATA(ld_pf_set_lock).
DATA(ld_pf_set_lock) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!