CROSS_REFERENCE SAP Method Creates a cross reference to another object
Below is documentation, parameters and attributes of ABAP Method CROSS_REFERENCE within SAP class CL_RSEM_MODEL_OBJECT. 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_RSEM_MODEL_OBJECT 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 CROSS_REFERENCE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CROSS_REFERENCE
.| Name | Type | Data Type | Description | Default Value |
| I_EMF_PACKAGE | Importing | TYPE CSEQUENCE | The IMF package (for cross resource refs) | |
| I_NAME | Importing | TYPE CSEQUENCE | The object name | |
| I_R_MODEL | Importing | TYPE REF TO CL_RSEM_MODEL_OBJECT | Abstract BW Model Object | |
| I_URI_FRAGMENT | Importing | TYPE CSEQUENCE | URI fragment of a contained object | |
| C_S_REFERENCE | Changing | TYPE IF_BW_ENTITY_MODEL_TYPES=>TN_S_OBJECT_REFERENCE | Non-Containment referencce in the Model |
Exceptions of Method CROSS_REFERENCE
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO CL_RSEM_MODEL_OBJECT.
DATA: lv_C_S_REFERENCE TYPE IF_BW_ENTITY_MODEL_TYPES=>TN_S_OBJECT_REFERENCE,
lv_I_EMF_PACKAGE TYPE CSEQUENCE,
lv_I_NAME TYPE CSEQUENCE,
lv_I_R_MODEL TYPE CL_RSEM_MODEL_OBJECT,
lv_I_URI_FRAGMENT TYPE CSEQUENCE,
lv_other TYPE c.
CALL METHOD lo_class=>CROSS_REFERENCE(
EXPORTING
I_EMF_PACKAGE = lv_I_EMF_PACKAGE
I_NAME = lv_I_NAME
I_R_MODEL = lv_I_R_MODEL
I_URI_FRAGMENT = lv_I_URI_FRAGMENT
CHANGING
C_S_REFERENCE = lv_C_S_REFERENCE ).
Links to Related Class(s)
CL_RSEM_...Full list of available SAP object classes
Search for further information about these or an SAP related objects