Fonction SAP BAPI_FTR_CAPFLOOR_CREATE - Create OTC Interest Rate Derivative Cap/Floor

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
GENERALCONTRACTDATA BAPI_FTR_CREATE u 250 Create General Data of OTC Interest Rate Derivative Cap/Floor
OTCINTERESTCAPFLOOR BAPI_FTR_CREATE_CAPFLOOR u 128 Create Product-Specific Data for OTC Interest Derivative Cap/Floor
TESTRUN BAPI2042-TESTRUN C 1 SPACE X Switch to Simulation Mode for Write BAPIs

Paramètre Reférence Type Long. Description
COMPANYCODE BAPI2042-COMPANY_CODE C 4 Company Code
FINANCIALTRANSACTION BAPI2042-TRANSACTION C 13 Financial Transaction

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Return Parameters

Functionality
This method lets you create an OTC interest rate derivative cap orfloor.
The transferred data corresponds to the data in the online transactionunder Structure and general business transaction data.
Add to data entered in detail screens using the relevant methods. Thisapplies particularly to data for conditions, additional flows and mainflows.

Example
Creating a floor with a nominal amount change and an interest condition,postponing the due date to the Next Working Day with BAPIs:
First of all create the floor by calling OTCInterestCapFloor.Create
. To create the additional main flow, call
OTCInterestCapFloor.MainFlowCreate. Then callFTRCondition.GetList to read the condition data andFTRCondition.Change to change the due date.

Notes
If you set the TESTRUN parameter this calls the BAPI insimulation mode.
To write the data to the database after running a BAPI call in an updaterun (TESTRUN initial), a commit work must be triggered,for example with BapiService.TransactionCommit.
Messages are returned in the RETURN parameter.
A transaction can only be created successfully if the transferred datameets the online transaction consistency conditions. In this case theCOMPANYCODE and FINANCIALTRANSACTION parameters arefilled.
If the data is not consistent or complete it is rejected. In this casethe RETURN parameter contains corresponding messages and theCOMPANYCODE and FINANCIALTRANSACTION parameters areinitial.
Refer to the interface parameter documentation for information about thedata, what is mandatory, optional or depends on the settings inCustomizing, and what default settings exist.
INCLUDE FTR_BAPI_BUKRS_CREATE OBJECT DOKU ID TX
INCLUDE FTR_BAPI_RFHA_CREATE OBJECT DOKU ID TX
INCLUDE FTR_BAPI_GEN_CREATE OBJECT DOKU ID TX

Description
An import parameter for transferring the special (for a specific producttype) value of an OTC interest rate derivative cap or floor.
This parameter is only evaluated with the Create method if the productcategory 610 (CAP/FLOOR) was assigned in Customizing for theproduct type entered.
There are three different types of transferring fields:

  • Mandatory: An entry is required and there are no system default
  • settings.
    • Optional: An entry is not absolutely necessary. A value is either
    • not absolutely necessary or there are system default settings.
      • Customizable: In Customizing you can define whether the field is
      • mandatory, optional or not applicable (no entry possible).
        For further information about the individual parameter fields, see therelevant data element documentation in the ABAP dictionary.

        Default
        The fields have the following significance:
        Field Name,,Field Type,,Default,,Description
        START_TERM,,Optional,,Current date + 2 days,,,,Start of term
        START_TERM_INCLUSIVE,,Optional,,'X',,Start of term inclusive
        END_TERM,,Mandatory,,-,,End of term
        END_TERM_INCLUSIVE,,Optional,,-,,End of term inclusive
        CALENDAR1,,Optional,,Calendar for company code currency,,Factorycalendar 1
        CALENDAR2,,Optional,,Calendar for business partner,,Factory calendar 2
        STRIKE_UPPER_LIMIT,,Optional,,-,,Upper limit for cap
        STRIKE_LOWER_LIMIT,,Optional,,-,,Lower limit for floor
        NOMINAL_AMOUNT,,Mandatory,,-,,Nominal amount
        CURRENCY,,Optional,,-,,Currency
        CURRENCY_ISO,,Optional,,-,,ISO currency code
        INTEREST_EFFECTIVE_FROM,,Optional,,Current date + 2 days,,Effective from
        INTEREST_FIRST_DUE_DATE,,Mandatory,,-,,First due date
        INTEREST_FREQUENCY_MONTH,,Optional,,-,,Number of months in the period
        INTEREST_RATE_REF,,Mandatory,,-,,Interest rate reference
        INTEREST_CALC_METHOD,,Mandatory,,-,,Interest rate calculation method
        INTEREST_CALENDAR_ID,,Optional,,-,,Factory calendar for interest ratecalculation method
        PREMIUM_AMOUNT,,Optional,,-,,Premium amount
        PREMIUM_CURRENCY,,Optional,,-,,Premium currency
        PREMIUM_CURRENCY_ISO,,Optional,,-,,ISO code premium
        PREMIUM_RATE,,Customizable,,-,,Premium in percent
        PREMIUM_DUE_DATE,,Optional,,-,,Premium due date
        PREMIUM_EFFECTIVE_FROM,,Optional,,-,,Premium effective from
        INCLUDE FTR_BAPI_TEST_CREATE OBJECT DOKU ID TX
        INCLUDE FTR_BAPI_TEST_CREATE_R OBJECT DOKU ID TX
        INCLUDE FTR_BAPI_RETURN_TAB OBJECT DOKU ID TX