Fonction SAP BAPI_FTR_SWAP_CREATE - Create an OTC Interest Rate Derivative Swap

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 Swap
OTCINTERESTSWAP BAPI_FTR_CREATE_SWAP u 150 Create Product-Specific Data of OTC Interest Rate Derivative Swap
TESTRUN BAPI2042-TESTRUN C 1 SPACE X Switch to Simulation Session 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 swap.
The transferred data corresponds to the data in the online transactionunder Structure and general business transaction data.
The corresponding methods must be used to complete the data entered withdetail screens. This applies particularly to data for conditions,additional flows and main flows.

Example
Creating an interest rate swap with a nominal amount change and aninterest condition, postponing the due date to the Next Working Day
with BAPIs:
First of all create the interest rate swap by callingOTCInterestSwap.Create. To create the additional main flow, callOTCInterestSwap.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, forexample 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 swap.
This parameter is only evaluated with the Create method if the productcategory 620 (SWAP) 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 defaultsettings.
Optional: An entry is not absolutely necessary. A value is eithernot absolutely necessary or there are system default settings.
Customizable: In Customizing you can define whether the field ismandatory, optional or not applicable (no entry possible).
For further information about the individual parameter fields, see therelevant data element documentation in the ABAP dictionary.

Value range

Default
The fields have the following meaning:
Field Name,,Field Type,,Default,,Significance
START_TERM,,Optional,,Current date + 2 days,,,,Start of term
START_INCLUSIVE,,Optional,,'X',,Start of term
END_TERM,,Mandatory,,-,,End of term
END_INCLUSIVE,,Optional,,-,,End of term inclusive
CALENDAR1,,Optional,,Calendar for currency of company code,,Factorycalendar 1
CALENDAR2,,Optional,,Calendar for business partner,,Factory calendar 2
PAY_SIDE_NOMINAL_AMOUNT,,Mandatory,,-,,Nominal amount of outgoing side
PAY_SIDE_CURRENCY,,Optional,,-,,Currency of outgoing side
PAY_SIDE_CURRENCY_ISO,,Optional,,-,,ISO code of the currency outgoingside
PAY_INTEREST_EFFEKTIVE_FROM,,Optional,,Current date + 2 days ,,Conditionitem valid from outgoing side
PAY_INTEREST_FIRST_DUE_DATE,,Mandatory,,-,,First due date outgoing side
PAY_INTEREST_FREQUENCY_MONTH Optional,,-,,Number of months in theperiod outgoing side
PAY_INTEREST_RATE,,Customizable,,-,,Agreed interest rate outgoing side
PAY_INTEREST_RATE_REF,,Customizable,,-,,Interest rate reference outgoingside
PAY_INTEREST_SPREAD,,Customizable,,-,,Interest markup /markdown outgoingside
PAY_INTEREST_CALC_METHOD,,Mandatory,,-,,Interest rate calculation methodoutgoing side
PAY_INTEREST_CALENDAR_ID,,Optional,,-,,Factory calendar for interestrate calculation method outgoing side
RECEIVE_SIDE_NOMINAL_AMOUNT,,Optional,,-,,Nominal amount of incomingside
RECEIVE_SIDE_CURRENCY,,Optional,,-,,Currency of the incoming side
RECEIVE_SIDE_CURRENCY_ISO,,Optional,,-,,ISO code of the currencyincoming side
RECEIVE_INTEREST_EFFECTIVE_FRO Optional,,Current date + 2 days
,,Condition item valid from incoming side
RECEIVE_INTEREST_FIRST_DUE_DAT Mandatory,,-,,First due date incomingside
RECEIVE_INTEREST_FREQUENCY_MON Optional,,-,,Number of months in theperiod incoming side
RECEIVE_INTEREST_RATE,,Customizable,,-,,Agreed interest rate incomingside
RECEIVE_INTEREST_RATE_REF,,Customizable,,-,,Interest rate referenceincoming side
RECEIVE_INTEREST_SPREAD,,Customizable,,-,,Interest markup /markdownincoming side
RECEIVE_INTEREST_CALC_METHOD Mandatory,,-,,Interest rate calculationmethod incoming side
RECEIVE_INTEREST_CALENDAR_ID,,Optional,,-,,Factory calendar for interestrate calculation method incoming side
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