SAP ABAP Class CL_COND_TAB_SEL (Methods for Selection from Condition Tables)
Hierarchy
☛
SAP_APPL (Software Component) Logistics and Accounting
⤷
SD-MD-CM (Application Component) Conditions
⤷
COND_SRV (Package) Service Tools for Condition Technique
⤷
⤷
Properties
| Class | CL_COND_TAB_SEL | |
| Short Description | Methods for Selection from Condition Tables | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | P | SAP Standard Production Program |
| Category | 0 | |
| Package | COND_SRV | Service Tools for Condition Technique |
| Created | 20060120 | SAP |
| Last change | 20100310 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
Class CL_COND_TAB_SEL has no interface implemented.
Friends
Class CL_COND_TAB_SEL has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_COND_USAGE_TOOLS | Utility for Condition Usage | 20060208 | |||
| 2 | Constant | Private | Type reference (TYPE) | COND_SELFIELD-GROUPFLAG | 'X' | Group Field for Condition Fields | 20061208 | ||
| 3 | Constant | Private | Type reference (TYPE) | COND_SELFIELD-IS_MANDATORY | 'X' | Required field flag | 20061208 | ||
| 4 | Constant | Private | Type reference (TYPE) | COND_SELFIELD-GROUPFLAG | ' ' | Group Field for Condition Fields | 20061208 | ||
| 5 | Constant | Private | Type reference (TYPE) | COND_SELFIELD-IS_MANDATORY | ' ' | Required field flag | 20061208 | ||
| 6 | Constant | Private | Type reference (TYPE) | COND_SELFIELD-SIGN | 'E' | Include/Exclude Criterion | 20061208 | ||
| 7 | Constant | Private | Type reference (TYPE) | COND_SELFIELD-SIGN | 'I' | Include/Exclude Criterion | 20061208 | ||
| 8 | Constant | Private | Type reference (TYPE) | TY_DATE_SEL_MODE | 'E' | Selection Using Key Date (Valid On) | 20060502 | ||
| 9 | Constant | Private | Type reference (TYPE) | TY_DATE_SEL_MODE | 'I' | Selection Using Time Interval (Valid From/Valid To) | 20060502 | ||
| 10 | Constant | Private | Type reference (TYPE) | TY_DATE_SEL_MODE | ' ' | Do Not Use Validity Date for Selection | 20060502 | ||
| 11 | Constant | Private | Type reference (TYPE) | TY_DATE_SEL_MODE | 'S' | Selection Using Time Interval (Strict) | 20060503 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Merge Fields of Condition Tables in a Field List | 20060123 | |
| 2 | Static method | Public | Method | Authorization Check (Restriction on Cond. Records if Nec.) | 20070413 | |
| 3 | Static method | Public | Method | Determine (Variable) Data Fields of Condition Tables | 20060207 | |
| 4 | Static method | Public | Method | Determine (Variable) Key Fields of Condition Tables | 20060120 | |
| 5 | Static method | Private | Method | Gets Possible Condition Tables Using Access Customizing | 20060606 | |
| 6 | Static method | Public | Method | Determines Condition Table for List of Selection Fields | 20060120 | |
| 7 | Static method | Public | Method | Determine Usage of Tables | 20060120 | |
| 8 | Static method | Private | Method | Instantiates the Usage Tool | 20060222 | |
| 9 | Static method | Public | Method | Generates Where Conditions for Selection Options | 20060120 | |
| 10 | Static method | Public | Method | Selection of Condition Records (with Selection Options) | 20060120 | |
| 11 | Static method | Public | Method | Selection of Condition Records (with Where Conditions) | 20060120 | |
| 12 | Static method | Public | Method | Read Data Component (Usage-Specific) | 20060413 | |
| 13 | Static method | Private | Method | cSelection from Condition Table | 20060120 |
Events
Class CL_COND_TAB_SEL has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | COND_RNGS_T | Public | See coding | Table of Ranges for Condition Key Fields | 20060120 | cond_rngs_t TYPE SORTED TABLE OF cond_rngs
WITH NON-UNIQUE KEY kotabnr
|
|
| 2 | COND_TABFIELDS | Public | See coding | Structure for Fields of Condition Table | 20060223 | BEGIN OF cond_tabfields,
kvewe TYPE kvewe,
kotabnr TYPE kotabnr,
tabfields TYPE cond_field_t, "Table
END OF cond_tabfields
|
|
| 3 | COND_TABFIELDS_T | Public | See coding | Table of Fields for Condition Tables | 20060223 | cond_tabfields_t TYPE SORTED TABLE OF cond_tabfields
WITH UNIQUE KEY kvewe kotabnr
|
|
| 4 | COND_TABLE_USE | Public | See coding | Usage Information for Condition Tables | 20060120 | BEGIN OF cond_table_use,
kvewe TYPE kvewe,
kotabnr TYPE kotabnr,
kappl TYPE kappl,
kozgf TYPE kozgf,
kschl TYPE kschl,
END OF cond_table_use
|
|
| 5 | COND_TABLE_USE_T | Public | See coding | Table of Usages of Condition Tables | 20060120 | cond_table_use_t TYPE STANDARD TABLE OF cond_table_use
WITH NON-UNIQUE DEFAULT KEY
|
|
| 6 | COND_TABS_T | Public | See coding | Table with Condition Tables | 20060120 | cond_tabs_t TYPE SORTED TABLE OF cond_tabs
WITH UNIQUE KEY kvewe kotabnr
|
|
| 7 | COND_WHERE | Public | See coding | Where Condition for a Condition Table | 20060120 | BEGIN OF cond_where,
kotabnr TYPE kotabnr,
where_clause TYPE stringval,
END OF cond_where
|
|
| 8 | COND_WHERE_T | Public | See coding | Table with Where-Conditions | 20060120 | cond_where_t TYPE SORTED TABLE OF cond_where
WITH UNIQUE KEY kotabnr
|
Method Signatures
Method AGGREGATE_TABLE_FIELDS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | COND_FIELDS | Call by reference | Type reference (TYPE) | COND_FIELD_T | Tabelle mit Konditionsfeldern | 20060123 | |||
| 2 | COND_TABLES_FIELDS | Call by reference | Type reference (TYPE) | COND_TABFIELDS_T | Tabelle mit Feldern zu Konditionstabellen | 20060123 |
Method AGGREGATE_TABLE_FIELDS on class CL_COND_TAB_SEL has no exception.
Method CHECK_AUTHORITY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ACTIVITY | Call by reference | Type reference (TYPE) | CHAR2 | '03' | Aktivität für Berechtigungsprüfung | 20070413 | ||
| 2 | CHECK_MESSAGES | Call by reference | Type reference (TYPE) | ENH_CHK_MESS_IT | Tabelle mit Fehlermeldungen von der Berechtigungsprüfung | 20070416 | |||
| 3 | CHECK_PASSED | Call by reference | Type reference (TYPE) | BOOLEAN | Berechtigungsprüfung erfolgreich? | 20070416 | |||
| 4 | COND_RECORDS | Call by reference | Type reference (TYPE) | CONDTAB_DATASOURCE_T | Tabellentyp für Datenquellen zu Konditionstabellen | 20070413 | |||
| 5 | COND_USAGE | Call by reference | Type reference (TYPE) | KVEWE | Verwendung der Konditionstabelle | 20070413 | |||
| 6 | RECORDS_REMOVED | Call by reference | Type reference (TYPE) | SYDBCNT | Anzahl entfernter Konditionssätze | 20070413 |
Method CHECK_AUTHORITY on class CL_COND_TAB_SEL has no exception.
Method GET_DAT_FIELDS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | COND_TABLES | Call by reference | Type reference (TYPE) | COND_TABS_T | Tabelle mit Konditionstabellen | 20060207 | |||
| 2 | COND_TABLES_FIELDS | Call by reference | Type reference (TYPE) | COND_TABFIELDS_T | Tabelle mit Feldern zu Konditionstabellen | 20060207 | |||
| 3 | DATPOS | Call by reference | Type reference (TYPE) | TABFDPOS | Position der variablen Datenfelder (laut Musterstruktur) | 20060921 | |||
| 4 | INCLUDE_FIXED | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | feste Datenfelder mit einbeziehen? | 20060912 |
Method GET_DAT_FIELDS on class CL_COND_TAB_SEL has no exception.
Method GET_KEY_FIELDS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | COND_TABLES | Call by reference | Type reference (TYPE) | COND_TABS_T | Tabelle mit Konditionstabellen | 20060120 | |||
| 2 | COND_TABLES_FIELDS | Call by reference | Type reference (TYPE) | COND_TABFIELDS_T | Tabelle mit Feldern zu Konditionstabellen | 20060120 | |||
| 3 | INCLUDE_FIXED | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | feste Schlüsselfelder mit einbeziehen? | 20060912 | ||
| 4 | KEYPOS | Call by reference | Type reference (TYPE) | TABFDPOS | Position der variablen Schlüsselfelder (laut Musterstruktur) | 20060921 |
Method GET_KEY_FIELDS on class CL_COND_TAB_SEL has no exception.
Method GET_POSSIBLE_TABLES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | APPLICATION | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-APPLICATION | Applikation | 20060606 | |||
| 2 | COND_TYPE | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-COND_TYPE | Konditionsart | 20060606 | |||
| 3 | COND_USAGE | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-COND_USAGE | Verwendung der Konditionstabelle | 20060606 | |||
| 4 | TABLE_KEYS | Call by reference | Type reference (TYPE) | TY_COND_TAB_KEYS | Schlüssel der möglichen Tabellen | 20060606 |
Method GET_POSSIBLE_TABLES on class CL_COND_TAB_SEL has no exception.
Method GET_TABLES_FOR_FIELDS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | APPLICATION | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-APPLICATION | Applikation | 20060120 | |||
| 2 | COND_TABLES | Call by reference | Type reference (TYPE) | COND_TABS_T | Tabelle mit Konditionstabellen | 20060120 | |||
| 3 | COND_TYPE | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-COND_TYPE | Konditionsart | 20060120 | |||
| 4 | COND_USAGE | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-COND_USAGE | Verwendung der Konditionstabelle | 20060120 | |||
| 5 | ONLY_WITH_VALID_DATE | Call by reference | Type reference (TYPE) | BOOLEAN | Nur Tabellen mit/ohne Gültigkeitszeitraum? | 20060120 | |||
| 6 | SELFIELDS | Call by reference | Type reference (TYPE) | COND_SELFIELD_T | Tabelle mit Selektionsfeldern | 20060124 | |||
| 7 | SPRAS | Call by reference | Type reference (TYPE) | SPRAS | Sprachenschlüssel | 20060120 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Eingangsparameter fehlerhaft | 20060208 |
Method GET_TABLE_USES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | COND_TABLES | Call by reference | Type reference (TYPE) | COND_TABS_T | Tabelle mit Konditionstabellen | 20060120 | |||
| 2 | COND_TABLE_USES | Call by reference | Type reference (TYPE) | CL_COND_TAB_SEL=>COND_TABLE_USE_T | Tabelle mit Verwendungen von Konditionstabellen | 20060120 |
Method GET_TABLE_USES on class CL_COND_TAB_SEL has no exception.
Method GET_USAGE_TOOL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | COND_USAGE | Call by reference | Type reference (TYPE) | KVEWE | Verwendung der Konditionstabelle | 20060222 | |||
| 2 | INSTANCE | Value transfer | Object reference (TYPE REF TO) | CL_COND_USAGE_TOOLS | Hilfsmittel für Felder der Verwendung | 20060222 |
Method GET_USAGE_TOOL on class CL_COND_TAB_SEL has no exception.
Method GET_WHERE_CLAUSES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | COND_USAGE | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-COND_USAGE | Verwendung der Konditionstabelle | 20060120 | |||
| 2 | SELECTIONS | Call by reference | Type reference (TYPE) | CL_COND_TAB_SEL=>COND_RNGS_T | Tabelle mit Ranges | 20060120 | |||
| 3 | WHERE_CLAUSES | Call by reference | Type reference (TYPE) | CL_COND_TAB_SEL=>COND_WHERE_T | Tabelle mit Where-Bedingungen | 20060120 |
Method GET_WHERE_CLAUSES on class CL_COND_TAB_SEL has no exception.
Method SELECT_FOR_SELOPT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | APPLICATION | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-APPLICATION | Applikation | 20060120 | |||
| 2 | COND_RECORDS | Call by reference | Type reference (TYPE) | CONDTAB_DATASOURCE_T | Tabellentyp für Datenquellen zu Konditionstabellen | 20060120 | |||
| 3 | COND_TYPE | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-COND_TYPE | Konditionsart | 20060120 | |||
| 4 | COND_USAGE | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-COND_USAGE | Verwendung der Konditionstabelle | 20060120 | |||
| 5 | NUMBER_OF_RECORDS | Call by reference | Type reference (TYPE) | SYDBCNT | Bearbeitete Datenbanktabellenzeilen | 20060203 | |||
| 6 | SELECTIONS | Call by reference | Type reference (TYPE) | COND_RNGS_T | Tabelle mit Ranges | 20060120 | |||
| 7 | USE_STRICT_DATE_SELECTION | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | strikte Datumsselektion benutzen? | 20060503 | ||
| 8 | VALID_FROM | Call by reference | Type reference (TYPE) | KODATAB | Gültigkeitsbeginn des Konditionssatzes | 20060120 | |||
| 9 | VALID_ON | Call by reference | Type reference (TYPE) | DATAM | Datum gültig am | 20060120 | |||
| 10 | VALID_TO | Call by reference | Type reference (TYPE) | KODATBI | Gültigkeitsende des Konditionssatzes | 20060120 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | keine Selektionskriterien übergeben | 20060120 | ||
| 2 | Fehler beim Lesen von der Datenbank | 20060120 | ||
| 3 | zu viele Select-Options (max. 10) | 20060120 |
Method SELECT_FOR_WHERE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | APPLICATION | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-APPLICATION | Applikation | 20060120 | |||
| 2 | COND_RECORDS | Call by reference | Type reference (TYPE) | CONDTAB_DATASOURCE_T | Tabellentyp für Datenquellen zu Konditionstabellen | 20060120 | |||
| 3 | COND_TYPE | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-COND_TYPE | Konditionsart | 20060120 | |||
| 4 | COND_USAGE | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-COND_USAGE | Verwendung der Konditionstabelle | 20060120 | |||
| 5 | NUMBER_OF_RECORDS | Call by reference | Type reference (TYPE) | SYDBCNT | Bearbeitete Datenbanktabellenzeilen | 20060203 | |||
| 6 | USE_STRICT_DATE_SELECTION | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | strikte Datumsselektion benutzen? | 20060503 | ||
| 7 | VALID_FROM | Call by reference | Type reference (TYPE) | KODATAB | Gültigkeitsbeginn des Konditionssatzes | 20060120 | |||
| 8 | VALID_ON | Call by reference | Type reference (TYPE) | DATAM | Datum gültig am | 20060120 | |||
| 9 | VALID_TO | Call by reference | Type reference (TYPE) | KODATBI | Gültigkeitsende des Konditionssatzes | 20060120 | |||
| 10 | WHERE_CLAUSES | Call by reference | Type reference (TYPE) | CL_COND_TAB_SEL=>COND_WHERE_T | Tabelle mit Where-Bedingungen | 20060120 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Keine Where-Bedingung(en) angegeben | 20060120 | ||
| 2 | Fehler beim Lesen der Konditionstabelle | 20060120 |
Method SUPPLEMENT_DATAPART Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | COND_RECORDS | Call by reference | Type reference (TYPE) | CONDTAB_DATASOURCE_T | Tabellentyp für Datenquellen zu Konditionstabellen | 20060413 | |||
| 2 | COND_USAGE | Call by reference | Type reference (TYPE) | COND_ENVIRONMENT-COND_USAGE | Verwendung der Konditionstabelle | 20060413 | |||
| 3 | DATAPART | Call by reference | Object reference (TYPE REF TO) | DATA | Datentabelle (nach KNUMH sortiert!) | 20060413 |
Method SUPPLEMENT_DATAPART on class CL_COND_TAB_SEL has no exception.
Method _CONDTAB_SELECTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DATASOURCE | Value transfer | Type reference (TYPE) | CONDTAB_DATASOURCE | Datenquellen für Konditionstabellen | 20060120 | |||
| 2 | DATE_SELECTION | Call by reference | Type reference (TYPE) | TY_DATE_SEL | für Selektion nach Gültigkeitszeitraum | 20060502 | |||
| 3 | KAPPL | Call by reference | Type reference (TYPE) | KAPPL | Applikation | 20060120 | |||
| 4 | KOTABNR | Call by reference | Type reference (TYPE) | KOTABNR | Konditionstabelle | 20060120 | |||
| 5 | KSCHL | Call by reference | Type reference (TYPE) | KSCHL | Konditionsart | 20060120 | |||
| 6 | KVEWE | Call by reference | Type reference (TYPE) | KVEWE | Verwendung der Konditionstabelle | 20060120 | |||
| 7 | NUMBER_OF_RECORDS | Call by reference | Type reference (TYPE) | SYDBCNT | Bearbeitete Datenbanktabellenzeilen | 20060203 | |||
| 8 | SELECTION_TABLES | Call by reference | Type reference (TYPE) | TY_SEL_TABS_T | Tabelle mit Referenzen auf Selektionstabellen | 20060120 | |||
| 9 | WHERE | Call by reference | Type reference (TYPE) | STRING | komplette Where-Bedingung für eine Konditionstabelle | 20060120 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler beim dynamischen Erzeugen einer internen Tabelle | 20060120 | ||
| 2 | Fehler beim Lesen von der Datenbank | 20060120 | ||
| 3 | Konditionstabelle nicht vorhanden | 20060120 | ||
| 4 | zu viele SELECTIONS übergeben | 20060120 |
History
| Last changed by/on | SAP | 20100310 |
| SAP Release Created in | 700 |