SAP CVAPI_DOC_GETSTATUS Function Module for NOTRANSL: DVS: Statusinformation für ein Dokument
CVAPI_DOC_GETSTATUS is a standard cvapi doc getstatus 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: Statusinformation für ein Dokument 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 getstatus FM, simply by entering the name CVAPI_DOC_GETSTATUS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CVAPI01
Program Name: SAPLCVAPI01
Main Program: SAPLCVAPI01
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CVAPI_DOC_GETSTATUS 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_GETSTATUS'"NOTRANSL: DVS: Statusinformation für ein Dokument.
EXPORTING
PF_DOKAR = "Dokumentart
PF_DOKNR = "Dokumentnummer
PF_DOKVR = "Dokumentversion
PF_DOKTL = "Teilldokument
IMPORTING
PFX_RELEASED = "Dokument ist freigegeben
PFX_NO_MODIFY = "Dokument ist nicht änderbar
PFX_DELETED = "Löschvormerkung
PFX_FIXED = "Dokument fixiert
PFX_DOKST = "Dokumentstatus
PFX_STABK = "Status eines Dokuments (sprachabh.)
PFX_DOSTX = "Dokumentstatus Beschreibung
EXCEPTIONS
NOT_FOUND = 1 NO_AUTH = 2 ERROR = 3
IMPORTING Parameters details for CVAPI_DOC_GETSTATUS
PF_DOKAR - Dokumentart
Data type: DRAW-DOKAROptional: No
Call by Reference: No ( called with pass by value option)
PF_DOKNR - Dokumentnummer
Data type: DRAW-DOKNROptional: No
Call by Reference: No ( called with pass by value option)
PF_DOKVR - Dokumentversion
Data type: DRAW-DOKVROptional: No
Call by Reference: No ( called with pass by value option)
PF_DOKTL - Teilldokument
Data type: DRAW-DOKTLOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CVAPI_DOC_GETSTATUS
PFX_RELEASED - Dokument ist freigegeben
Data type: MCDOK-ACTIONOptional: No
Call by Reference: No ( called with pass by value option)
PFX_NO_MODIFY - Dokument ist nicht änderbar
Data type: MCDOK-ACTIONOptional: No
Call by Reference: No ( called with pass by value option)
PFX_DELETED - Löschvormerkung
Data type: DRAW-LOEDKOptional: No
Call by Reference: No ( called with pass by value option)
PFX_FIXED - Dokument fixiert
Data type: DRAW-CM_FIXEDOptional: No
Call by Reference: No ( called with pass by value option)
PFX_DOKST - Dokumentstatus
Data type: TDWS-DOKSTOptional: No
Call by Reference: No ( called with pass by value option)
PFX_STABK - Status eines Dokuments (sprachabh.)
Data type: TDWST-STABKOptional: No
Call by Reference: No ( called with pass by value option)
PFX_DOSTX - Dokumentstatus Beschreibung
Data type: TDWST-DOSTXOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - Dokument nicht vorhanden
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTH - Keine Berechtigung
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR - Fehler
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CVAPI_DOC_GETSTATUS 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, " | |||
| lv_not_found | TYPE DRAW, " | |||
| lv_pfx_released | TYPE MCDOK-ACTION, " | |||
| lv_no_auth | TYPE MCDOK, " | |||
| lv_pf_doknr | TYPE DRAW-DOKNR, " | |||
| lv_pfx_no_modify | TYPE MCDOK-ACTION, " | |||
| lv_error | TYPE MCDOK, " | |||
| lv_pf_dokvr | TYPE DRAW-DOKVR, " | |||
| lv_pfx_deleted | TYPE DRAW-LOEDK, " | |||
| lv_pf_doktl | TYPE DRAW-DOKTL, " | |||
| lv_pfx_fixed | TYPE DRAW-CM_FIXED, " | |||
| lv_pfx_dokst | TYPE TDWS-DOKST, " | |||
| lv_pfx_stabk | TYPE TDWST-STABK, " | |||
| lv_pfx_dostx | TYPE TDWST-DOSTX. " |
|   CALL FUNCTION 'CVAPI_DOC_GETSTATUS' "NOTRANSL: DVS: Statusinformation für ein Dokument |
| EXPORTING | ||
| PF_DOKAR | = lv_pf_dokar | |
| PF_DOKNR | = lv_pf_doknr | |
| PF_DOKVR | = lv_pf_dokvr | |
| PF_DOKTL | = lv_pf_doktl | |
| IMPORTING | ||
| PFX_RELEASED | = lv_pfx_released | |
| PFX_NO_MODIFY | = lv_pfx_no_modify | |
| PFX_DELETED | = lv_pfx_deleted | |
| PFX_FIXED | = lv_pfx_fixed | |
| PFX_DOKST | = lv_pfx_dokst | |
| PFX_STABK | = lv_pfx_stabk | |
| PFX_DOSTX | = lv_pfx_dostx | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| NO_AUTH = 2 | ||
| ERROR = 3 | ||
| . " CVAPI_DOC_GETSTATUS | ||
ABAP code using 7.40 inline data declarations to call FM CVAPI_DOC_GETSTATUS
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 ACTION FROM MCDOK INTO @DATA(ld_pfx_released). | ||||
| "SELECT single DOKNR FROM DRAW INTO @DATA(ld_pf_doknr). | ||||
| "SELECT single ACTION FROM MCDOK INTO @DATA(ld_pfx_no_modify). | ||||
| "SELECT single DOKVR FROM DRAW INTO @DATA(ld_pf_dokvr). | ||||
| "SELECT single LOEDK FROM DRAW INTO @DATA(ld_pfx_deleted). | ||||
| "SELECT single DOKTL FROM DRAW INTO @DATA(ld_pf_doktl). | ||||
| "SELECT single CM_FIXED FROM DRAW INTO @DATA(ld_pfx_fixed). | ||||
| "SELECT single DOKST FROM TDWS INTO @DATA(ld_pfx_dokst). | ||||
| "SELECT single STABK FROM TDWST INTO @DATA(ld_pfx_stabk). | ||||
| "SELECT single DOSTX FROM TDWST INTO @DATA(ld_pfx_dostx). | ||||
Search for further information about these or an SAP related objects