SAP K_REVALUATION_COSTS Function Module for









K_REVALUATION_COSTS is a standard k revaluation costs 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 k revaluation costs FM, simply by entering the name K_REVALUATION_COSTS into the relevant SAP transaction such as SE37 or SE38.

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



Function K_REVALUATION_COSTS 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 'K_REVALUATION_COSTS'"
EXPORTING
I_KOKRS = "
I_FROM = "
I_TO = "
I_SCHEDMAN_KEY = "
I_DIALOG = "Identifier for overhead calculation in dialog
I_GJAHR = "
I_VERSN = "
I_SIGN_AP = "
I_STNO_FLG = "
I_BOOK_FLG = "
I_FINISH_POSTING = "
I_RATMI = "
I_PERIODS = "

TABLES
PT_OBJNR = "
PT_PERIODS = "
* PT_COSSA = "
* PT_COAIB = "
* PT_COEJA = "
* PT_COIOB = "
.



IMPORTING Parameters details for K_REVALUATION_COSTS

I_KOKRS -

Data type: AUAK-KOKRS
Optional: No
Call by Reference: No ( called with pass by value option)

I_FROM -

Data type: RKAUF-FROM
Optional: No
Call by Reference: No ( called with pass by value option)

I_TO -

Data type: RKAUF-TO
Optional: No
Call by Reference: No ( called with pass by value option)

I_SCHEDMAN_KEY -

Data type: SCHEDMAN_KEY
Optional: No
Call by Reference: No ( called with pass by value option)

I_DIALOG - Identifier for overhead calculation in dialog

Data type: RKAUF-DIALOG
Optional: No
Call by Reference: No ( called with pass by value option)

I_GJAHR -

Data type: AUAK-GJAHR
Optional: No
Call by Reference: No ( called with pass by value option)

I_VERSN -

Data type: COSSA-VERSN
Optional: No
Call by Reference: No ( called with pass by value option)

I_SIGN_AP -

Data type: RKAUF-SIGN_AP
Optional: No
Call by Reference: No ( called with pass by value option)

I_STNO_FLG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

I_BOOK_FLG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

I_FINISH_POSTING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

I_RATMI -

Data type: TKA07-RATMI
Optional: No
Call by Reference: No ( called with pass by value option)

I_PERIODS -

Data type: RKAUF-PERIODS
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for K_REVALUATION_COSTS

PT_OBJNR -

Data type: IONRB
Optional: No
Call by Reference: No ( called with pass by value option)

PT_PERIODS -

Data type: PERIODS
Optional: No
Call by Reference: No ( called with pass by value option)

PT_COSSA -

Data type: COSSA
Optional: Yes
Call by Reference: No ( called with pass by value option)

PT_COAIB -

Data type: COAIB
Optional: Yes
Call by Reference: No ( called with pass by value option)

PT_COEJA -

Data type: COEJA
Optional: Yes
Call by Reference: No ( called with pass by value option)

PT_COIOB -

Data type: COIOB
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for K_REVALUATION_COSTS 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_i_kokrs  TYPE AUAK-KOKRS, "   
lt_pt_objnr  TYPE STANDARD TABLE OF IONRB, "   
lv_i_from  TYPE RKAUF-FROM, "   
lv_i_to  TYPE RKAUF-TO, "   
lv_i_schedman_key  TYPE SCHEDMAN_KEY, "   
lv_i_dialog  TYPE RKAUF-DIALOG, "   
lv_i_gjahr  TYPE AUAK-GJAHR, "   
lt_pt_periods  TYPE STANDARD TABLE OF PERIODS, "   
lv_i_versn  TYPE COSSA-VERSN, "   
lt_pt_cossa  TYPE STANDARD TABLE OF COSSA, "   
lt_pt_coaib  TYPE STANDARD TABLE OF COAIB, "   
lv_i_sign_ap  TYPE RKAUF-SIGN_AP, "   
lt_pt_coeja  TYPE STANDARD TABLE OF COEJA, "   
lv_i_stno_flg  TYPE COEJA, "   
lt_pt_coiob  TYPE STANDARD TABLE OF COIOB, "   
lv_i_book_flg  TYPE COIOB, "   
lv_i_finish_posting  TYPE COIOB, "   
lv_i_ratmi  TYPE TKA07-RATMI, "   
lv_i_periods  TYPE RKAUF-PERIODS. "   

  CALL FUNCTION 'K_REVALUATION_COSTS'  "
    EXPORTING
         I_KOKRS = lv_i_kokrs
         I_FROM = lv_i_from
         I_TO = lv_i_to
         I_SCHEDMAN_KEY = lv_i_schedman_key
         I_DIALOG = lv_i_dialog
         I_GJAHR = lv_i_gjahr
         I_VERSN = lv_i_versn
         I_SIGN_AP = lv_i_sign_ap
         I_STNO_FLG = lv_i_stno_flg
         I_BOOK_FLG = lv_i_book_flg
         I_FINISH_POSTING = lv_i_finish_posting
         I_RATMI = lv_i_ratmi
         I_PERIODS = lv_i_periods
    TABLES
         PT_OBJNR = lt_pt_objnr
         PT_PERIODS = lt_pt_periods
         PT_COSSA = lt_pt_cossa
         PT_COAIB = lt_pt_coaib
         PT_COEJA = lt_pt_coeja
         PT_COIOB = lt_pt_coiob
. " K_REVALUATION_COSTS




ABAP code using 7.40 inline data declarations to call FM K_REVALUATION_COSTS

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 KOKRS FROM AUAK INTO @DATA(ld_i_kokrs).
 
 
"SELECT single FROM FROM RKAUF INTO @DATA(ld_i_from).
 
"SELECT single TO FROM RKAUF INTO @DATA(ld_i_to).
 
 
"SELECT single DIALOG FROM RKAUF INTO @DATA(ld_i_dialog).
 
"SELECT single GJAHR FROM AUAK INTO @DATA(ld_i_gjahr).
 
 
"SELECT single VERSN FROM COSSA INTO @DATA(ld_i_versn).
 
 
 
"SELECT single SIGN_AP FROM RKAUF INTO @DATA(ld_i_sign_ap).
 
 
 
 
 
 
"SELECT single RATMI FROM TKA07 INTO @DATA(ld_i_ratmi).
 
"SELECT single PERIODS FROM RKAUF INTO @DATA(ld_i_periods).
 


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!