CHECK_AVAILABILITY SAP Method Check availability









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

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


Parameters of Method CHECK_AVAILABILITY

.

NameTypeData TypeDescriptionDefault Value
IV_EQUIP_TYPEImportingTYPE
/SCMTMS/EQUIP_TYPE
Equipment Type
IV_LOC_NOImportingTYPE
/SAPAPO/LOCNO
Location
IV_QUANTITYImportingTYPE
INT4
Natural number
IV_REQUEST_CHECK_TYPEImportingTYPE
/TRP/REQUEST_CHECK_TYPE
IV_TIMEImportingTYPE
TIMESTAMP
UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
ET_MESSAGEExportingTYPE
/TRP/T_MESSAGE
Message table
ET_RESULTExportingTYPE
/TRP/T_AVAIL_CHECK_RESULT
Availability check result



Exceptions of Method CHECK_AVAILABILITY

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /TRP/CL_AVAIL_CHECK_SERVICE.
DATA: lv_ET_MESSAGE TYPE /TRP/T_MESSAGE,
lv_ET_RESULT TYPE /TRP/T_AVAIL_CHECK_RESULT,
lv_IV_EQUIP_TYPE TYPE /SCMTMS/EQUIP_TYPE,
lv_IV_LOC_NO TYPE /SAPAPO/LOCNO,
lv_IV_QUANTITY TYPE INT4,
lv_IV_REQUEST_CHECK_TYPE TYPE /TRP/REQUEST_CHECK_TYPE,
lv_IV_TIME TYPE TIMESTAMP,
lv_other TYPE c.

CALL METHOD lo_class=>CHECK_AVAILABILITY(
EXPORTING
IV_EQUIP_TYPE = lv_IV_EQUIP_TYPE
IV_LOC_NO = lv_IV_LOC_NO
IV_QUANTITY = lv_IV_QUANTITY
IV_REQUEST_CHECK_TYPE = lv_IV_REQUEST_CHECK_TYPE
IV_TIME = lv_IV_TIME
IMPORTING
ET_MESSAGE = lv_ET_MESSAGE
ET_RESULT = lv_ET_RESULT ).

Links to Related Class(s)

/TRP/CL_...
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!