SAP CV200_DB_TDWS_SELECT Function Module for NOTRANSL: DVS: TDWS/TDWST lesen
CV200_DB_TDWS_SELECT is a standard cv200 db tdws select 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: TDWS/TDWST lesen 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 cv200 db tdws select FM, simply by entering the name CV200_DB_TDWS_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CV200
Program Name: SAPLCV200
Main Program: SAPLCV200
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CV200_DB_TDWS_SELECT 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 'CV200_DB_TDWS_SELECT'"NOTRANSL: DVS: TDWS/TDWST lesen.
EXPORTING
* PF_USE_BUFFER = 'X' "Generic Type
* PF_READ_DESC = 'X' "Generic Type
PF_DOKAR = "Document Type
PF_DOKST = "Status (Internal)
* PF_LANG = SY-LANGU "Language
IMPORTING
PSX_TDWS = "Status Information
PFX_STABK = "Status Abbreviation
PFX_DESCRIPTION = "Status Description
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for CV200_DB_TDWS_SELECT
PF_USE_BUFFER - Generic Type
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PF_READ_DESC - Generic Type
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
PF_DOKAR - Document Type
Data type: DRAW-DOKAROptional: No
Call by Reference: No ( called with pass by value option)
PF_DOKST - Status (Internal)
Data type: DRAW-DOKSTOptional: No
Call by Reference: No ( called with pass by value option)
PF_LANG - Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CV200_DB_TDWS_SELECT
PSX_TDWS - Status Information
Data type: TDWSOptional: No
Call by Reference: No ( called with pass by value option)
PFX_STABK - Status Abbreviation
Data type: TDWST-STABKOptional: No
Call by Reference: No ( called with pass by value option)
PFX_DESCRIPTION - Status Description
Data type: TDWST-DOSTXOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CV200_DB_TDWS_SELECT 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_psx_tdws | TYPE TDWS, " | |||
| lv_not_found | TYPE TDWS, " | |||
| lv_pf_use_buffer | TYPE C, " 'X' | |||
| lv_pfx_stabk | TYPE TDWST-STABK, " | |||
| lv_pf_read_desc | TYPE C, " 'X' | |||
| lv_pf_dokar | TYPE DRAW-DOKAR, " | |||
| lv_pfx_description | TYPE TDWST-DOSTX, " | |||
| lv_pf_dokst | TYPE DRAW-DOKST, " | |||
| lv_pf_lang | TYPE SY-LANGU. " SY-LANGU |
|   CALL FUNCTION 'CV200_DB_TDWS_SELECT' "NOTRANSL: DVS: TDWS/TDWST lesen |
| EXPORTING | ||
| PF_USE_BUFFER | = lv_pf_use_buffer | |
| PF_READ_DESC | = lv_pf_read_desc | |
| PF_DOKAR | = lv_pf_dokar | |
| PF_DOKST | = lv_pf_dokst | |
| PF_LANG | = lv_pf_lang | |
| IMPORTING | ||
| PSX_TDWS | = lv_psx_tdws | |
| PFX_STABK | = lv_pfx_stabk | |
| PFX_DESCRIPTION | = lv_pfx_description | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " CV200_DB_TDWS_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM CV200_DB_TDWS_SELECT
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_pf_use_buffer) | = 'X'. | |||
| "SELECT single STABK FROM TDWST INTO @DATA(ld_pfx_stabk). | ||||
| DATA(ld_pf_read_desc) | = 'X'. | |||
| "SELECT single DOKAR FROM DRAW INTO @DATA(ld_pf_dokar). | ||||
| "SELECT single DOSTX FROM TDWST INTO @DATA(ld_pfx_description). | ||||
| "SELECT single DOKST FROM DRAW INTO @DATA(ld_pf_dokst). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_pf_lang). | ||||
| DATA(ld_pf_lang) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects