SAP TP_VALUATION_AUTHORITY Function Module for









TP_VALUATION_AUTHORITY is a standard tp valuation authority 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 tp valuation authority FM, simply by entering the name TP_VALUATION_AUTHORITY into the relevant SAP transaction such as SE37 or SE38.

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



Function TP_VALUATION_AUTHORITY 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 'TP_VALUATION_AUTHORITY'"
EXPORTING
* I_KOKRS = "
* I_VALUTYP = "
* I_BUKRS = "
* I_WERKS = "
* I_BWKEY = "
* I_VERSN = "
* I_CVTYP = "
* I_ACTVT = '03' "

IMPORTING
E_XAUTH = "

EXCEPTIONS
KOKRS_FINDING_ERROR = 1 VALUTYP_FINDING_ERROR = 2 INSUFFICIENT_INPUT_FOR_KOKRS = 3 INSUFFICIENT_INPUT_FOR_VALUTYP = 4 ACTIVITY_NOT_ALLOWED = 5
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLKEFP_001 Authorization Check: Area of Responsiblility

IMPORTING Parameters details for TP_VALUATION_AUTHORITY

I_KOKRS -

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

I_VALUTYP -

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

I_BUKRS -

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

I_WERKS -

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

I_BWKEY -

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

I_VERSN -

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

I_CVTYP -

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

I_ACTVT -

Data type: TACTZ-ACTVT
Default: '03'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TP_VALUATION_AUTHORITY

E_XAUTH -

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

EXCEPTIONS details

KOKRS_FINDING_ERROR -

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

VALUTYP_FINDING_ERROR -

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

INSUFFICIENT_INPUT_FOR_KOKRS -

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

INSUFFICIENT_INPUT_FOR_VALUTYP -

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

ACTIVITY_NOT_ALLOWED -

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

Copy and paste ABAP code example for TP_VALUATION_AUTHORITY 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_e_xauth  TYPE STRING, "   
lv_i_kokrs  TYPE TKA01-KOKRS, "   
lv_kokrs_finding_error  TYPE TKA01, "   
lv_i_valutyp  TYPE TCVAL-VALUTYP, "   
lv_valutyp_finding_error  TYPE TCVAL, "   
lv_i_bukrs  TYPE T001-BUKRS, "   
lv_insufficient_input_for_kokrs  TYPE T001, "   
lv_i_werks  TYPE T001W-WERKS, "   
lv_insufficient_input_for_valutyp  TYPE T001W, "   
lv_i_bwkey  TYPE T001W-BWKEY, "   
lv_activity_not_allowed  TYPE T001W, "   
lv_i_versn  TYPE TKA09-VERSN, "   
lv_i_cvtyp  TYPE TCVAL-CVTYP, "   
lv_i_actvt  TYPE TACTZ-ACTVT. "   '03'

  CALL FUNCTION 'TP_VALUATION_AUTHORITY'  "
    EXPORTING
         I_KOKRS = lv_i_kokrs
         I_VALUTYP = lv_i_valutyp
         I_BUKRS = lv_i_bukrs
         I_WERKS = lv_i_werks
         I_BWKEY = lv_i_bwkey
         I_VERSN = lv_i_versn
         I_CVTYP = lv_i_cvtyp
         I_ACTVT = lv_i_actvt
    IMPORTING
         E_XAUTH = lv_e_xauth
    EXCEPTIONS
        KOKRS_FINDING_ERROR = 1
        VALUTYP_FINDING_ERROR = 2
        INSUFFICIENT_INPUT_FOR_KOKRS = 3
        INSUFFICIENT_INPUT_FOR_VALUTYP = 4
        ACTIVITY_NOT_ALLOWED = 5
. " TP_VALUATION_AUTHORITY




ABAP code using 7.40 inline data declarations to call FM TP_VALUATION_AUTHORITY

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 TKA01 INTO @DATA(ld_i_kokrs).
 
 
"SELECT single VALUTYP FROM TCVAL INTO @DATA(ld_i_valutyp).
 
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs).
 
 
"SELECT single WERKS FROM T001W INTO @DATA(ld_i_werks).
 
 
"SELECT single BWKEY FROM T001W INTO @DATA(ld_i_bwkey).
 
 
"SELECT single VERSN FROM TKA09 INTO @DATA(ld_i_versn).
 
"SELECT single CVTYP FROM TCVAL INTO @DATA(ld_i_cvtyp).
 
"SELECT single ACTVT FROM TACTZ INTO @DATA(ld_i_actvt).
DATA(ld_i_actvt) = '03'.
 


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!