GET_CURRENT_MODEL SAP Method Read Valuated Costing Model
Below is documentation, parameters and attributes of ABAP Method GET_CURRENT_MODEL within SAP class CL_GUI_COSTING_MODEL_VALUATION. 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 CL_GUI_COSTING_MODEL_VALUATION 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_CURRENT_MODEL can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_CURRENT_MODEL
.| Name | Type | Data Type | Description | Default Value |
| ER_COSTING_MODEL | Exporting | TYPE REF TO CL_COSTING_MODEL | Model from Valuated or Nonvaluated Model | |
| ER_UNVALUATED_MODEL | Exporting | TYPE REF TO CL_COSTING_MODEL | Nonvaluated Model | |
| ER_VALUATED_MODEL | Exporting | TYPE REF TO CL_COSTING_MODEL_VALUATION | Valuated Model |
Exceptions of Method GET_CURRENT_MODEL
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO CL_GUI_COSTING_MODEL_VALUATION.
DATA: lv_ER_COSTING_MODEL TYPE CL_COSTING_MODEL,
lv_ER_UNVALUATED_MODEL TYPE CL_COSTING_MODEL,
lv_ER_VALUATED_MODEL TYPE CL_COSTING_MODEL_VALUATION,
lv_other TYPE c.
CALL METHOD lo_class=>GET_CURRENT_MODEL(
IMPORTING
ER_COSTING_MODEL = lv_ER_COSTING_MODEL
ER_UNVALUATED_MODEL = lv_ER_UNVALUATED_MODEL
ER_VALUATED_MODEL = lv_ER_VALUATED_MODEL ).
Links to Related Class(s)
CL_GUI_C...Full list of available SAP object classes
Search for further information about these or an SAP related objects