FIND SAP Method Find Quotations before/ after DateTime









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

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


Parameters of Method FIND

.

NameTypeData TypeDescriptionDefault Value
I_DATETIMEImportingTYPE
IF_CPE_QUOTATIONS=>TY_DATETIME
Date with Time
I_DIRECTIONImportingTYPE
TY_TIME_DIRECTION
Before/ after
I_INCLUDE_DATETIMEImportingTYPE
ABAP_BOOL
Include DateTime?
I_KEYSImportingTYPE
IF_CPE_QUOTATIONS=>TY_KEYS
Quotation Keys
I_NUM_QUOTATIONSImportingTYPE
I
Number of Quotations
I_QUOTTIMEImportingTYPE
CPET_QUOTTIME
Search for given Quotation Time only
R_QUOTATIONSReturningTYPE
IF_CPE_QUOTATIONS=>TY_QUOTATIONS
Quotations



Exceptions of Method FIND

CX_CPE_EVALUATION_TERMINATED - CPE Evaluation Terminated

Example ABAP coding


DATA: lo_class TYPE REF TO IF_CPE_QUOTATION_PROVIDER.
DATA: lv_I_DATETIME TYPE IF_CPE_QUOTATIONS=>TY_DATETIME,
lv_I_DIRECTION TYPE TY_TIME_DIRECTION,
lv_I_INCLUDE_DATETIME TYPE ABAP_BOOL,
lv_I_KEYS TYPE IF_CPE_QUOTATIONS=>TY_KEYS,
lv_I_NUM_QUOTATIONS TYPE I,
lv_I_QUOTTIME TYPE CPET_QUOTTIME,
lv_R_QUOTATIONS TYPE IF_CPE_QUOTATIONS=>TY_QUOTATIONS,
lv_other TYPE c.

CALL METHOD lo_class=>FIND(
EXPORTING
I_DATETIME = lv_I_DATETIME
I_DIRECTION = lv_I_DIRECTION
I_INCLUDE_DATETIME = lv_I_INCLUDE_DATETIME
I_KEYS = lv_I_KEYS
I_NUM_QUOTATIONS = lv_I_NUM_QUOTATIONS
I_QUOTTIME = lv_I_QUOTTIME
RECEIVING
R_QUOTATIONS = lv_R_QUOTATIONS )



"Alternate coding for Method Call with returning parameter
lv_R_QUOTATIONS = lo_class=>FIND(
EXPORTING
I_DATETIME = lv_I_DATETIME
I_DIRECTION = lv_I_DIRECTION
I_INCLUDE_DATETIME = lv_I_INCLUDE_DATETIME
I_KEYS = lv_I_KEYS
I_NUM_QUOTATIONS = lv_I_NUM_QUOTATIONS
I_QUOTTIME = lv_I_QUOTTIME ).

Links to Related Class(s)

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