SAP CV221_DATA_SET Function Module for NOTRANSL: Ergebnis an Funktionsgruppe übergeben
CV221_DATA_SET is a standard cv221 data set 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: Ergebnis an Funktionsgruppe übergeben 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 cv221 data set FM, simply by entering the name CV221_DATA_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: CV221
Program Name: SAPLCV221
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CV221_DATA_SET 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 'CV221_DATA_SET'"NOTRANSL: Ergebnis an Funktionsgruppe übergeben.
EXPORTING
* PF_TITLE = "Title
* PF_MAX_RESULT = 0 "Max. No. Of Data Records
* PF_MAX_TRANS = 10 "Predefined Type
* PF_LINKED_PAGES = 1 "Predefined Type
PT_DOC_KEY = "Table type for DMS_DOC_KEY
* PT_SEARCH_CRITERIA = "Display search conditions
* PF_LIST_TYPE = '1' "List Type
* PF_AUTH_CHECK = 'X' "Generic Type
EXCEPTIONS
NO_AUTH = 1 NO_DATA = 2
IMPORTING Parameters details for CV221_DATA_SET
PF_TITLE - Title
Data type: COptional: Yes
Call by Reference: Yes
PF_MAX_RESULT - Max. No. Of Data Records
Data type: IOptional: Yes
Call by Reference: Yes
PF_MAX_TRANS - Predefined Type
Data type: IDefault: 10
Optional: Yes
Call by Reference: No ( called with pass by value option)
PF_LINKED_PAGES - Predefined Type
Data type: IDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
PT_DOC_KEY - Table type for DMS_DOC_KEY
Data type: DMS_TBL_DOC_KEYOptional: No
Call by Reference: Yes
PT_SEARCH_CRITERIA - Display search conditions
Data type: CVSE_T_SEARCH_CRITERIAOptional: Yes
Call by Reference: Yes
PF_LIST_TYPE - List Type
Data type: CDefault: '1'
Optional: Yes
Call by Reference: Yes
PF_AUTH_CHECK - Generic Type
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_AUTH - No Authorization
Data type:Optional: No
Call by Reference: Yes
NO_DATA - No data found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CV221_DATA_SET 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_no_auth | TYPE STRING, " | |||
| lv_pf_title | TYPE C, " | |||
| lv_no_data | TYPE C, " | |||
| lv_pf_max_result | TYPE I, " 0 | |||
| lv_pf_max_trans | TYPE I, " 10 | |||
| lv_pf_linked_pages | TYPE I, " 1 | |||
| lv_pt_doc_key | TYPE DMS_TBL_DOC_KEY, " | |||
| lv_pt_search_criteria | TYPE CVSE_T_SEARCH_CRITERIA, " | |||
| lv_pf_list_type | TYPE C, " '1' | |||
| lv_pf_auth_check | TYPE C. " 'X' |
|   CALL FUNCTION 'CV221_DATA_SET' "NOTRANSL: Ergebnis an Funktionsgruppe übergeben |
| EXPORTING | ||
| PF_TITLE | = lv_pf_title | |
| PF_MAX_RESULT | = lv_pf_max_result | |
| PF_MAX_TRANS | = lv_pf_max_trans | |
| PF_LINKED_PAGES | = lv_pf_linked_pages | |
| PT_DOC_KEY | = lv_pt_doc_key | |
| PT_SEARCH_CRITERIA | = lv_pt_search_criteria | |
| PF_LIST_TYPE | = lv_pf_list_type | |
| PF_AUTH_CHECK | = lv_pf_auth_check | |
| EXCEPTIONS | ||
| NO_AUTH = 1 | ||
| NO_DATA = 2 | ||
| . " CV221_DATA_SET | ||
ABAP code using 7.40 inline data declarations to call FM CV221_DATA_SET
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_max_trans) | = 10. | |||
| DATA(ld_pf_linked_pages) | = 1. | |||
| DATA(ld_pf_list_type) | = '1'. | |||
| DATA(ld_pf_auth_check) | = 'X'. | |||
Search for further information about these or an SAP related objects