CALCULATE_INSERTION_RESULT SAP Method Calculate source code fragments
Below is documentation, parameters and attributes of ABAP Method CALCULATE_INSERTION_RESULT within SAP class CL_ABAP_PARSER. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_ABAP_PARSER into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method CALCULATE_INSERTION_RESULT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CALCULATE_INSERTION_RESULT
.| Name | Type | Data Type | Description | Default Value |
| IDENTIFIER | Importing | TYPE STRING | Name of Completion Entry | |
| KIND | Importing | TYPE I | Namespace of Completion Entity | |
| PATTERN | Importing | TYPE ABAP_BOOL | Pattern insertion? | |
| SETTINGS | Importing | TYPE T_USER_SETTINGS | User Settings: Pattern Format | |
| DIALOG_ALLOWED | Importing | TYPE ABAP_BOOL | GUI User Dialog allowed? | |
| BEG_XPOS | Exporting | TYPE I | Begin of Insertion Range (Column) | |
| COMPL_TEXT | Exporting | TYPE RSWSOURCET | Insertion Text | |
| SUCCESS | Exporting | TYPE ABAP_BOOL | Text filled? |
Exceptions of Method CALCULATE_INSERTION_RESULT
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO CL_ABAP_PARSER.
DATA: lv_BEG_XPOS TYPE I,
lv_COMPL_TEXT TYPE RSWSOURCET,
lv_IDENTIFIER TYPE STRING,
lv_KIND TYPE I,
lv_PATTERN TYPE ABAP_BOOL,
lv_SETTINGS TYPE T_USER_SETTINGS,
lv_SUCCESS TYPE ABAP_BOOL,
lv_DIALOG_ALLOWED TYPE ABAP_BOOL,
lv_other TYPE c.
CALL METHOD lo_class=>CALCULATE_INSERTION_RESULT(
EXPORTING
IDENTIFIER = lv_IDENTIFIER
KIND = lv_KIND
PATTERN = lv_PATTERN
SETTINGS = lv_SETTINGS
DIALOG_ALLOWED = lv_DIALOG_ALLOWED
IMPORTING
BEG_XPOS = lv_BEG_XPOS
COMPL_TEXT = lv_COMPL_TEXT
SUCCESS = lv_SUCCESS ).
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