SAP RM_PROT_IR_MODELS_EXERCISES Function Module for Detail-Log: IR Models: exercise opportunities
RM_PROT_IR_MODELS_EXERCISES is a standard rm prot ir models exercises SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Detail-Log: IR Models: exercise opportunities processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for rm prot ir models exercises FM, simply by entering the name RM_PROT_IR_MODELS_EXERCISES into the relevant SAP transaction such as SE37 or SE38.
Function Group: RMPR
Program Name: SAPLRMPR
Main Program: SAPLRMPR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RM_PROT_IR_MODELS_EXERCISES pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'RM_PROT_IR_MODELS_EXERCISES'"Detail-Log: IR Models: exercise opportunities.
EXPORTING
* LEVEL = '1' "Log Level
I_ANNOUNCEMENT_DATE = "Field of Type DATS
I_EXERCISE_DELAY = "
I_SOPTAUS = "Exercise Type (American or European)
I_SPUTCALL = "Put/Call Indicator for Options
I_OFWAERS = "Strike Currency of Option/Future
I_STRIKE = "
I_EXERCISE_PROBABILITY = "
IMPORTING Parameters details for RM_PROT_IR_MODELS_EXERCISES
LEVEL - Log Level
Data type: SPROT-LEVELDefault: '1'
Optional: Yes
Call by Reference: Yes
I_ANNOUNCEMENT_DATE - Field of Type DATS
Data type: DATSOptional: No
Call by Reference: Yes
I_EXERCISE_DELAY -
Data type: IOptional: No
Call by Reference: Yes
I_SOPTAUS - Exercise Type (American or European)
Data type: RM_SOPTAUSOptional: No
Call by Reference: Yes
I_SPUTCALL - Put/Call Indicator for Options
Data type: RM_PUTCALLOptional: No
Call by Reference: Yes
I_OFWAERS - Strike Currency of Option/Future
Data type: RM_OFWAERSOptional: No
Call by Reference: Yes
I_STRIKE -
Data type: FOptional: No
Call by Reference: Yes
I_EXERCISE_PROBABILITY -
Data type: FOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for RM_PROT_IR_MODELS_EXERCISES Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_level | TYPE SPROT-LEVEL, " '1' | |||
lv_i_announcement_date | TYPE DATS, " | |||
lv_i_exercise_delay | TYPE I, " | |||
lv_i_soptaus | TYPE RM_SOPTAUS, " | |||
lv_i_sputcall | TYPE RM_PUTCALL, " | |||
lv_i_ofwaers | TYPE RM_OFWAERS, " | |||
lv_i_strike | TYPE F, " | |||
lv_i_exercise_probability | TYPE F. " |
  CALL FUNCTION 'RM_PROT_IR_MODELS_EXERCISES' "Detail-Log: IR Models: exercise opportunities |
EXPORTING | ||
LEVEL | = lv_level | |
I_ANNOUNCEMENT_DATE | = lv_i_announcement_date | |
I_EXERCISE_DELAY | = lv_i_exercise_delay | |
I_SOPTAUS | = lv_i_soptaus | |
I_SPUTCALL | = lv_i_sputcall | |
I_OFWAERS | = lv_i_ofwaers | |
I_STRIKE | = lv_i_strike | |
I_EXERCISE_PROBABILITY | = lv_i_exercise_probability | |
. " RM_PROT_IR_MODELS_EXERCISES |
ABAP code using 7.40 inline data declarations to call FM RM_PROT_IR_MODELS_EXERCISES
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single LEVEL FROM SPROT INTO @DATA(ld_level). | ||||
DATA(ld_level) | = '1'. | |||
Search for further information about these or an SAP related objects