SEARCH_RELATION SAP Method Search relation between business partner
Below is documentation, parameters and attributes of ABAP Method SEARCH_RELATION within SAP class /SCMTMS/CL_BUPA_SH_HELPER. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMTMS/CL_BUPA_SH_HELPER 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 SEARCH_RELATION can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method SEARCH_RELATION
.| Name | Type | Data Type | Description | Default Value |
| IT_SELOPT_PARTNER1 | Importing | TYPE /SCMTMS/T_STRING_RANGE | Table type for /SCMTMS/S_STRING_RANGE | |
| IT_SELOPT_PARTNER2 | Importing | TYPE /SCMTMS/T_STRING_RANGE | Table type for /SCMTMS/S_STRING_RANGE | |
| IT_SELOPT_RELTYP | Importing | TYPE /SCMTMS/T_STRING_RANGE | Table type for /SCMTMS/S_STRING_RANGE | |
| IV_MAXRECORDS | Importing | TYPE DDSHMAXREC | Restrict length of list | |
| ET_RELATION | Exporting | TYPE BUT050_TTY | BUT050 as Table Type |
Exceptions of Method SEARCH_RELATION
This method does not have any exceptionsExample ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lv_ET_RELATION TYPE BUT050_TTY,
lv_IT_SELOPT_PARTNER1 TYPE /SCMTMS/T_STRING_RANGE,
lv_IT_SELOPT_PARTNER2 TYPE /SCMTMS/T_STRING_RANGE,
lv_IT_SELOPT_RELTYP TYPE /SCMTMS/T_STRING_RANGE,
lv_IV_MAXRECORDS TYPE DDSHMAXREC,
lv_other TYPE c.
CALL METHOD /SCMTMS/CL_BUPA_SH_HELPER=>SEARCH_RELATION(
EXPORTING
IT_SELOPT_PARTNER1 = lv_IT_SELOPT_PARTNER1
IT_SELOPT_PARTNER2 = lv_IT_SELOPT_PARTNER2
IT_SELOPT_RELTYP = lv_IT_SELOPT_RELTYP
IV_MAXRECORDS = lv_IV_MAXRECORDS
IMPORTING
ET_RELATION = lv_ET_RELATION ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects