DEFINE_ASSOCIATION SAP Method Define Associations
Below is documentation, parameters and attributes of ABAP Method DEFINE_ASSOCIATION within SAP class /BOFU/CL_GBI_ADAPTER. 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 /BOFU/CL_GBI_ADAPTER 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 directlyThe following technical details of method DEFINE_ASSOCIATION can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method DEFINE_ASSOCIATION
.| Name | Type | Data Type | Description | Default Value |
| IO_ENTITY | Importing | TYPE REF TO /IWBEP/IF_MGW_ODATA_ENTITY_TYP | interface representing a script based odata entity type | |
| IO_MODEL | Importing | TYPE REF TO /IWBEP/IF_MGW_ODATA_MODEL | interface for a script based model | |
| IO_VIEW | Importing | TYPE REF TO /BOFU/CL_FBI_VIEW_NEW | FBI View: Runtime | |
| IS_NODE | Importing | TYPE /BOBF/S_CONFRO_NODE | Configuration: Node | |
| IV_BO | Importing | TYPE /BOFU/BO | Business Object |
Exceptions of Method DEFINE_ASSOCIATION
/IWBEP/CX_MGW_MED_EXCEPTION - Meta data exceptionExample ABAP coding
DATA: lv_IO_ENTITY TYPE /IWBEP/IF_MGW_ODATA_ENTITY_TYP,
lv_IO_MODEL TYPE /IWBEP/IF_MGW_ODATA_MODEL,
lv_IO_VIEW TYPE /BOFU/CL_FBI_VIEW_NEW,
lv_IS_NODE TYPE /BOBF/S_CONFRO_NODE,
lv_IV_BO TYPE /BOFU/BO,
lv_other TYPE c.
CALL METHOD /BOFU/CL_GBI_ADAPTER=>DEFINE_ASSOCIATION(
EXPORTING
IO_ENTITY = lv_IO_ENTITY
IO_MODEL = lv_IO_MODEL
IO_VIEW = lv_IO_VIEW
IS_NODE = lv_IS_NODE
IV_BO = lv_IV_BO ).
Links to Related Class(s)
/BOFU/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects