GET_SINGLE_REF SAP Method Where-Used List for Single Object









Below is documentation, parameters and attributes of ABAP Method GET_SINGLE_REF within SAP class CL_ABAP_COMPILER. 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_COMPILER 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 GET_SINGLE_REF can also be found below:

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


Parameters of Method GET_SINGLE_REF

.

NameTypeData TypeDescriptionDefault Value
P_EXTENDEDImportingTYPE
SYCHAR01
Further Details
P_FULL_NAMEImportingTYPE
STRING
Complete Name of Object
P_FULL_NAMESImportingTYPE
SCR_NAMES_GRADES
Table of Strings
P_GRADEImportingTYPE
SCR_GRADE
Grade of Use
P_ONLY_FIRSTImportingTYPE
SYCHAR01
Only First Location of Where-Used List
P_EXTENDEDImportingTYPE
ABAP_BOOL
Further Details
P_FULL_NAMEImportingTYPE
STRING
Full name of the object
P_ONLY_FIRSTImportingTYPE
ABAP_BOOL
Only First Location of Where-Used List
P_ABORTExportingTYPE
SYCHAR01
CHAR01 Data Element for SYST
P_ERRORExportingTYPE
SYCHAR01
P_ERRORSExportingTYPE
SCR_ERRORS
List of Syntax Errors
P_INDEX_FULL_NAMEExportingTYPE
I
P_RESULTExportingTYPE
SCR_REFS
Where-Used List
P_ABORTExportingTYPE
ABAP_BOOL
CHAR01 data element for SYST
P_ERRORExportingTYPE
ABAP_BOOL



Exceptions of Method GET_SINGLE_REF

P_ABORTExportingTYPE
SYCHAR01CHAR01 Data Element for SYSTP_ERRORExportingTYPE
SYCHAR01P_ERRORSExportingTYPE
SCR_ERRORSList of Syntax ErrorsP_INDEX_FULL_NAMEExportingTYPE
IP_RESULTExportingTYPE
SCR_REFSWhere-Used ListP_ABORTExportingTYPE
ABAP_BOOLCHAR01 data element for SYSTP_ERRORExportingTYPE
ABAP_BOOLSYNTAX_ERROR - Syntax error in full name

Example ABAP coding


DATA: lo_class TYPE REF TO CL_ABAP_COMPILER.
DATA: lv_P_ABORT TYPE SYCHAR01,
lv_P_ERROR TYPE SYCHAR01,
lv_P_ERRORS TYPE SCR_ERRORS,
lv_P_EXTENDED TYPE SYCHAR01,
lv_P_FULL_NAME TYPE STRING,
lv_P_FULL_NAMES TYPE SCR_NAMES_GRADES,
lv_P_GRADE TYPE SCR_GRADE,
lv_P_INDEX_FULL_NAME TYPE I,
lv_P_ONLY_FIRST TYPE SYCHAR01,
lv_P_RESULT TYPE SCR_REFS,
lv_P_ABORT TYPE ABAP_BOOL,
lv_P_ERROR TYPE ABAP_BOOL,
lv_P_EXTENDED TYPE ABAP_BOOL,
lv_P_FULL_NAME TYPE STRING,
lv_P_ONLY_FIRST TYPE ABAP_BOOL,
lv_other TYPE c.

CALL METHOD lo_class=>GET_SINGLE_REF(
EXPORTING
P_EXTENDED = lv_P_EXTENDED
P_FULL_NAME = lv_P_FULL_NAME
P_FULL_NAMES = lv_P_FULL_NAMES
P_GRADE = lv_P_GRADE
P_ONLY_FIRST = lv_P_ONLY_FIRST
P_EXTENDED = lv_P_EXTENDED
P_FULL_NAME = lv_P_FULL_NAME
P_ONLY_FIRST = lv_P_ONLY_FIRST
IMPORTING
P_ABORT = lv_P_ABORT
P_ERROR = lv_P_ERROR
P_ERRORS = lv_P_ERRORS
P_INDEX_FULL_NAME = lv_P_INDEX_FULL_NAME
P_RESULT = lv_P_RESULT
P_ABORT = lv_P_ABORT
P_ERROR = lv_P_ERROR ).

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!