Fonction SAP BAPI_FTR_CAPFLOOR_CHANGE - Change OTC Interest Rate Derivative Cap/Floor

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COMPANYCODE BAPI2042-COMPANY_CODE C 4 Company Code
FINANCIALTRANSACTION BAPI2042-TRANSACTION C 13 Financial Transaction
GENERALCONTRACTDATA BAPI_FTR_CHANGE u 187 Change General Data of OTC Interest Rate Derivative Cap/Floor
GENERALCONTRACTDATAX BAPI_FTR_CHANGEX u 17 General Change Information
OTCINTERESTCAPFLOOR BAPI_FTR_CHANGE_CAPFLOOR u 137 Change Product-Specific Data of OTC Interest Rate Derivative Cap/Floor
OTCINTERESTCAPFLOORX BAPI_FTR_CHANGE_CAPFLOORX u 25 Product-Specific Change Information
TESTRUN BAPI2042-TESTRUN C 1 SPACE X Switch to Simulation Mode for Write BAPIs

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

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

Functionality
You can use this method to change the data for an OTC interest ratederivative Cap or Floor that has already been created.
The changes are carried out with the selected field changes concept.This means that the changed data is transferred in the
GENERALCONTRACTDATA (or OTCINTERESTCAPFLOOR) parameter, thefields that are to be changed, and their values copied, are indicated inthe GENERALCONTRACTDATAX (or OTCINTERESTCAPFLOORX)parameter.

Example
Change the lower limit of a floor:
Set the COMPANYCODE and FINANCIALTRANSACTION parameters.Set the OTCINTERESTCAPFLOOR-STRIKE_LOWER_LIMIT field to the newvalue. Set the OTCINTERESTCAPFLOORX-STRIKE_LOWER_LIMIT field to'X.' Call the OTCInterestCapFloor. Change method.
This is one possibility for using the Change method. Thefollowing general procedure applies to changing an OTC interest ratederivative cap/floor:
Read the data for a cap/floor using OTCInterestCapFloor.GetDetail
. Copy and change the data according to the changes required. CallOTCInterestCapFloor.PrepareChangeStructure to get the changeparameters. Call OTCInterestCapFloor.Change.

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 changed successfully if the transferred datameets the online transaction consistency conditions. In this case theRETURNCOMPANYCODE and RETURNFINANCIALTRANSACTIONparameters are filled.
If the data is not consistent or complete it is rejected. In this casethe RETURN parameter is filled with corresponding messages andthe RETURNCOMPANYCODE and RETURNFINANCIALTRANSACTION areinitial.
For more information about the parameters, see the interface parameterdocumentation.
INCLUDE FTR_BAPI_BUKRS_CHANGE OBJECT DOKU ID TX
INCLUDE FTR_BAPI_RFHA_CHANGE OBJECT DOKU ID TX

Description
Import parameters that uniquely identify a company code.

Description
Import parameter which uniquely identifies a financial transactionwithin a company code.
INCLUDE FTR_BAPI_GEN_CHANGE OBJECT DOKU ID TX
INCLUDE FTR_BAPI_PREP_STRUC OBJECT DOKU ID TX
INCLUDE FTR_BAPI_PREP_STRUC_WERT OBJECT DOKU ID TX

Description
An import parameter for transferring the special (for a specific productcategory) value of an OTC interest rate derivative cap or floor.
In this parameter you can transfer the new values for fields you want tochange. The change structure (OTCINTERESTCAPFLOORX) must also benotified of the fields to be changed.
For further information about the individual parameter fields, see therelevant data element documentation in the ABAP dictionary.
INCLUDE FTR_BAPI_PREP_STRUC OBJECT DOKU ID TX
INCLUDE FTR_BAPI_PREP_STRUC_WERT OBJECT DOKU ID TX
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