Fonction SAP BAPI_FTR_CREATE_FXOPTIONS_AVG - Create Average Rate Option

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACTIVITY_CATEGORY BAPI2042-ACTIVITYCAT N 2 X Transaction Activity Category
FOREX_AVG BAPI_FTR_CREATE_FXOPT_AVG u 150 Create an Average Rate Option with BAPI
GENERALCONTRACTDATA BAPI_FTR_CREATE u 250 FTR: BAPI Structure for Creating Transactions
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
AVERAGE_SCHEDULE BAPI_FTR_AVG_SCHEDULE 14 X FTR: BAPI Structure Schedule
RETURN BAPIRET2 548 X Return Parameter

Functionality
This method lets you create an average rate option.
The transferred data corresponds to the data in the online transactionunder Structure and Underlying and to 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.

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 are initial.
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

Description
This import parameter contains the activity category to be reversed.
See the relevant data element documentation in the ABAP dictionary forfurther information.

Description
An import parameter for transferring the special (for a specific productcategory) value of an average rate option.
This parameter is only evaluated with the Create method if the productcategory 760 (FX Option) was assigned in Customizing forthe product 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.
        INCLUDE FTR_BAPI_GEN_CREATE OBJECT DOKU ID TX
        INCLUDE FTR_BAPI_TEST_CREATE OBJECT DOKU ID TX
        INCLUDE FTR_BAPI_TEST_CREATE_R OBJECT DOKU ID TX

        Description
        A table for transferring the rate data for an average rate option.
        For further information about the individual parameter fields, see therelevant data element documentation in the ABAP dictionary.
        INCLUDE FTR_BAPI_RETURN_TAB OBJECT DOKU ID TX