SAP CV_EDS_DOCUMENT_STRUCT_HEADER Function Module for Retrieve the Document Structure data
CV_EDS_DOCUMENT_STRUCT_HEADER is a standard cv eds document struct header SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Retrieve the Document Structure data 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 cv eds document struct header FM, simply by entering the name CV_EDS_DOCUMENT_STRUCT_HEADER into the relevant SAP transaction such as SE37 or SE38.
Function Group: CV_EDS
Program Name: SAPLCV_EDS
Main Program: SAPLCV_EDS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CV_EDS_DOCUMENT_STRUCT_HEADER 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 'CV_EDS_DOCUMENT_STRUCT_HEADER'"Retrieve the Document Structure data.
EXPORTING
IV_DOKNR = "Document number
IV_DOKAR = "Document Type
* IV_DOKTL = "Document part
* IV_DOKVR = "Document version
* IV_DATUV = SY-DATUM "Valid-From Date
TABLES
ET_DOK = "Table type for Document Structure Header
ET_RETURN = "Return parameter table
IMPORTING Parameters details for CV_EDS_DOCUMENT_STRUCT_HEADER
IV_DOKNR - Document number
Data type: DOKNROptional: No
Call by Reference: No ( called with pass by value option)
IV_DOKAR - Document Type
Data type: DOKAROptional: No
Call by Reference: No ( called with pass by value option)
IV_DOKTL - Document part
Data type: DOKTL_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DOKVR - Document version
Data type: DOKVROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DATUV - Valid-From Date
Data type: DATUVDefault: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CV_EDS_DOCUMENT_STRUCT_HEADER
ET_DOK - Table type for Document Structure Header
Data type: CVEDS_TT_DOK_HEADEROptional: No
Call by Reference: Yes
ET_RETURN - Return parameter table
Data type: BAPIRET2_TOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CV_EDS_DOCUMENT_STRUCT_HEADER 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_et_dok | TYPE STANDARD TABLE OF CVEDS_TT_DOK_HEADER, " | |||
| lv_iv_doknr | TYPE DOKNR, " | |||
| lv_iv_dokar | TYPE DOKAR, " | |||
| lt_et_return | TYPE STANDARD TABLE OF BAPIRET2_T, " | |||
| lv_iv_doktl | TYPE DOKTL_D, " | |||
| lv_iv_dokvr | TYPE DOKVR, " | |||
| lv_iv_datuv | TYPE DATUV. " SY-DATUM |
|   CALL FUNCTION 'CV_EDS_DOCUMENT_STRUCT_HEADER' "Retrieve the Document Structure data |
| EXPORTING | ||
| IV_DOKNR | = lv_iv_doknr | |
| IV_DOKAR | = lv_iv_dokar | |
| IV_DOKTL | = lv_iv_doktl | |
| IV_DOKVR | = lv_iv_dokvr | |
| IV_DATUV | = lv_iv_datuv | |
| TABLES | ||
| ET_DOK | = lt_et_dok | |
| ET_RETURN | = lt_et_return | |
| . " CV_EDS_DOCUMENT_STRUCT_HEADER | ||
ABAP code using 7.40 inline data declarations to call FM CV_EDS_DOCUMENT_STRUCT_HEADER
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.| DATA(ld_iv_datuv) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects