Ansicht
Dokumentation

BAPI_TRCO_COMMODITY_CHANGE - Change Commodity Master Data

BAPI_TRCO_COMMODITY_CHANGE - Change Commodity Master Data

PERFORM Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

To change the Commodity Master data

Use the BAPI BAPI_FTR_COMMODITY_CHANGE to change Commodity master data which is uniquely identified by the importing parameter COMMODITY_ID.

The importing parameter COMMODITY_DATA will carry the original commodity data that is to be changed.

The importing parameter COMMODITY_DATAX will carry the the changed data for the commodity.Therfore what ever the values of the fields within this structure , these values will be updated as the new changed values of the commodity master.

The importing parameter TESTRUN is just to check if the updation happens correctly in the system before it actually done in the system. If this parameter is initial then the commodity master data is changed in the system as per the change values carried by the parameter COMMODITY_DATAX.If TESTRUN is not initial then only a simulation of the commodity master data change is done and no real chanage happens in the system.

The importing parameter EXCHANGE_COMPLETE_INDICATOR indicates whether entries in table EXCHANGE_DATA are complete

The importing parameter QUOTATION_COMPLETE_INDICATOR indicates whether entries in table QUOTATION_DATA are complete

The importing parameter PROVIDER_COMPLETE_INDICATOR indicates whether entries in table PROVIDER_DATA are complete

The importing parameter table EXCHANGE_DATA contains the commodity exchange data that is to be changed/inserted in the system .The structure field EXCHANGE _NAME uniquely identifies each record in the table.

The importing parameter table EXCHANGE_DATAX contains change parameter in which the field changes of a parameter are selected for Exchange data.

The importing parameter table QUOTATION_DATA contains the commodity quotation source data that is to be changed/inserted in the system .

The importing parameter table QUOTATION_DATAX contains change parameter in which the field changes of a parameter are selected for Quotation data.

The importing parameter table PROVIDER_DATA contains the commodity forward market data provider settings that shall be changed/inserted n the system. The structure field PROVIDER uniquely identifies each record in the table.

The importing parameter table PROVIDER_DATAX contains change parameter in which the field changes of a parameter are selected for Provider data.

The exporting parameter RETURN_COMMODITY_ID just indicates if the commodity was successfully changes in the system.

Example

* The commodity's Unit of Measure or Quantity per contract or Commodity name or Commodity Type or Commodity grouping information is changed .

Notes

Further information





Parameters

COMMODITY_DATA
COMMODITY_DATAX
COMMODITY_ID
EXCHANGE_COMPLETE_INDICATOR
EXCHANGE_DATA
EXCHANGE_DATAX
PROVIDER_COMPLETE_INDICATOR
PROVIDER_DATA
PROVIDER_DATAX
QUOTATION_COMPLETE_INDICATOR
QUOTATION_DATA
QUOTATION_DATAX
RETURN
RETURN_COMMODITY_ID
TESTRUN

Exceptions

Function Group

TPM_TRCO_COMMODITY

rdisp/max_wprun_time - Maximum work process run time   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 4723 Date: 20240523 Time: 160244     sap01-206 ( 67 ms )