Ansicht
Dokumentation

BAPI_TRCO_COMMODITY_CREATE - Create commodity master data

BAPI_TRCO_COMMODITY_CREATE - Create commodity master data

CL_GUI_FRONTEND_SERVICES - Frontend Services   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

To create a new Commodity and its related master data in the system

Use this BAPI BAPI_FTR_COMMODITY_CREATE to create a new commodity and its relevant master data in the system.

The importing parameter COMMODITY_DATA structure will contain the commodity specific master data identified uniquely by the field COMMODITY_ID.

The importing parameter TESTRUN is just to check if the creation happens correctly in the system before its actually done in the system. If this parameter is initial then the commodity master data is created in the system as per the values carried by the importing parameters and the tables parameters.If TESTRUN is not initial then only a simulation of the commodity master data create is done and no real commodity data is create happens in the system.

The exporting parameter COMMODITY_ID values just indicates if the commodity master data identified by the COMMODITY_ID is successfully created in the system

The tables parameter EXCHANGE_DATA contains all commodity exchange relevant information for the commodity identified by the COMMODITY_ID field in the input structure COMMODITY_DATA .This table can contain more than one exchange relevant information about the commodity.

The tables parameter QUOTATION_DATA contains all the sources from which the commodity's information like quantity per contract, Unit of measure etc are quoted . One of these Quotation sources has to be marked as default source of quotation for the commodity.

The tables parameter RETURN contains error information that might have occured during the execution of the create function.

Example

A new commodity with COMMODITY_ID = 'COFFEE' and all commodity relevant information like Commodity category , commodity type,unit of measure,currency and grouping information is passed through the importing parameter COMMODITY_DATA..

For the above COMMODITY_ID all exchange relevant data like Quantity per contract, Tick,Tick value,Unit of measure , Exchange name and exchange currency are passed through the tables field EXCHANGE_DATA.

For the above COMMODITY_ID all Quotation source data like Quotation_source and the default quotation source are passed through the tables field QUOTATION_DATA.

Once the BAPI is called with all the above information then a new commodity with ID 'COFFEE' is created in the system.

Notes

Further information





Parameters

COMMODITY_DATA
COMMODITY_ID
EXCHANGE_DATA
PROVIDER_DATA
QUOTATION_DATA
RETURN
TESTRUN

Exceptions

Function Group

TPM_TRCO_COMMODITY

rdisp/max_wprun_time - Maximum work process run time   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 3470 Date: 20240606 Time: 171240     sap01-206 ( 61 ms )