SAP CL_ABAP_PARSER OO Class - ABAP code completion
CL_ABAP_PARSER is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_ABAP_PARSER including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Method list of CL_ABAP_PARSER SAP class
A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.
Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...
| Method Name | Description | Visability |
| ADD_DOCUMENTED_EXCEPTIONS | Add documented class-base exceptions | Private |
| CALL METHOD cl_abap_parser=>ADD_DOCUMENTED_EXCEPTIONS...more details | ||
| CALCULATE_COMPLETION_RESULTS | Calculate completion results | Public |
| CALL METHOD cl_abap_parser=>CALCULATE_COMPLETION_RESULTS...more details | ||
| CALCULATE_ELEMENT_INFO | Calculate element info | Public |
| CALL METHOD cl_abap_parser=>CALCULATE_ELEMENT_INFO...more details | ||
| CALCULATE_ELEMENT_INFO_BY_NAME | Calculate element info for definition specified by fullname | Public |
| CALL METHOD cl_abap_parser=>CALCULATE_ELEMENT_INFO_BY_NAME...more details | ||
| CALCULATE_INSERTION_RESULT | Calculate source code fragments | Public |
| CALL METHOD cl_abap_parser=>CALCULATE_INSERTION_RESULT...more details | ||
| CALCULATE_QUICKINFO_RESULT | Calculate quick info texts | Public |
| CALL METHOD cl_abap_parser=>CALCULATE_QUICKINFO_RESULT...more details | ||
|
| ||
| CLASS_CONSTRUCTOR | Initialize keyword filter | Public |
| CALL METHOD cl_abap_parser=>CLASS_CONSTRUCTOR...more details | ||
| COMPOSE_INCLUDES | Compose includes to scan | Private |
| CALL METHOD cl_abap_parser=>COMPOSE_INCLUDES...more details | ||
| CONSTRUCTOR | CONSTRUCTOR | Public |
| CALL METHOD cl_abap_parser=>CONSTRUCTOR...more details | ||
| GET_ABAP_PAD_FILE | Get the ABAP grammar's PAD file | Public |
| CALL METHOD cl_abap_parser=>GET_ABAP_PAD_FILE...more details | ||
| GET_BASICTYPE_TEXT | Get name of basic type according to basic type index | Public |
| CALL METHOD cl_abap_parser=>GET_BASICTYPE_TEXT...more details | ||
| GET_BUILTIN_PARAMETER_TEXT | Get text for parameter of builtin function | Public |
| CALL METHOD cl_abap_parser=>GET_BUILTIN_PARAMETER_TEXT...more details | ||
| GET_COMPLETION_DETAILS | Retrieve details of completion entry | Public |
| CALL METHOD cl_abap_parser=>GET_COMPLETION_DETAILS...more details | ||
| GET_COMPLETION_RESULT | Calculate ABAP code completion suggestions | Public |
| CALL METHOD cl_abap_parser=>GET_COMPLETION_RESULT...more details | ||
| GET_CONTEXT_INFO | Evaluate context information string | Private |
| CALL METHOD cl_abap_parser=>GET_CONTEXT_INFO...more details | ||
| GET_DATA_INFO | Get detailed properties of data object definition | Private |
| CALL METHOD cl_abap_parser=>GET_DATA_INFO...more details | ||
| GET_DB_PROCEDURE_INFO | Get detailed properties of database procedure definition | Private |
| CALL METHOD cl_abap_parser=>GET_DB_PROCEDURE_INFO...more details | ||
| GET_ELEMENT_INFO | Get detailed properties of program object (element) | Public |
| CALL METHOD cl_abap_parser=>GET_ELEMENT_INFO...more details | ||
| GET_EVENT_INFO | Get detailed properties of event definition | Private |
| CALL METHOD cl_abap_parser=>GET_EVENT_INFO...more details | ||
| GET_EXCEPTION_INFO | Get detailed properties of exception definition | Private |
| CALL METHOD cl_abap_parser=>GET_EXCEPTION_INFO...more details | ||
| GET_FORM_INFO | Get detailed properties of form definition | Private |
| CALL METHOD cl_abap_parser=>GET_FORM_INFO...more details | ||
| GET_FUNCTION_INFO | Get detailed properties of function module definition | Private |
| CALL METHOD cl_abap_parser=>GET_FUNCTION_INFO...more details | ||
| GET_IMPLEMENTATION_START | Get start line of implementation part | Private |
| CALL METHOD cl_abap_parser=>GET_IMPLEMENTATION_START...more details | ||
| GET_MAIN_PROGRAM | Get main program name for include name | Private |
| CALL METHOD cl_abap_parser=>GET_MAIN_PROGRAM...more details | ||
| GET_MESSAGE_CLASS | Get message class instance | Private |
| CALL METHOD cl_abap_parser=>GET_MESSAGE_CLASS...more details | ||
| GET_METHOD_INFO | Get detailed properties of method definition | Private |
| CALL METHOD cl_abap_parser=>GET_METHOD_INFO...more details | ||
| GET_NORMED_SOURCE | Preprocess source code and compose normed source | Private |
| CALL METHOD cl_abap_parser=>GET_NORMED_SOURCE...more details | ||
| GET_NORMED_SOURCE_FOR_ANALYSIS | Preprocess source code and compose normed source to analyze | Private |
| CALL METHOD cl_abap_parser=>GET_NORMED_SOURCE_FOR_ANALYSIS...more details | ||
| GET_REPOSITORY_RESULT | Get code completion suggestions read from repositories | Private |
| CALL METHOD cl_abap_parser=>GET_REPOSITORY_RESULT...more details | ||
| GET_ROLE_TEXT | Maps number of role to textelement | Private |
| CALL METHOD cl_abap_parser=>GET_ROLE_TEXT...more details | ||
| GET_SETTINGS | Get User Settings for Insert Pattern | Private |
| CALL METHOD cl_abap_parser=>GET_SETTINGS...more details | ||
| GET_TEXT_OF_BEHV_TYPE_INFO | Get ABAP text for a behavior derived type | Public |
| CALL METHOD cl_abap_parser=>GET_TEXT_OF_BEHV_TYPE_INFO...more details | ||
| GET_TEXT_OF_TYPE_INFO | Get source text of type addition | Public |
| CALL METHOD cl_abap_parser=>GET_TEXT_OF_TYPE_INFO...more details | ||
| GET_TEXT_OF_VALUE_INFO | Get source text of value addition | Public |
| CALL METHOD cl_abap_parser=>GET_TEXT_OF_VALUE_INFO...more details | ||
| GET_TOKENS | Tokenize ABAP Source | Public |
| CALL METHOD cl_abap_parser=>GET_TOKENS...more details | ||
| GET_TYPE_INFO | Get detailed properties of type definition | Private |
| CALL METHOD cl_abap_parser=>GET_TYPE_INFO...more details | ||
| GET_TYPE_INFO_AS_TEXT | Get element info of type addition as text | Public |
| CALL METHOD cl_abap_parser=>GET_TYPE_INFO_AS_TEXT...more details | ||
| GET_TYPING_TEXT | Get text of type usage | Public |
| CALL METHOD cl_abap_parser=>GET_TYPING_TEXT...more details | ||
| GET_VALUE_INFO | Get detailed properties of value property | Private |
| CALL METHOD cl_abap_parser=>GET_VALUE_INFO...more details | ||
| GET_VALUE_INFO_AS_TEXT | Get element info of value addition as text | Public |
| CALL METHOD cl_abap_parser=>GET_VALUE_INFO_AS_TEXT...more details | ||
| HANDLE_COMPLETION_REQUEST | Calculate completion results and display them | Public |
| CALL METHOD cl_abap_parser=>HANDLE_COMPLETION_REQUEST...more details | ||
| HANDLE_INSERTION_REQUEST | Calculate source code fragments and insert them | Public |
| CALL METHOD cl_abap_parser=>HANDLE_INSERTION_REQUEST...more details | ||
| HANDLE_QUICKINFO_REQUEST | Calculate quick info texts and display them | Public |
| CALL METHOD cl_abap_parser=>HANDLE_QUICKINFO_REQUEST...more details | ||
| INSERT_AS_PATTERN | Delivers ABAP_TRUE if Pattern Insertion is activated | Private |
| CALL METHOD cl_abap_parser=>INSERT_AS_PATTERN...more details | ||
| INTERNAL_RESET | Reset instance to initial state | Public |
| CALL METHOD cl_abap_parser=>INTERNAL_RESET...more details | ||
| LOAD_MESSAGES | Load messages of message class | Private |
| CALL METHOD cl_abap_parser=>LOAD_MESSAGES...more details | ||
| LOAD_TEXTPOOL | Load texts of text pool | Private |
| CALL METHOD cl_abap_parser=>LOAD_TEXTPOOL...more details | ||
| MAP_COMPLETION_RESULTS | Map results to structure for edit control | Private |
| CALL METHOD cl_abap_parser=>MAP_COMPLETION_RESULTS...more details | ||
| PARSE_FORM_PARAMETERS | Parse the completion details into Form parameters | Private |
| CALL METHOD cl_abap_parser=>PARSE_FORM_PARAMETERS...more details | ||
| PARSE_FUNCTION_PARAMETERS | Parse the completion details into Function Module parameters | Private |
| CALL METHOD cl_abap_parser=>PARSE_FUNCTION_PARAMETERS...more details | ||
| PARSE_METHOD_PARAMETERS | Parse the completion details into Method parameters | Private |
| CALL METHOD cl_abap_parser=>PARSE_METHOD_PARAMETERS...more details | ||
| PROCESS_CLASS_INCLUDES | Remove implementation of local classes | Private |
| CALL METHOD cl_abap_parser=>PROCESS_CLASS_INCLUDES...more details | ||
| PROCESS_FORM_INCLUDE | Remove the operative coding of form implementations | Private |
| CALL METHOD cl_abap_parser=>PROCESS_FORM_INCLUDE...more details | ||
| QUALIFY_TOKENS | Qualify token stream received from SCAN ABAP-SOURCE | Public |
| CALL METHOD cl_abap_parser=>QUALIFY_TOKENS...more details | ||
| READ_MESSAGE_PROPERTIES | Read message content or description from repository | Private |
| CALL METHOD cl_abap_parser=>READ_MESSAGE_PROPERTIES...more details | ||
| READ_TEXTELEMENT | Read text of text element | Public |
| CALL METHOD cl_abap_parser=>READ_TEXTELEMENT...more details | ||
| RESET | Re-initialize ABAP parser instance | Public |
| CALL METHOD cl_abap_parser=>RESET...more details | ||
| RESTRICT_PAD | Create restricted pad | Public |
| CALL METHOD cl_abap_parser=>RESTRICT_PAD...more details | ||
| SET_REPOSITORY_ACCESS | Set user-defined repository access strategy | Public |
| CALL METHOD cl_abap_parser=>SET_REPOSITORY_ACCESS...more details | ||
| SPLIT_FULLNAME | Split fullname into object kind and object name | Private |
| CALL METHOD cl_abap_parser=>SPLIT_FULLNAME...more details | ||
| X_TABLE_TO_STRING | Unpack table of X into a string | Public |
| CALL METHOD cl_abap_parser=>X_TABLE_TO_STRING...more details | ||
| X_TABLE_TO_S_TABLE | Unpack table of X into a table of string | Public |
| CALL METHOD cl_abap_parser=>X_TABLE_TO_S_TABLE...more details | ||
CL_ABAP_PARSER attributes
List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.
| Name | Level | Description | Initial Value | Type | Visability |
| C_ALL_COMPONENTS | Constant | All components | CL_ABAP_MATH=>MAX_INT4 | LIKE I | Public |
| C_COMPL_MODE | Constant | LIKE | Public | ||
| C_DEFAULT_SPACER_FOR_COMMENT | Instance Attribute | LIKE | Private | ||
| C_MAXGRADE_FOR_SHORTTEXT | Instance Attribute | Maximal grade to read shorttext | 1 | LIKE I | Private |
| C_MAXHITS_FIRST_LEVEL | Constant | Maximal number of selected repository entries | 10 | LIKE I | Private |
| C_MAXHITS_SECOND_LEVEL | Constant | Maximal number of selected repository entries | 5 | LIKE I | Private |
| C_MAX_COMPONENTS | Constant | Maximal number of components | 30 | LIKE I | Private |
| C_MESSAGE_KEY_LENGTH | Constant | Maximal lenght of message key | 3 | LIKE I | Private |
| C_STMT_TERMINATOR | Constant | Single-Character Flag | '.' | LIKE CHAR1 | Private |
| C_TEXTELEMENT_ID | Constant | ABAP Text Pool ID (Selection Text/Numbered Text) | 'I' | LIKE TEXTPOOLID | Private |
| C_TEXT_KEY_LENGTH | Constant | Maximal lenght of text element key | 3 | LIKE I | Private |
| KIND2TAG | Static Attribute | Map fullname object kind to tag | LIKE TT_KIND2TAG | Public | |
| M_BASICTYPE_NAMES | Static Attribute | All names of built-in types | LIKE BASICTYPE_NAMES | Private | |
| M_BEG_TOKEN_XPOS | Instance Attribute | Column of completion token beginning | LIKE I | Private | |
| M_BEG_XPOS | Instance Attribute | Column of completion context beginning | LIKE I | Private | |
| M_BEHVTYPE_TEXTS | Static Attribute | Table of behavior type constructors | LIKE TT_BEHVTYPE_TEXT | Private | |
| M_BUILTIN_FUNCTIONS | Static Attribute | Signatures of builtin functions | LIKE TT_BUILTIN_FUNCTION | Private | |
| M_BUILTIN_PARAMETERS | Static Attribute | Parameters of builtin functions | LIKE TT_BUILTIN_PARAMETER | Private | |
| M_CCIMP_REQUIRED | Instance Attribute | Including CCIMP required? | LIKE ABAP_BOOL | Private | |
| M_COMPL_RESULT | Instance Attribute | Results of ABAP code completion | LIKE SCC_COMPLETIONS | Private | |
| M_COMPL_RESULTS | Instance Attribute | Results of ABAP code completion | LIKE SCC_COMPLETIONS | Private | |
| M_COMPL_VALUES | Instance Attribute | Values of Completion Items | LIKE TT_COMPLETION_VALUE | Private | |
| M_CONTEXT_PROVIDER | Instance Attribute | Context provider for webDynpro, etc. | LIKE IF_ABAP_CONTEXT_PROVIDER | Public | |
| M_DELIMITER | Instance Attribute | Delimiter at start | LIKE | Private | |
| M_FULLNAME_CONTEXT | Instance Attribute | Fullname of current element info context | LIKE STRING | Private | |
| M_ICON_MAPPING | Static Attribute | Tabletype for role to icon mapping | LIKE SCC_ICON_MAPPINGS | Private | |
| M_INCLNAME | Instance Attribute | ABAP Program: Name of current Include | LIKE SYREPID | Private | |
| M_INCLSRC | Instance Attribute | Original source code from current include | LIKE SOURCETABLE | Private | |
| M_MAINPROG | Instance Attribute | ABAP Program: Name of current Main Program | LIKE SYREPID | Private | |
| M_MAINSRC | Instance Attribute | Composed sourcecode of main program | LIKE SOURCETABLE | Private | |
| M_MAIN_PROGRAM | Instance Attribute | Main program | LIKE CL_ABAP_CC_PROGRAM | Private | |
| M_MASTERLANG | Instance Attribute | Language ID | LIKE LANG | Private | |
| M_MAX_ITEMS | Instance Attribute | Table of Maximal Number of Items | LIKE TT_MAX_ITEMS | Private | |
| M_MAX_ITEMS_PACKAGE | Instance Attribute | Table of maximal number of items read from package | LIKE TT_MAX_ITEMS | Private | |
| M_MAX_ITEMS_RESTRICTED | Instance Attribute | Table of maximal number of items read for restricted version | LIKE TT_MAX_ITEMS | Private | |
| M_MESSAGES | Instance Attribute | Messages of given Message Class ID | LIKE TT_MESSAGE | Private | |
| M_MESSAGE_CLASS | Instance Attribute | Message class entry | LIKE CL_ABAP_CC_MESSAGE_CLASS=>TS_MESSAGE_CLASS | Private | |
| M_MESSAGE_CLASSES | Instance Attribute | Set of message class entries | LIKE CL_ABAP_CC_MESSAGE_CLASS=>TT_MESSAGE_CLASS | Private | |
| M_MESSAGE_ID | Instance Attribute | Message Class ID | LIKE ARBGB | Private | |
| M_PACKAGE | Instance Attribute | Package of Main program | LIKE DEVCLASS | Private | |
| M_PROGTYPE | Instance Attribute | Program type | LIKE SUBC | Private | |
| M_REPL_SOURCE | Instance Attribute | Replacing source code (reduced due to performance) | LIKE SREPTAB | Private | |
| M_REPOSITORY | Instance Attribute | Repository Access | LIKE CL_ABAP_CC_REPOSITORY | Private | |
| M_REPOSITORY_ACCESS | Instance Attribute | Repository access strategies | LIKE TT_REPOSITORY_ACCESS | Private | |
| M_REPOS_REQUESTS | Instance Attribute | ABAP Code Completion: Repository requests | LIKE SCC_REPOSITORY_REQUESTS | Private | |
| M_REPO_REQUESTS | Instance Attribute | ABAP Code Completion: Repository requests | LIKE SCC_REPOSITORY_REQUESTS | Private | |
| M_SRCDATE | Instance Attribute | Overall timestamp: Date | LIKE D | Private | |
| M_SRCTIME | Instance Attribute | Overall timestamp: Time | LIKE T | Private | |
| M_TEXTS | Instance Attribute | Texts of text pool | LIKE TT_TEXT_ELEMENT | Private | |
| M_USERDEFINED_REPO_ACCESS | Instance Attribute | User-defined repository access strategies | LIKE TT_REPOSITORY_ACCESS | Private | |
| M_VERSION | Instance Attribute | ABAP Version | LIKE ABAPVRS | Private | |
| M_XPOS | Instance Attribute | Column of completion position | LIKE I | Private | |
| M_YPOS | Instance Attribute | Line of completion position | LIKE I | Private | |
| PROGTYPE_CLASS | Constant | Program type: Classpool | 'K' | LIKE SUBC | Public |
| PROGTYPE_EXEC | Constant | Program type: Executable Program | '1' | LIKE SUBC | Public |
| PROGTYPE_FUGR | Constant | Program type: Function Group | 'F' | LIKE SUBC | Public |
| PROGTYPE_INCLUDE | Constant | Program type: Include | 'I' | LIKE SUBC | Public |
| PROGTYPE_MODPOOL | Constant | Program type: Module Pool | 'M' | LIKE SUBC | Public |
| PROGTYPE_SUBPOOL | Constant | Program type: Subroutine Pool | 'S' | LIKE SUBC | Public |
| PROGTYPE_TYPEPOOL | Constant | Program type: Type Pool | 'T' | LIKE SUBC | Public |
| TOKEN_CAT | Constant | Token category | LIKE | Public |
CL_ABAP_PARSER types
BASICTYPE_NAME - Name of built-in typeBASICTYPE_NAMES - All names of built-in types
COMPLETION_RESULTS - Completion result table
TS_BUILTIN_FUNCTION -
TS_BUILTIN_PARAMETER -
TS_COMPLETION_VALUE - Value of Completion Item
TS_KIND2TAG - Mapping item for kind-to-tag (used in full names)
TS_MAX_ITEMS - Maximal Number of Items (depending on prefix length)
TS_MESSAGE - Message item (translation or original value)
TS_REPOSITORY_ACCESS - Repository access strategy
TS_TEXT_ELEMENT - Text element (value, translation and length)
TT_BEHVTYPE_TEXT - Text of behavior type constructors
TT_BUILTIN_FUNCTION -
TT_BUILTIN_PARAMETER -
TT_COMPLETION_VALUE - Table of Values of Completion Items
TT_KIND2TAG - Mappings of kind-to-tag (used in full names)
TT_MAX_ITEMS - Table of Maximal Number of Items
TT_MESSAGE - Table of Messages
TT_REPOSITORY_ACCESS - Table of repository access strategies
TT_TEXTPOOL - Content of Textpool
TT_TEXT_ELEMENT - Table of Text Elements
T_USER_SETTINGS - User settings for insertion of code patterns
Links to Related Class(s)
CL_ABAP_...Full list of available SAP object classes
Search for further information about these or an SAP related objects