GET_COST SAP Method Gets the Costs
Below is documentation, parameters and attributes of ABAP Method GET_COST within SAP class IF_EX_REOR_COST. 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_EX_REOR_COST 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_COST can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_COST
.Name | Type | Data Type | Description | Default Value |
ID_CONDTYPE | Importing | TYPE REOR_RESERVATION_COST-CONDTYPE | Condition Type | |
ID_OCCFROM | Importing | TYPE REOR_RESERVATION_COST-VALIDFROM | Reserved From | |
ID_OCCTO | Importing | TYPE REOR_RESERVATION_COST-VALIDTO | Reserved To | |
IO_OBJECT | Importing | TYPE REF TO OBJECT | ||
CD_CURRKEY | Changing | TYPE REOR_RESERVATION_COST-PRICECURRKEY | Currency | |
CD_FLOWTYPE | Changing | TYPE REOR_RESERVATION_COST-FLOWTYPE | Flow Type | |
CD_PRICE | Changing | TYPE REOR_RESERVATION_COST-PRICE | Price of Reservation |
Exceptions of Method GET_COST
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_EX_REOR_COST.
DATA: lv_CD_CURRKEY TYPE REOR_RESERVATION_COST-PRICECURRKEY,
lv_CD_FLOWTYPE TYPE REOR_RESERVATION_COST-FLOWTYPE,
lv_CD_PRICE TYPE REOR_RESERVATION_COST-PRICE,
lv_ID_CONDTYPE TYPE REOR_RESERVATION_COST-CONDTYPE,
lv_ID_OCCFROM TYPE REOR_RESERVATION_COST-VALIDFROM,
lv_ID_OCCTO TYPE REOR_RESERVATION_COST-VALIDTO,
lv_IO_OBJECT TYPE OBJECT,
lv_other TYPE c.
CALL METHOD lo_class=>GET_COST(
EXPORTING
ID_CONDTYPE = lv_ID_CONDTYPE
ID_OCCFROM = lv_ID_OCCFROM
ID_OCCTO = lv_ID_OCCTO
IO_OBJECT = lv_IO_OBJECT
CHANGING
CD_CURRKEY = lv_CD_CURRKEY
CD_FLOWTYPE = lv_CD_FLOWTYPE
CD_PRICE = lv_CD_PRICE ).
Links to Related Class(s)
IF_EX_RE...Full list of available SAP object classes
Search for further information about these or an SAP related objects