GET_COMPLETION_RESULT SAP Method Calculate ABAP code completion suggestions









Below is documentation, parameters and attributes of ABAP Method GET_COMPLETION_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 - Static

This is a Static Method so you can call it directly

The following technical details of method GET_COMPLETION_RESULT can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method GET_COMPLETION_RESULT

.

NameTypeData TypeDescriptionDefault Value
COLUMNImportingTYPE
I
Completion column
INCLUDEImportingTYPE
SYREPID
Name of current include
INCL_SRCImportingTYPE
STRING
Soruce code of current include
PROGRAMImportingTYPE
SYREPID
Main program name
PROG_SRCImportingTYPE
STRING
Main program source code
ROWImportingTYPE
I
Completion row
INCL_SRCImportingTYPE
STRING
Source code of current include
MODEImportingTYPE
I
Completion mode
COMPL_RESULTExportingTYPE
SCC_COMPLETIONS
Completion result
EXTERN_REQSExportingTYPE
SCC_REPOSITORY_REQUESTS
External repository requests
PREFIXExportingTYPE
STRING
Prefix of identifier at completion position
PREFIX_LENGTHExportingTYPE
I
Number of characters to be replaced
SYMTAB_NEEDEDExportingTYPE
SAP_BOOL
Detailed source code evaluation necessary
MAINPRG_NEEDEDExportingTYPE
SAP_BOOL
Determination of main program necessary



Exceptions of Method GET_COMPLETION_RESULT

This method does not have any exceptions

Example ABAP coding


DATA: lv_COLUMN TYPE I,
lv_COMPL_RESULT TYPE SCC_COMPLETIONS,
lv_EXTERN_REQS TYPE SCC_REPOSITORY_REQUESTS,
lv_INCLUDE TYPE SYREPID,
lv_INCL_SRC TYPE STRING,
lv_PREFIX TYPE STRING,
lv_PREFIX_LENGTH TYPE I,
lv_PROGRAM TYPE SYREPID,
lv_PROG_SRC TYPE STRING,
lv_ROW TYPE I,
lv_SYMTAB_NEEDED TYPE SAP_BOOL,
lv_INCL_SRC TYPE STRING,
lv_MAINPRG_NEEDED TYPE SAP_BOOL,
lv_MODE TYPE I,
lv_other TYPE c.

CALL METHOD CL_ABAP_PARSER=>GET_COMPLETION_RESULT(
EXPORTING
COLUMN = lv_COLUMN
INCLUDE = lv_INCLUDE
INCL_SRC = lv_INCL_SRC
PROGRAM = lv_PROGRAM
PROG_SRC = lv_PROG_SRC
ROW = lv_ROW
INCL_SRC = lv_INCL_SRC
MODE = lv_MODE
IMPORTING
COMPL_RESULT = lv_COMPL_RESULT
EXTERN_REQS = lv_EXTERN_REQS
PREFIX = lv_PREFIX
PREFIX_LENGTH = lv_PREFIX_LENGTH
SYMTAB_NEEDED = lv_SYMTAB_NEEDED
MAINPRG_NEEDED = lv_MAINPRG_NEEDED ).

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!