GET_UNIT_INFORMATION_BY_DEST SAP Method Gets Details for Restrictable Number of Units









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

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


Parameters of Method GET_UNIT_INFORMATION_BY_DEST

.

NameTypeData TypeDescriptionDefault Value
CPROG_NAME_RANGEImportingTYPE
BGRFC_CPROG_RANGE
Range Table for Selection by Program Name
DATE_RANGEImportingTYPE
BGRFC_DATE_RANGE
Range Table for Long Time Stamp
DEST_NAMEImportingTYPE
BGRFC_DEST_NAME_INBOUND
Name of Destination in Inbound Case
SHOW_DELETEDImportingTYPE
ABAP_BOOL
Display Deleted Units
TCODE_NAME_RANGEImportingTYPE
BGRFC_TCODE_RANGE
Range Table for Selection of Transaction Code
UNIT_NUMBERImportingTYPE
INT4
Number of Units
USER_NAME_RANGEImportingTYPE
BGRFC_USER_NAME_RANGE
Range Table for User Name
UNIT_INFORMATION_TABLEReturningTYPE
TRFC_INB_UNIT_INFO_TAB
Table of Detail Information for Inbound tRFC



Exceptions of Method GET_UNIT_INFORMATION_BY_DEST

CX_BGRFC_MONITOR_API_AUTHORITY - Missing authorization in bgRFC Monitor API

Example ABAP coding


DATA: lo_class TYPE REF TO IF_TRFC_INB_MONITOR.
DATA: lv_CPROG_NAME_RANGE TYPE BGRFC_CPROG_RANGE,
lv_DATE_RANGE TYPE BGRFC_DATE_RANGE,
lv_DEST_NAME TYPE BGRFC_DEST_NAME_INBOUND,
lv_SHOW_DELETED TYPE ABAP_BOOL,
lv_TCODE_NAME_RANGE TYPE BGRFC_TCODE_RANGE,
lv_UNIT_INFORMATION_TABLE TYPE TRFC_INB_UNIT_INFO_TAB,
lv_UNIT_NUMBER TYPE INT4,
lv_USER_NAME_RANGE TYPE BGRFC_USER_NAME_RANGE,
lv_other TYPE c.

CALL METHOD lo_class=>GET_UNIT_INFORMATION_BY_DEST(
EXPORTING
CPROG_NAME_RANGE = lv_CPROG_NAME_RANGE
DATE_RANGE = lv_DATE_RANGE
DEST_NAME = lv_DEST_NAME
SHOW_DELETED = lv_SHOW_DELETED
TCODE_NAME_RANGE = lv_TCODE_NAME_RANGE
UNIT_NUMBER = lv_UNIT_NUMBER
USER_NAME_RANGE = lv_USER_NAME_RANGE
RECEIVING
UNIT_INFORMATION_TABLE = lv_UNIT_INFORMATION_TABLE )



"Alternate coding for Method Call with returning parameter
lv_UNIT_INFORMATION_TABLE = lo_class=>GET_UNIT_INFORMATION_BY_DEST(
EXPORTING
CPROG_NAME_RANGE = lv_CPROG_NAME_RANGE
DATE_RANGE = lv_DATE_RANGE
DEST_NAME = lv_DEST_NAME
SHOW_DELETED = lv_SHOW_DELETED
TCODE_NAME_RANGE = lv_TCODE_NAME_RANGE
UNIT_NUMBER = lv_UNIT_NUMBER
USER_NAME_RANGE = lv_USER_NAME_RANGE ).

Links to Related Class(s)

IF_TRFC_...
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!