SAP KKEK_PRICE_CURRENCY_CONVERT Function Module for
KKEK_PRICE_CURRENCY_CONVERT is a standard kkek price currency convert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 kkek price currency convert FM, simply by entering the name KKEK_PRICE_CURRENCY_CONVERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: KKE6
Program Name: SAPLKKE6
Main Program: SAPLKKE6
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function KKEK_PRICE_CURRENCY_CONVERT 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 'KKEK_PRICE_CURRENCY_CONVERT'".
EXPORTING
CC_FLG_INPUT_CURR = "
CC_INPUT_PRICE_PW = "
CC_INPUT_PRICE_FIX_PW = "
CC_INPUT_PEINH_PW = "
* MESSAGE_ON_SCREEN = ' ' "
CC_FLG_PARALLEL_CURR = "
CC_KHS1 = "
CC_POSNR = "
CC_ITEM_CURRENCY = "
CC_INPUT_PRICE = "
CC_INPUT_PRICE_FIX = "
CC_INPUT_PEINH = "
CC_INPUT_CURR_PW = "
IMPORTING
CC_OUTPUT_PRICE_KW = "Value in Group Currency
CC_OUTPUT_CURR_PW = "
CC_OUTPUT_PRICE_FIX_KW = "
CC_OUTPUT_PEINH_KW = "
CC_OUTPUT_PRICE_OW = "Value in Object Currency
CC_OUTPUT_PRICE_FIX_OW = "
CC_OUTPUT_PEINH_OW = "
CC_OUTPUT_PRICE_TW = "Value in Transaction Currency
CC_OUTPUT_PRICE_FIX_TW = "
CC_OUTPUT_PEINH_TW = "
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for KKEK_PRICE_CURRENCY_CONVERT
CC_FLG_INPUT_CURR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CC_INPUT_PRICE_PW -
Data type: KIS1-GPREISOptional: No
Call by Reference: No ( called with pass by value option)
CC_INPUT_PRICE_FIX_PW -
Data type: KIS1-FPREISOptional: No
Call by Reference: No ( called with pass by value option)
CC_INPUT_PEINH_PW -
Data type: KIS1-PEINHOptional: No
Call by Reference: No ( called with pass by value option)
MESSAGE_ON_SCREEN -
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CC_FLG_PARALLEL_CURR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CC_KHS1 -
Data type: KHS1Optional: No
Call by Reference: No ( called with pass by value option)
CC_POSNR -
Data type: KIS1-POSNROptional: No
Call by Reference: No ( called with pass by value option)
CC_ITEM_CURRENCY -
Data type: KIS1-FWAEROptional: No
Call by Reference: No ( called with pass by value option)
CC_INPUT_PRICE -
Data type: KIS1-GPREISOptional: No
Call by Reference: No ( called with pass by value option)
CC_INPUT_PRICE_FIX -
Data type: KIS1-FPREISOptional: No
Call by Reference: No ( called with pass by value option)
CC_INPUT_PEINH -
Data type: KIS1-PEINHOptional: No
Call by Reference: No ( called with pass by value option)
CC_INPUT_CURR_PW -
Data type: KIS1-FWAEROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for KKEK_PRICE_CURRENCY_CONVERT
CC_OUTPUT_PRICE_KW - Value in Group Currency
Data type: KIS1-GPREISOptional: No
Call by Reference: No ( called with pass by value option)
CC_OUTPUT_CURR_PW -
Data type: KIS1-FWAEROptional: No
Call by Reference: No ( called with pass by value option)
CC_OUTPUT_PRICE_FIX_KW -
Data type: KIS1-FPREISOptional: No
Call by Reference: No ( called with pass by value option)
CC_OUTPUT_PEINH_KW -
Data type: KIS1-PEINHOptional: No
Call by Reference: No ( called with pass by value option)
CC_OUTPUT_PRICE_OW - Value in Object Currency
Data type: KIS1-GPREISOptional: No
Call by Reference: No ( called with pass by value option)
CC_OUTPUT_PRICE_FIX_OW -
Data type: KIS1-FPREISOptional: No
Call by Reference: No ( called with pass by value option)
CC_OUTPUT_PEINH_OW -
Data type: KIS1-PEINHOptional: No
Call by Reference: No ( called with pass by value option)
CC_OUTPUT_PRICE_TW - Value in Transaction Currency
Data type: KIS1-GPREISOptional: No
Call by Reference: No ( called with pass by value option)
CC_OUTPUT_PRICE_FIX_TW -
Data type: KIS1-FPREISOptional: No
Call by Reference: No ( called with pass by value option)
CC_OUTPUT_PEINH_TW -
Data type: KIS1-PEINHOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for KKEK_PRICE_CURRENCY_CONVERT 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_error | TYPE STRING, " | |||
lv_cc_flg_input_curr | TYPE STRING, " | |||
lv_cc_output_price_kw | TYPE KIS1-GPREIS, " | |||
lv_cc_input_price_pw | TYPE KIS1-GPREIS, " | |||
lv_cc_output_curr_pw | TYPE KIS1-FWAER, " | |||
lv_cc_input_price_fix_pw | TYPE KIS1-FPREIS, " | |||
lv_cc_input_peinh_pw | TYPE KIS1-PEINH, " | |||
lv_message_on_screen | TYPE XFLAG, " SPACE | |||
lv_cc_flg_parallel_curr | TYPE XFLAG, " | |||
lv_cc_output_price_fix_kw | TYPE KIS1-FPREIS, " | |||
lv_cc_khs1 | TYPE KHS1, " | |||
lv_cc_output_peinh_kw | TYPE KIS1-PEINH, " | |||
lv_cc_posnr | TYPE KIS1-POSNR, " | |||
lv_cc_output_price_ow | TYPE KIS1-GPREIS, " | |||
lv_cc_item_currency | TYPE KIS1-FWAER, " | |||
lv_cc_output_price_fix_ow | TYPE KIS1-FPREIS, " | |||
lv_cc_input_price | TYPE KIS1-GPREIS, " | |||
lv_cc_output_peinh_ow | TYPE KIS1-PEINH, " | |||
lv_cc_input_price_fix | TYPE KIS1-FPREIS, " | |||
lv_cc_output_price_tw | TYPE KIS1-GPREIS, " | |||
lv_cc_input_peinh | TYPE KIS1-PEINH, " | |||
lv_cc_output_price_fix_tw | TYPE KIS1-FPREIS, " | |||
lv_cc_input_curr_pw | TYPE KIS1-FWAER, " | |||
lv_cc_output_peinh_tw | TYPE KIS1-PEINH. " |
  CALL FUNCTION 'KKEK_PRICE_CURRENCY_CONVERT' " |
EXPORTING | ||
CC_FLG_INPUT_CURR | = lv_cc_flg_input_curr | |
CC_INPUT_PRICE_PW | = lv_cc_input_price_pw | |
CC_INPUT_PRICE_FIX_PW | = lv_cc_input_price_fix_pw | |
CC_INPUT_PEINH_PW | = lv_cc_input_peinh_pw | |
MESSAGE_ON_SCREEN | = lv_message_on_screen | |
CC_FLG_PARALLEL_CURR | = lv_cc_flg_parallel_curr | |
CC_KHS1 | = lv_cc_khs1 | |
CC_POSNR | = lv_cc_posnr | |
CC_ITEM_CURRENCY | = lv_cc_item_currency | |
CC_INPUT_PRICE | = lv_cc_input_price | |
CC_INPUT_PRICE_FIX | = lv_cc_input_price_fix | |
CC_INPUT_PEINH | = lv_cc_input_peinh | |
CC_INPUT_CURR_PW | = lv_cc_input_curr_pw | |
IMPORTING | ||
CC_OUTPUT_PRICE_KW | = lv_cc_output_price_kw | |
CC_OUTPUT_CURR_PW | = lv_cc_output_curr_pw | |
CC_OUTPUT_PRICE_FIX_KW | = lv_cc_output_price_fix_kw | |
CC_OUTPUT_PEINH_KW | = lv_cc_output_peinh_kw | |
CC_OUTPUT_PRICE_OW | = lv_cc_output_price_ow | |
CC_OUTPUT_PRICE_FIX_OW | = lv_cc_output_price_fix_ow | |
CC_OUTPUT_PEINH_OW | = lv_cc_output_peinh_ow | |
CC_OUTPUT_PRICE_TW | = lv_cc_output_price_tw | |
CC_OUTPUT_PRICE_FIX_TW | = lv_cc_output_price_fix_tw | |
CC_OUTPUT_PEINH_TW | = lv_cc_output_peinh_tw | |
EXCEPTIONS | ||
ERROR = 1 | ||
. " KKEK_PRICE_CURRENCY_CONVERT |
ABAP code using 7.40 inline data declarations to call FM KKEK_PRICE_CURRENCY_CONVERT
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."SELECT single GPREIS FROM KIS1 INTO @DATA(ld_cc_output_price_kw). | ||||
"SELECT single GPREIS FROM KIS1 INTO @DATA(ld_cc_input_price_pw). | ||||
"SELECT single FWAER FROM KIS1 INTO @DATA(ld_cc_output_curr_pw). | ||||
"SELECT single FPREIS FROM KIS1 INTO @DATA(ld_cc_input_price_fix_pw). | ||||
"SELECT single PEINH FROM KIS1 INTO @DATA(ld_cc_input_peinh_pw). | ||||
DATA(ld_message_on_screen) | = ' '. | |||
"SELECT single FPREIS FROM KIS1 INTO @DATA(ld_cc_output_price_fix_kw). | ||||
"SELECT single PEINH FROM KIS1 INTO @DATA(ld_cc_output_peinh_kw). | ||||
"SELECT single POSNR FROM KIS1 INTO @DATA(ld_cc_posnr). | ||||
"SELECT single GPREIS FROM KIS1 INTO @DATA(ld_cc_output_price_ow). | ||||
"SELECT single FWAER FROM KIS1 INTO @DATA(ld_cc_item_currency). | ||||
"SELECT single FPREIS FROM KIS1 INTO @DATA(ld_cc_output_price_fix_ow). | ||||
"SELECT single GPREIS FROM KIS1 INTO @DATA(ld_cc_input_price). | ||||
"SELECT single PEINH FROM KIS1 INTO @DATA(ld_cc_output_peinh_ow). | ||||
"SELECT single FPREIS FROM KIS1 INTO @DATA(ld_cc_input_price_fix). | ||||
"SELECT single GPREIS FROM KIS1 INTO @DATA(ld_cc_output_price_tw). | ||||
"SELECT single PEINH FROM KIS1 INTO @DATA(ld_cc_input_peinh). | ||||
"SELECT single FPREIS FROM KIS1 INTO @DATA(ld_cc_output_price_fix_tw). | ||||
"SELECT single FWAER FROM KIS1 INTO @DATA(ld_cc_input_curr_pw). | ||||
"SELECT single PEINH FROM KIS1 INTO @DATA(ld_cc_output_peinh_tw). | ||||
Search for further information about these or an SAP related objects