Fonction SAP BAPI_FTR_FRA_CREATE - Create an OTC Interest Rate Derivative FRA

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
GENERALCONTRACTDATA BAPI_FTR_CREATE u 250 Create General Data of an OTC Interest Rate Derivative FRA
OTCINTERESTFRA BAPI_FTR_CREATE_FRA u 76 Create Product-Specific Data of an OTC Interest Rate Derivative FRA
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 FRA.
The transferred data corresponds to the data in the online transactionunder Structure and general business transaction data.
As in the online transaction, it is not possible to change, create ordelete conditions or main flows. Additional flows can be changed usingthe relevant methods.

Example
Creating an FRAU with an additional flow using BAPIs:
First of all create the FRA by calling OTCInterestFRA.Create. Tocreate the additional flow, call OTCInterestFRA. AddFlowCreate.

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 productcategory) value of an OTC interest rate derivative FRA.
This parameter is only evaluated with the Create method if the productcategory 630 (FRA) was assigned in Customizing for the producttype 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_HEDGE_PERIODE,,Mandatory,,-,,Start of hedge period
        START_HEDGE_PERIODE_INCLUSIVE,,Optional,,'X',,Start of hedge periodinclusive
        END_HEDGE_PERIODE,,Mandatory,,-,,End of hedge period
        END_HEDGE_PERIODE_INCLUSIVE,,Optional,,-,,End of hedge period inclusive
        NOMINAL_AMOUNT,,Mandatory,,-,,Nominal amount
        CURRENCY,,Mandatory,,-,,Currency
        CURRENCY_ISO,,Mandatory,,-,,ISO currency code
        INTEREST_RATE,,Mandatory,,-,,Agreed interest rate
        INTEREST_RATE_REF,,Mandatory,,-,,Interest rate reference
        INTEREST_CALC_METHOD,,Mandatory,,-,,Interest rate calculation method
        INTEREST_CALENDAR_ID,,Optional,,-,,Factory calendar for interestcalculation method
        INTEREST_FIXING_DAYS,,Optional,,'2-',,Fixing
        CALENDAR1,,Optional,,Calendar for company code currency,,Factorycalendar 1
        CALENDAR2,,Optional,,Calendar for business partner,,Factory calendar 2
        INCLUDE FTR_BAPI_TEST_M OBJECT DOKU ID TX
        INCLUDE FTR_BAPI_TEST_R OBJECT DOKU ID TX
        INCLUDE FTR_BAPI_RETURN_TAB OBJECT DOKU ID TX