RETRIEVE_BY_ASSOCIATION SAP Method Follow an association to another BO node









Below is documentation, parameters and attributes of ABAP Method RETRIEVE_BY_ASSOCIATION within SAP class /BOFU/IF_MD_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/IF_MD_ADAPTER 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 RETRIEVE_BY_ASSOCIATION can also be found below:

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


Parameters of Method RETRIEVE_BY_ASSOCIATION

.

NameTypeData TypeDescriptionDefault Value
IN_ASSOCIATION_NAMEImportingTYPE
/BOBF/OBM_NAME
IN_BO_NAMEImportingTYPE
/BOBF/OBM_NAME
IN_NODE_IDSImportingTYPE
/BOFU/T_BO_NODE_ID
IN_SOURCE_NODE_NAMEImportingTYPE
/BOBF/OBM_NAME
IN_TARGET_NODE_NAMEImportingTYPE
/BOBF/OBM_NAME
IS_PARAMETERSImportingTYPE REF TO
DATA
IT_FILTERED_ATTRIBUTESImportingTYPE
/BOBF/T_FRW_NAME
OUT_FAILED_SOURCE_NODE_IDSExportingTYPE
/BOFU/T_BO_NODE_ID
OUT_LINKSExportingTYPE
/BOFU/T_ASSOCIATION_LINK



Exceptions of Method RETRIEVE_BY_ASSOCIATION

/BOFU/CX_MD_ADAPTER -

Example ABAP coding


DATA: lo_class TYPE REF TO /BOFU/IF_MD_ADAPTER.
DATA: lv_IN_ASSOCIATION_NAME TYPE /BOBF/OBM_NAME,
lv_IN_BO_NAME TYPE /BOBF/OBM_NAME,
lv_IN_NODE_IDS TYPE /BOFU/T_BO_NODE_ID,
lv_IN_SOURCE_NODE_NAME TYPE /BOBF/OBM_NAME,
lv_IN_TARGET_NODE_NAME TYPE /BOBF/OBM_NAME,
lv_IS_PARAMETERS TYPE DATA,
lv_IT_FILTERED_ATTRIBUTES TYPE /BOBF/T_FRW_NAME,
lv_OUT_FAILED_SOURCE_NODE_IDS TYPE /BOFU/T_BO_NODE_ID,
lv_OUT_LINKS TYPE /BOFU/T_ASSOCIATION_LINK,
lv_other TYPE c.

CALL METHOD lo_class=>RETRIEVE_BY_ASSOCIATION(
EXPORTING
IN_ASSOCIATION_NAME = lv_IN_ASSOCIATION_NAME
IN_BO_NAME = lv_IN_BO_NAME
IN_NODE_IDS = lv_IN_NODE_IDS
IN_SOURCE_NODE_NAME = lv_IN_SOURCE_NODE_NAME
IN_TARGET_NODE_NAME = lv_IN_TARGET_NODE_NAME
IS_PARAMETERS = lv_IS_PARAMETERS
IT_FILTERED_ATTRIBUTES = lv_IT_FILTERED_ATTRIBUTES
IMPORTING
OUT_FAILED_SOURCE_NODE_IDS = lv_OUT_FAILED_SOURCE_NODE_IDS
OUT_LINKS = lv_OUT_LINKS ).

Links to Related Class(s)

/BOFU/IF...
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!