SAP ABAP Class CL_ABAP_DYN_PRG (Support for dynamic programming)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-ABA-LA (Application Component) Syntax, Compiler, Runtime
     SABP (Package) ABAP Runtime Environment
Properties
Class CL_ABAP_DYN_PRG  
Short Description Support for dynamic programming    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SABP   ABAP Runtime Environment 
Created 20100706   SAP 
Last change 20140121   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_ABAP_DYN_PRG has no interface implemented.
Friends
Class CL_ABAP_DYN_PRG has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CACHE_FOR_TABLES Static Attribute Private See coding 20120410
2 CACHE_FOR_TABLES_AND_VIEWS Static Attribute Private See coding 20120410
3 RESULT_NOT_A_TABLE Constant Private See coding '1' 20120410
4 RESULT_NOT_IN_PACKAGE Constant Private See coding '2' 20120410
5 RESULT_OKAY Constant Private See coding '0' 20120410
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_CHAR_LITERAL Static method Public Method Check whether the input is a valid type c literal 20120720
2 CHECK_COLUMN_NAME Static method Public Method Check whether the input can be a column name 20100709
3 CHECK_INT_VALUE Static method Public Method Check whether the input is a valid integer (optional sign) 20100709
4 CHECK_STRING_LITERAL Static method Public Method Check whether the input is a valid type string literal 20120720
5 CHECK_TABLE_NAME_STR Static method Public Method Check whether the input is a DB table name, check package 20100709
6 CHECK_TABLE_NAME_TAB Static method Public Method Check whether the input is a DB table name, check package 20100709
7 CHECK_TABLE_OR_VIEW_NAME_STR Static method Public Method Check whether input is DB table or view name, check package 20110617
8 CHECK_TABLE_OR_VIEW_NAME_TAB Static method Public Method Check whether input is DB table or view name, check package 20110617
9 CHECK_VARIABLE_NAME Static method Public Method Check whether the input can be a variable name 20100709
10 CHECK_WHITELIST_STR Static method Public Method Check whether the input is in a whitelist (string version) 20100709
11 CHECK_WHITELIST_TAB Static method Public Method Check whether the input is in a whitelist (table version) 20100709
12 ESCAPE_QUOTES Static method Public Method Escape single quotes 20100709
13 ESCAPE_QUOTES_STR Static method Public Method Escape backquotes 20100709
14 ESCAPE_XSS_CSS Static method Public Method Escape Cascading Style Sheets string for XSS safety 20110426
15 ESCAPE_XSS_JAVASCRIPT Static method Public Method Escape Javascript string for XSS safety 20110426
16 ESCAPE_XSS_URL Static method Public Method Escape URL string for XSS safety 20110426
17 ESCAPE_XSS_XML_HTML Static method Public Method Escape XML/HTML string for XSS safety 20110426
18 MASS_CHECK_WHITELIST_STR Static method Public Method Check whether many input values are in a whitelist 20120918
19 MASS_CHECK_WHITELIST_TAB Static method Public Method Check whether many input values are in a whitelist 20120917
20 QUOTE Static method Public Method Put single quotes around the value and escape single quotes 20100709
21 QUOTE_STR Static method Public Method Put backquotes around the value and escape backquotes 20100709
22 REFRESH_BUFFERS Static method Public Method Clear the caches of check_table_[or_view]_name_* 20120717
Events
Class CL_ABAP_DYN_PRG has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 T_TABLE_CACHE Private See coding Cache for check_table_name_tab 20120410 BEGIN OF t_table_cache, tabname TYPE ddobjname, incl_sub_packages TYPE abap_bool, packages TYPE string_hashed_table, result TYPE c LENGTH 1, " result_okay or " result_not_a_table or " result_not_in_package END OF t_table_cache
Method Signatures

Method CHECK_CHAR_LITERAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Input that shall be checked 20120720
2 Returning VAL_STR Value transfer Type reference (TYPE) STRING Same as the input 20120720
# Exception Resumable Description Created on
1 CX_ABAP_INVALID_VALUE Value is invalid 20120720

Method CHECK_COLUMN_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing STRICT Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20130117
2 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Input that shall be checked 20100709
3 Returning VAL_STR Value transfer Type reference (TYPE) STRING Same as the input 20100709
# Exception Resumable Description Created on
1 CX_ABAP_INVALID_NAME Name is invalid 20100709

Method CHECK_INT_VALUE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Input that shall be checked 20100709
2 Returning VAL_STR Value transfer Type reference (TYPE) STRING Same as the input 20100709
# Exception Resumable Description Created on
1 CX_ABAP_NOT_AN_INTEGER Not an integer 20100709

Method CHECK_STRING_LITERAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Input that shall be checked 20120720
2 Returning VAL_STR Value transfer Type reference (TYPE) STRING Same as the input 20120720
# Exception Resumable Description Created on
1 CX_ABAP_INVALID_VALUE Value is invalid 20120720

Method CHECK_TABLE_NAME_STR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing BYPASS_BUFFER Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Don't use the internal cache, access the DB directly 20120717
2 Importing INCL_SUB_PACKAGES Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Check for package including sub-packages? 20100709
3 Importing PACKAGES Call by reference Type reference (TYPE) CSEQUENCE Package to which the table shall belong 20100709
4 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Input that shall be checked 20100709
5 Returning VAL_STR Value transfer Type reference (TYPE) STRING Same as the input 20100709
# Exception Resumable Description Created on
1 CX_ABAP_NOT_A_TABLE The value is not the name of a DB table 20100709
2 CX_ABAP_NOT_IN_PACKAGE The table is not in the given package 20100709

Method CHECK_TABLE_NAME_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing BYPASS_BUFFER Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Don't use the internal cache, access the DB directly 20120717
2 Importing INCL_SUB_PACKAGES Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Check for package including sub-packages? 20100709
3 Importing PACKAGES Call by reference Type reference (TYPE) STRING_HASHED_TABLE Package to which the table shall belong 20100709
4 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Input that shall be checked 20100709
5 Returning VAL_STR Value transfer Type reference (TYPE) STRING Same as the input 20100709
# Exception Resumable Description Created on
1 CX_ABAP_NOT_A_TABLE The value is not the name of a DB table 20100709
2 CX_ABAP_NOT_IN_PACKAGE The table is not in the given package 20100709

Method CHECK_TABLE_OR_VIEW_NAME_STR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing BYPASS_BUFFER Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Don't use the internal cache, access the DB directly 20120717
2 Importing INCL_SUB_PACKAGES Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Check for package including sub-packages? 20110617
3 Importing PACKAGES Call by reference Type reference (TYPE) CSEQUENCE Package to which the table or view shall belong 20110617
4 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Input that shall be checked 20110617
5 Returning VAL_STR Value transfer Type reference (TYPE) STRING Same as the input 20110617
# Exception Resumable Description Created on
1 CX_ABAP_NOT_A_TABLE The given name is not the name of a DB table or view 20110617
2 CX_ABAP_NOT_IN_PACKAGE The table is not in the given package 20110617

Method CHECK_TABLE_OR_VIEW_NAME_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing BYPASS_BUFFER Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Don't use the internal cache, access the DB directly 20120717
2 Importing INCL_SUB_PACKAGES Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Check for package including sub-packages? 20110617
3 Importing PACKAGES Call by reference Type reference (TYPE) STRING_HASHED_TABLE Package to which the table or view shall belong 20110617
4 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Input that shall be checked 20110617
5 Returning VAL_STR Value transfer Type reference (TYPE) STRING Same as the input 20110617
# Exception Resumable Description Created on
1 CX_ABAP_NOT_A_TABLE The given name is not the name of a DB table or view 20110617
2 CX_ABAP_NOT_IN_PACKAGE The table or view is not in the given package 20110617

Method CHECK_VARIABLE_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing STRICT Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20130117
2 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Input that shall be checked 20100709
3 Returning VAL_STR Value transfer Type reference (TYPE) STRING Same as the input 20100709
# Exception Resumable Description Created on
1 CX_ABAP_INVALID_NAME Name is invalid 20100709

Method CHECK_WHITELIST_STR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Input that shall be checked 20100709
2 Returning VAL_STR Value transfer Type reference (TYPE) STRING Same as the input 20100709
3 Importing WHITELIST Call by reference Type reference (TYPE) CSEQUENCE Comma-separated list of allowed values 20100709
# Exception Resumable Description Created on
1 CX_ABAP_NOT_IN_WHITELIST Value is not in the whitelist 20100709

Method CHECK_WHITELIST_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Input that shall be checked 20100709
2 Returning VAL_STR Value transfer Type reference (TYPE) STRING Same as the input 20100709
3 Importing WHITELIST Call by reference Type reference (TYPE) STRING_HASHED_TABLE table of allowed values 20100709
# Exception Resumable Description Created on
1 CX_ABAP_NOT_IN_WHITELIST Value is not in the whitelist 20100709

Method ESCAPE_QUOTES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning OUT Value transfer Type reference (TYPE) STRING Value in which single quotes are escaped 20100709
2 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Value in which single quotes shall be escaped 20100709

Method ESCAPE_QUOTES on class CL_ABAP_DYN_PRG has no exception.

Method ESCAPE_QUOTES_STR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning OUT Value transfer Type reference (TYPE) STRING Value in which backquotes are escaped 20100709
2 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Value in which backquotes shall be escaped 20100709

Method ESCAPE_QUOTES_STR on class CL_ABAP_DYN_PRG has no exception.

Method ESCAPE_XSS_CSS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ABOVE_FF Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Escape all characters above 0xFF 20110426
2 Returning OUT Value transfer Type reference (TYPE) STRING Escaped value 20110426
3 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Value to be escaped 20110426

Method ESCAPE_XSS_CSS on class CL_ABAP_DYN_PRG has no exception.

Method ESCAPE_XSS_JAVASCRIPT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ABOVE_FF Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Escape all characters above 0xFF 20110426
2 Returning OUT Value transfer Type reference (TYPE) STRING Escaped value 20110426
3 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Value to be escaped 20110426

Method ESCAPE_XSS_JAVASCRIPT on class CL_ABAP_DYN_PRG has no exception.

Method ESCAPE_XSS_URL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning OUT Value transfer Type reference (TYPE) STRING Escaped value 20110426
2 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Value to be escaped 20110426

Method ESCAPE_XSS_URL on class CL_ABAP_DYN_PRG has no exception.

Method ESCAPE_XSS_XML_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ABOVE_FF Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Escape all characters above 0xFF 20110426
2 Returning OUT Value transfer Type reference (TYPE) STRING Escaped value 20110426
3 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Value to be escaped 20110426

Method ESCAPE_XSS_XML_HTML on class CL_ABAP_DYN_PRG has no exception.

Method MASS_CHECK_WHITELIST_STR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing VALUES Call by reference Type reference (TYPE) STRING_TABLE Input values that shall be checked 20120918
2 Returning VALUES_RET Value transfer Type reference (TYPE) STRING_TABLE Same as the input values 20121029
3 Importing WHITELIST Call by reference Type reference (TYPE) CSEQUENCE Comma-separated list of allowed values 20120918
# Exception Resumable Description Created on
1 CX_ABAP_NOT_IN_WHITELIST Value is not in the whitelist 20120918

Method MASS_CHECK_WHITELIST_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing VALUES Call by reference Type reference (TYPE) STRING_TABLE Input values that shall be checked 20120917
2 Returning VALUES_RET Value transfer Type reference (TYPE) STRING_TABLE Same as the input values 20121029
3 Importing WHITELIST Call by reference Type reference (TYPE) STRING_HASHED_TABLE Table of allowed values 20120917
# Exception Resumable Description Created on
1 CX_ABAP_NOT_IN_WHITELIST Value is not in the whitelist 20120917

Method QUOTE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning OUT Value transfer Type reference (TYPE) STRING Quoted value 20100709
2 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Value that shall be enclosed by quotes 20100709

Method QUOTE on class CL_ABAP_DYN_PRG has no exception.

Method QUOTE_STR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning OUT Value transfer Type reference (TYPE) STRING Quoted value 20100709
2 Importing VAL Call by reference Type reference (TYPE) CSEQUENCE Value that shall be enclosed by backquotes 20100709

Method QUOTE_STR on class CL_ABAP_DYN_PRG has no exception.

Method REFRESH_BUFFERS Signature

Method REFRESH_BUFFERS on class CL_ABAP_DYN_PRG has no parameter.
Method REFRESH_BUFFERS on class CL_ABAP_DYN_PRG has no exception.
History
Last changed by/on SAP  20140121 
SAP Release Created in 732