Ansicht
Dokumentation
BAPI_FTR_CTY_OTCOPT_DEALCHANGE - Change commodity OTC Options
Vendor Master (General Section) General Material DataThis documentation is copyright by SAP AG.
Functionality
You can use this method to completely change 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.
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
Changing a commodity OTC option with an additional flow using a BAPI:
Change the data and select the fields in the corresponding change parameter. Set PAYDET_COMPLETE_INDICATOR and ADDFLOW_COMPLETE_INDICATOR to ' ', to keep the existing values that you do not want to change.
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
ADDFLOWADDFLOWX
ADDFLOW_COMPLETE_INDICATOR
ANALYSIS_PARAM_IN
CASHSETTLE
CASHSETTLEX
COMMODITY_OTCOPT
COMMODITY_OTCOPTX
COMPANYCODE
EXTENSIONIN
FINANCIALTRANSACTION
GENERALCONTRACTDATA
GENERALCONTRACTDATAX
PAYDET_COMPLETE_INDICATOR
PAYMENTDETAIL
PAYMENTDETAILX
RETURN
RETURNCOMPANYCODE
RETURNFINANCIALTRANSACTION
TESTRUN
Exceptions
Function Group
FTR_BAPI_CTYOPTIONSrdisp/max_wprun_time - Maximum work process run time ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 4276 Date: 20240523 Time: 094058 sap01-206 ( 53 ms )