SAP TCC_UI_COMPARE_CURVES Function Module for Compare two Commodity Price Curves









TCC_UI_COMPARE_CURVES is a standard tcc ui compare curves SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Compare two Commodity Price Curves processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for tcc ui compare curves FM, simply by entering the name TCC_UI_COMPARE_CURVES into the relevant SAP transaction such as SE37 or SE38.

Function Group: TCC_UI_CCURVE
Program Name: SAPLTCC_UI_CCURVE
Main Program: SAPLTCC_UI_CCURVE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TCC_UI_COMPARE_CURVES pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'TCC_UI_COMPARE_CURVES'"Compare two Commodity Price Curves
EXPORTING
* IV_EVAL_TYPE = "ID of Risk Management Evaluation
* IV_COMMODITY1 = "Commodity ID
* IV_CC_TYPE1 = "Commodity Curve Type
* IV_COMMODITY2 = "Commodity ID
* IV_CC_TYPE2 = "Commodity Curve Type
* IV_EVAL_DATE = SY-DATUM "Evaluation Date
* IV_CURVE_START_DATE = SY-DATUM "Start Date of Commodity Price Curve
* IV_CURVE_END_DATE = "End Date of Commodity Price Curve
.



IMPORTING Parameters details for TCC_UI_COMPARE_CURVES

IV_EVAL_TYPE - ID of Risk Management Evaluation

Data type: JBREVAL_D
Optional: Yes
Call by Reference: Yes

IV_COMMODITY1 - Commodity ID

Data type: TRCO_COMM_ID
Optional: Yes
Call by Reference: Yes

IV_CC_TYPE1 - Commodity Curve Type

Data type: TB_CTY_CURVE_TYPE
Optional: Yes
Call by Reference: Yes

IV_COMMODITY2 - Commodity ID

Data type: TRCO_COMM_ID
Optional: Yes
Call by Reference: Yes

IV_CC_TYPE2 - Commodity Curve Type

Data type: TB_CTY_CURVE_TYPE
Optional: Yes
Call by Reference: Yes

IV_EVAL_DATE - Evaluation Date

Data type: TV_AKTUDAT
Default: SY-DATUM
Optional: Yes
Call by Reference: Yes

IV_CURVE_START_DATE - Start Date of Commodity Price Curve

Data type: TAN_CURVE_START_DATE
Default: SY-DATUM
Optional: Yes
Call by Reference: Yes

IV_CURVE_END_DATE - End Date of Commodity Price Curve

Data type: TAN_CURVE_END_DATE
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for TCC_UI_COMPARE_CURVES Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_iv_eval_type  TYPE JBREVAL_D, "   
lv_iv_commodity1  TYPE TRCO_COMM_ID, "   
lv_iv_cc_type1  TYPE TB_CTY_CURVE_TYPE, "   
lv_iv_commodity2  TYPE TRCO_COMM_ID, "   
lv_iv_cc_type2  TYPE TB_CTY_CURVE_TYPE, "   
lv_iv_eval_date  TYPE TV_AKTUDAT, "   SY-DATUM
lv_iv_curve_start_date  TYPE TAN_CURVE_START_DATE, "   SY-DATUM
lv_iv_curve_end_date  TYPE TAN_CURVE_END_DATE. "   

  CALL FUNCTION 'TCC_UI_COMPARE_CURVES'  "Compare two Commodity Price Curves
    EXPORTING
         IV_EVAL_TYPE = lv_iv_eval_type
         IV_COMMODITY1 = lv_iv_commodity1
         IV_CC_TYPE1 = lv_iv_cc_type1
         IV_COMMODITY2 = lv_iv_commodity2
         IV_CC_TYPE2 = lv_iv_cc_type2
         IV_EVAL_DATE = lv_iv_eval_date
         IV_CURVE_START_DATE = lv_iv_curve_start_date
         IV_CURVE_END_DATE = lv_iv_curve_end_date
. " TCC_UI_COMPARE_CURVES




ABAP code using 7.40 inline data declarations to call FM TCC_UI_COMPARE_CURVES

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
DATA(ld_iv_eval_date) = SY-DATUM.
 
DATA(ld_iv_curve_start_date) = SY-DATUM.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!