SAP TR_PACKAGE_CHECK_VALUES Function Module for









TR_PACKAGE_CHECK_VALUES is a standard tr package check values 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 tr package check values FM, simply by entering the name TR_PACKAGE_CHECK_VALUES into the relevant SAP transaction such as SE37 or SE38.

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



Function TR_PACKAGE_CHECK_VALUES 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 'TR_PACKAGE_CHECK_VALUES'"
EXPORTING
IV_PACKAGE = "
* IV_OLD_PACKAGE = ' ' "
IV_DLVUNIT = "
* IV_OLD_DLVUNIT = ' ' "
IV_LAYER = "
* IV_OLD_LAYER = ' ' "
IV_KORRFLAG = "
* IV_WITHOUT_AUTHORITY_CHECK = ' ' "Boolean

EXCEPTIONS
INVALID_DLVUNIT = 1 INVALID_LAYER = 2 INVALID_KORRFLAG = 3 INVALID_DEVCLASS = 4
.



IMPORTING Parameters details for TR_PACKAGE_CHECK_VALUES

IV_PACKAGE -

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

IV_OLD_PACKAGE -

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

IV_DLVUNIT -

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

IV_OLD_DLVUNIT -

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

IV_LAYER -

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

IV_OLD_LAYER -

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

IV_KORRFLAG -

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

IV_WITHOUT_AUTHORITY_CHECK - Boolean

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

EXCEPTIONS details

INVALID_DLVUNIT -

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

INVALID_LAYER -

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

INVALID_KORRFLAG -

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

INVALID_DEVCLASS -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TR_PACKAGE_CHECK_VALUES 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_package  TYPE DEVCLASS, "   
lv_invalid_dlvunit  TYPE DEVCLASS, "   
lv_invalid_layer  TYPE DEVCLASS, "   
lv_iv_old_package  TYPE DEVCLASS, "   ' '
lv_iv_dlvunit  TYPE DLVUNIT, "   
lv_invalid_korrflag  TYPE DLVUNIT, "   
lv_iv_old_dlvunit  TYPE DLVUNIT, "   ' '
lv_invalid_devclass  TYPE DLVUNIT, "   
lv_iv_layer  TYPE DEVLAYER, "   
lv_iv_old_layer  TYPE DEVLAYER, "   ' '
lv_iv_korrflag  TYPE KORRFLAG, "   
lv_iv_without_authority_check  TYPE TRBOOLEAN. "   ' '

  CALL FUNCTION 'TR_PACKAGE_CHECK_VALUES'  "
    EXPORTING
         IV_PACKAGE = lv_iv_package
         IV_OLD_PACKAGE = lv_iv_old_package
         IV_DLVUNIT = lv_iv_dlvunit
         IV_OLD_DLVUNIT = lv_iv_old_dlvunit
         IV_LAYER = lv_iv_layer
         IV_OLD_LAYER = lv_iv_old_layer
         IV_KORRFLAG = lv_iv_korrflag
         IV_WITHOUT_AUTHORITY_CHECK = lv_iv_without_authority_check
    EXCEPTIONS
        INVALID_DLVUNIT = 1
        INVALID_LAYER = 2
        INVALID_KORRFLAG = 3
        INVALID_DEVCLASS = 4
. " TR_PACKAGE_CHECK_VALUES




ABAP code using 7.40 inline data declarations to call FM TR_PACKAGE_CHECK_VALUES

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_old_package) = ' '.
 
 
 
DATA(ld_iv_old_dlvunit) = ' '.
 
 
 
DATA(ld_iv_old_layer) = ' '.
 
 
DATA(ld_iv_without_authority_check) = ' '.
 


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!