SAP CUTS_TABLE_SELECT Function Module for NOTRANSL: Zugriff Variantentabelle
CUTS_TABLE_SELECT is a standard cuts table 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: Zugriff Variantentabelle 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 cuts table select FM, simply by entering the name CUTS_TABLE_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CUTS
Program Name: SAPLCUTS
Main Program: SAPLCUTS
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CUTS_TABLE_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 'CUTS_TABLE_SELECT'"NOTRANSL: Zugriff Variantentabelle.
EXPORTING
TABLE = "Internal number of variant table
DATE = "ABAP System Field: Current Date of Application Server
IMPORTING
ENTRIES_FOUND = "ABAP System Field: Obsolete
TABLES
QUERY = "Input Interface for Multiline Table Access
MATCH = "Output Interface for Accessing Tables
EXCEPTIONS
NOT_FOUND = 1 NO_CHARACTERISTICS = 2 NO_QUERY = 3 NO_ENTRY_FOUND = 4 INTERNAL_ERROR = 5
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCUTS_800
IMPORTING Parameters details for CUTS_TABLE_SELECT
TABLE - Internal number of variant table
Data type: CUVTAB-VTINTOptional: No
Call by Reference: No ( called with pass by value option)
DATE - ABAP System Field: Current Date of Application Server
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CUTS_TABLE_SELECT
ENTRIES_FOUND - ABAP System Field: Obsolete
Data type: SY-TMAXLOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CUTS_TABLE_SELECT
QUERY - Input Interface for Multiline Table Access
Data type: CUSL_05Optional: No
Call by Reference: No ( called with pass by value option)
MATCH - Output Interface for Accessing Tables
Data type: CUSL_06Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CHARACTERISTICS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_QUERY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ENTRY_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CUTS_TABLE_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: | ||||
| lt_query | TYPE STANDARD TABLE OF CUSL_05, " | |||
| lv_table | TYPE CUVTAB-VTINT, " | |||
| lv_not_found | TYPE CUVTAB, " | |||
| lv_entries_found | TYPE SY-TMAXL, " | |||
| lv_date | TYPE SY-DATUM, " | |||
| lt_match | TYPE STANDARD TABLE OF CUSL_06, " | |||
| lv_no_characteristics | TYPE CUSL_06, " | |||
| lv_no_query | TYPE CUSL_06, " | |||
| lv_no_entry_found | TYPE CUSL_06, " | |||
| lv_internal_error | TYPE CUSL_06. " |
|   CALL FUNCTION 'CUTS_TABLE_SELECT' "NOTRANSL: Zugriff Variantentabelle |
| EXPORTING | ||
| TABLE | = lv_table | |
| DATE | = lv_date | |
| IMPORTING | ||
| ENTRIES_FOUND | = lv_entries_found | |
| TABLES | ||
| QUERY | = lt_query | |
| MATCH | = lt_match | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| NO_CHARACTERISTICS = 2 | ||
| NO_QUERY = 3 | ||
| NO_ENTRY_FOUND = 4 | ||
| INTERNAL_ERROR = 5 | ||
| . " CUTS_TABLE_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM CUTS_TABLE_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.| "SELECT single VTINT FROM CUVTAB INTO @DATA(ld_table). | ||||
| "SELECT single TMAXL FROM SY INTO @DATA(ld_entries_found). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_date). | ||||
Search for further information about these or an SAP related objects