CALCULATE_FROM_YIELD SAP Method Own Costing









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

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


Parameters of Method CALCULATE_FROM_YIELD

.

NameTypeData TypeDescriptionDefault Value
IM_ACTIVITYImportingTYPE
VWSFHAZU
Transaction Activity from Securities View
IM_ADD_FLOWSImportingTYPE
TWSFHAPO
Table Type for VWSFHAPO Structure
IM_CONTRACTImportingTYPE
VWSFHA
Transaction from Securities View
IM_MAIN_FLOWImportingTYPE
VWSFHAPO
Financial Flows from Securities View
EX_PRICEExportingTYPE
TB_BPPRC



Exceptions of Method CALCULATE_FROM_YIELD

CALC_UNSUCCESSFULL -

Example ABAP coding


DATA: lo_class TYPE REF TO IF_EX_TPM_SEC_ADD_PRICING.
DATA: lv_EX_PRICE TYPE TB_BPPRC,
lv_IM_ACTIVITY TYPE VWSFHAZU,
lv_IM_ADD_FLOWS TYPE TWSFHAPO,
lv_IM_CONTRACT TYPE VWSFHA,
lv_IM_MAIN_FLOW TYPE VWSFHAPO,
lv_other TYPE c.

CALL METHOD lo_class=>CALCULATE_FROM_YIELD(
EXPORTING
IM_ACTIVITY = lv_IM_ACTIVITY
IM_ADD_FLOWS = lv_IM_ADD_FLOWS
IM_CONTRACT = lv_IM_CONTRACT
IM_MAIN_FLOW = lv_IM_MAIN_FLOW
IMPORTING
EX_PRICE = lv_EX_PRICE ).

Links to Related Class(s)

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