SAP OTC_BONDOPTION_CONVERSION_REV Function Module for OTC Bond Option - Reversal of Currency Conversion of Underlying









OTC_BONDOPTION_CONVERSION_REV is a standard otc bondoption conversion rev SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for OTC Bond Option - Reversal of Currency Conversion of Underlying 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 otc bondoption conversion rev FM, simply by entering the name OTC_BONDOPTION_CONVERSION_REV into the relevant SAP transaction such as SE37 or SE38.

Function Group: TB4C
Program Name: SAPLTB4C
Main Program: SAPLTB4C
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function OTC_BONDOPTION_CONVERSION_REV 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 'OTC_BONDOPTION_CONVERSION_REV'"OTC Bond Option - Reversal of Currency Conversion of Underlying
EXPORTING
I_SECURITY_NUMB = "Security number of the underlying
I_COR_ACTION_ID = "Corporate action id number to be reversed
* I_TESTRUN = "X = Simulation
.



IMPORTING Parameters details for OTC_BONDOPTION_CONVERSION_REV

I_SECURITY_NUMB - Security number of the underlying

Data type: VWPANLA-RANL
Optional: No
Call by Reference: No ( called with pass by value option)

I_COR_ACTION_ID - Corporate action id number to be reversed

Data type: VWBWKM-KMNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_TESTRUN - X = Simulation

Data type: C
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for OTC_BONDOPTION_CONVERSION_REV 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_i_security_numb  TYPE VWPANLA-RANL, "   
lv_i_cor_action_id  TYPE VWBWKM-KMNR, "   
lv_i_testrun  TYPE C. "   

  CALL FUNCTION 'OTC_BONDOPTION_CONVERSION_REV'  "OTC Bond Option - Reversal of Currency Conversion of Underlying
    EXPORTING
         I_SECURITY_NUMB = lv_i_security_numb
         I_COR_ACTION_ID = lv_i_cor_action_id
         I_TESTRUN = lv_i_testrun
. " OTC_BONDOPTION_CONVERSION_REV




ABAP code using 7.40 inline data declarations to call FM OTC_BONDOPTION_CONVERSION_REV

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 RANL FROM VWPANLA INTO @DATA(ld_i_security_numb).
 
"SELECT single KMNR FROM VWBWKM INTO @DATA(ld_i_cor_action_id).
 
 


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!