SAP CARD_TABLE_SELECT_LINES Function Module for NOTRANSL: Variantentabellenzeilen mit bestimmter Merkmalausprägung selekti
CARD_TABLE_SELECT_LINES is a standard card table select lines 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: Variantentabellenzeilen mit bestimmter Merkmalausprägung selekti 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 card table select lines FM, simply by entering the name CARD_TABLE_SELECT_LINES into the relevant SAP transaction such as SE37 or SE38.
Function Group: CARD
Program Name: SAPLCARD
Main Program: SAPLCARD
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CARD_TABLE_SELECT_LINES 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 'CARD_TABLE_SELECT_LINES'"NOTRANSL: Variantentabellenzeilen mit bestimmter Merkmalausprägung selekti.
EXPORTING
VAR_TAB = "Name of variant table
* CHANGE_NO = "Change Number
* DATE = "Validity Date
* FL_WITH_ENTRIES = 'X' "
* WARNING_ON_NO_ENTRY = ' ' "
* NORMALIZE_TABLE = ' ' "
TABLES
SELECT_WHERE_VALUES = "
VAR_TAB_ENTRIES = "Table Content
EXCEPTIONS
WARNING = 1 ERROR = 2
IMPORTING Parameters details for CARD_TABLE_SELECT_LINES
VAR_TAB - Name of variant table
Data type: TABLSTRUCT-VAR_TABOptional: No
Call by Reference: No ( called with pass by value option)
CHANGE_NO - Change Number
Data type: CCAPI-CHANGE_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
DATE - Validity Date
Data type: CLBASD-VAL_FROMOptional: Yes
Call by Reference: No ( called with pass by value option)
FL_WITH_ENTRIES -
Data type: CAPIFLAG-WTH_VTENTRDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WARNING_ON_NO_ENTRY -
Data type: FLAG_XDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NORMALIZE_TABLE -
Data type: FLAG_XDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CARD_TABLE_SELECT_LINES
SELECT_WHERE_VALUES -
Data type: CHA_VALOptional: No
Call by Reference: No ( called with pass by value option)
VAR_TAB_ENTRIES - Table Content
Data type: VTENTROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WARNING - Log contains warning message
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR - Processing Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CARD_TABLE_SELECT_LINES 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_var_tab | TYPE TABLSTRUCT-VAR_TAB, " | |||
| lv_warning | TYPE TABLSTRUCT, " | |||
| lt_select_where_values | TYPE STANDARD TABLE OF CHA_VAL, " | |||
| lv_error | TYPE CHA_VAL, " | |||
| lv_change_no | TYPE CCAPI-CHANGE_NO, " | |||
| lt_var_tab_entries | TYPE STANDARD TABLE OF VTENTR, " | |||
| lv_date | TYPE CLBASD-VAL_FROM, " | |||
| lv_fl_with_entries | TYPE CAPIFLAG-WTH_VTENTR, " 'X' | |||
| lv_warning_on_no_entry | TYPE FLAG_X, " SPACE | |||
| lv_normalize_table | TYPE FLAG_X. " SPACE |
|   CALL FUNCTION 'CARD_TABLE_SELECT_LINES' "NOTRANSL: Variantentabellenzeilen mit bestimmter Merkmalausprägung selekti |
| EXPORTING | ||
| VAR_TAB | = lv_var_tab | |
| CHANGE_NO | = lv_change_no | |
| DATE | = lv_date | |
| FL_WITH_ENTRIES | = lv_fl_with_entries | |
| WARNING_ON_NO_ENTRY | = lv_warning_on_no_entry | |
| NORMALIZE_TABLE | = lv_normalize_table | |
| TABLES | ||
| SELECT_WHERE_VALUES | = lt_select_where_values | |
| VAR_TAB_ENTRIES | = lt_var_tab_entries | |
| EXCEPTIONS | ||
| WARNING = 1 | ||
| ERROR = 2 | ||
| . " CARD_TABLE_SELECT_LINES | ||
ABAP code using 7.40 inline data declarations to call FM CARD_TABLE_SELECT_LINES
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 VAR_TAB FROM TABLSTRUCT INTO @DATA(ld_var_tab). | ||||
| "SELECT single CHANGE_NO FROM CCAPI INTO @DATA(ld_change_no). | ||||
| "SELECT single VAL_FROM FROM CLBASD INTO @DATA(ld_date). | ||||
| "SELECT single WTH_VTENTR FROM CAPIFLAG INTO @DATA(ld_fl_with_entries). | ||||
| DATA(ld_fl_with_entries) | = 'X'. | |||
| DATA(ld_warning_on_no_entry) | = ' '. | |||
| DATA(ld_normalize_table) | = ' '. | |||
Search for further information about these or an SAP related objects