Ansicht
Dokumentation

BAPI_FTR_CTY_OTCOPT_DEALCREATE - Create commodity OTC Options

BAPI_FTR_CTY_OTCOPT_DEALCREATE - Create commodity OTC Options

RFUMSV00 - Advance Return for Tax on Sales/Purchases   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to completely create a commodity OTC option.

This BAPI gathers the BAPIs for the transaction and the detailed information (conditions, other flows, main flows, and payment details) together. This means that it is only necessary to call one individual BAPI which makes the procedure simpler and improves performance.

The concept of selected field changes is used (both for changing and creating). For import parameter, this means that only the data for which the field name is indicated in the corresponding change parameter (for example, GENERALCONTRACTDATAX) is transferred from the data of a parameter (for example, GENERALCONTRACTDATA). This also applies to table parameters. For a specific assignment of table entries to parameter and change parameter, there is the column TABLEINDEX in tables for both parameters in which you need to enter a unique entry.

There can also be the import parameter (parameter name) _COMPLETE_INDICATOR for table parameters. This specifies whether the entries transferred in the table are complete (and entries that are not transferred are deleted) or whether only new/changed entries were transferred.

Example

Creating a commodity OTC Option with an additional flow using a BAPI:

Set parameters COMMODITYOTC, GENERALCONTRACTDATA and ADDFLOW to your required values and make entries in the change parameters COMMODITYOTCX, GENERALCONTRACTDATAX and ADDLFOWX.Since ADDFLOW and ADDFLOWX are tables parameters, the entries in field TABLEINDEX need to be numbered serially so that unique assignments can be made.

Set PAYDET_COMPLETE_INDICATOR to ' ' to keep the system default values in the payment details (from the Standing Instructions). Set ADDFLOW_COMPLETE_INDICATOR to 'X' if you only want to transfer the submitted values.

Notes

If you set the TESTRUN parameter this calls the BAPI in simulation mode.

To write the data into the database after running a BAPI call in an update run (TESTRUN initial), a commit work must be triggered, for example with BapiService.TransactionCommit.

Messages are returned in the parameter RETURN.

Notes

Further information





Parameters

ADDFLOW
ADDFLOWX
ADDFLOW_COMPLETE_INDICATOR
ANALYSIS_PARAM_IN
COMMODITY_OTCOPT
COMMODITY_OTCOPTX
COMPANYCODE
EXTENSIONIN
FINANCIALTRANSACTION
GENERALCONTRACTDATA
GENERALCONTRACTDATAX
PAYDET_COMPLETE_INDICATOR
PAYMENTDETAIL
PAYMENTDETAILX
RETURN
TESTRUN

Exceptions

Function Group

FTR_BAPI_CTYOPTIONS

PERFORM Short Reference   General Material Data  
This documentation is copyright by SAP AG.

Length: 4273 Date: 20240523 Time: 111610     sap01-206 ( 82 ms )