SAP TR_CHECK_CHANGE_OF_DEVCLASS Function Module for









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

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



Function TR_CHECK_CHANGE_OF_DEVCLASS 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_CHECK_CHANGE_OF_DEVCLASS'"
EXPORTING
IV_PGMID = "
IV_OBJECT = "
IV_OBJ_NAME = "
IV_NEW_DEVCLASS = "
* IV_WBO_INTERNAL = ' ' "General Indicator

IMPORTING
EV_OBJECT_TRANSPORT = "
EV_EDIT_TASK = "
EV_FOREIGN_LOCK_ORDER = "
ES_TADIR = "

TABLES
* TT_E071 = "

EXCEPTIONS
NO_SYSTEMNAME = 1 TARGET_DEVC_DOES_NOT_FIT = 10 NO_SYSTEMTYPE = 2 WRONG_SYNTAX = 3 DEVCLASS_NOT_EXISTING = 4 CHANGE_ONLY_IN_ORIGINAL_SYSTEM = 5 DEVCLASS_NOT_ALLOWED = 6 WRONG_TRANSPORT_LAYER = 7 OBJECT_EXPORTED = 8 OBJECT_LOCKED = 9
.



IMPORTING Parameters details for TR_CHECK_CHANGE_OF_DEVCLASS

IV_PGMID -

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

IV_OBJECT -

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

IV_OBJ_NAME -

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

IV_NEW_DEVCLASS -

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

IV_WBO_INTERNAL - General Indicator

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

EXPORTING Parameters details for TR_CHECK_CHANGE_OF_DEVCLASS

EV_OBJECT_TRANSPORT -

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

EV_EDIT_TASK -

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

EV_FOREIGN_LOCK_ORDER -

Data type: E070-TRKORR
Optional: No
Call by Reference: Yes

ES_TADIR -

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

TABLES Parameters details for TR_CHECK_CHANGE_OF_DEVCLASS

TT_E071 -

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

EXCEPTIONS details

NO_SYSTEMNAME - System name indeterminable or invalid length

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

TARGET_DEVC_DOES_NOT_FIT -

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

NO_SYSTEMTYPE - System type cannot be determined

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

WRONG_SYNTAX -

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

DEVCLASS_NOT_EXISTING - Development class does not exist

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

CHANGE_ONLY_IN_ORIGINAL_SYSTEM -

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

DEVCLASS_NOT_ALLOWED -

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

WRONG_TRANSPORT_LAYER -

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

OBJECT_EXPORTED -

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

OBJECT_LOCKED -

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

Copy and paste ABAP code example for TR_CHECK_CHANGE_OF_DEVCLASS 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:
lt_tt_e071  TYPE STANDARD TABLE OF E071, "   
lv_iv_pgmid  TYPE TADIR-PGMID, "   
lv_no_systemname  TYPE TADIR, "   
lv_ev_object_transport  TYPE TRPARI-S_CHECKED, "   
lv_target_devc_does_not_fit  TYPE TRPARI, "   
lv_iv_object  TYPE TADIR-OBJECT, "   
lv_ev_edit_task  TYPE E070-TRKORR, "   
lv_no_systemtype  TYPE E070, "   
lv_iv_obj_name  TYPE TADIR-OBJ_NAME, "   
lv_wrong_syntax  TYPE TADIR, "   
lv_ev_foreign_lock_order  TYPE E070-TRKORR, "   
lv_es_tadir  TYPE TADIR, "   
lv_iv_new_devclass  TYPE TADIR-DEVCLASS, "   
lv_devclass_not_existing  TYPE TADIR, "   
lv_iv_wbo_internal  TYPE TRPARI-FLAG, "   ' '
lv_change_only_in_original_system  TYPE TRPARI, "   
lv_devclass_not_allowed  TYPE TRPARI, "   
lv_wrong_transport_layer  TYPE TRPARI, "   
lv_object_exported  TYPE TRPARI, "   
lv_object_locked  TYPE TRPARI. "   

  CALL FUNCTION 'TR_CHECK_CHANGE_OF_DEVCLASS'  "
    EXPORTING
         IV_PGMID = lv_iv_pgmid
         IV_OBJECT = lv_iv_object
         IV_OBJ_NAME = lv_iv_obj_name
         IV_NEW_DEVCLASS = lv_iv_new_devclass
         IV_WBO_INTERNAL = lv_iv_wbo_internal
    IMPORTING
         EV_OBJECT_TRANSPORT = lv_ev_object_transport
         EV_EDIT_TASK = lv_ev_edit_task
         EV_FOREIGN_LOCK_ORDER = lv_ev_foreign_lock_order
         ES_TADIR = lv_es_tadir
    TABLES
         TT_E071 = lt_tt_e071
    EXCEPTIONS
        NO_SYSTEMNAME = 1
        TARGET_DEVC_DOES_NOT_FIT = 10
        NO_SYSTEMTYPE = 2
        WRONG_SYNTAX = 3
        DEVCLASS_NOT_EXISTING = 4
        CHANGE_ONLY_IN_ORIGINAL_SYSTEM = 5
        DEVCLASS_NOT_ALLOWED = 6
        WRONG_TRANSPORT_LAYER = 7
        OBJECT_EXPORTED = 8
        OBJECT_LOCKED = 9
. " TR_CHECK_CHANGE_OF_DEVCLASS




ABAP code using 7.40 inline data declarations to call FM TR_CHECK_CHANGE_OF_DEVCLASS

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 PGMID FROM TADIR INTO @DATA(ld_iv_pgmid).
 
 
"SELECT single S_CHECKED FROM TRPARI INTO @DATA(ld_ev_object_transport).
 
 
"SELECT single OBJECT FROM TADIR INTO @DATA(ld_iv_object).
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_ev_edit_task).
 
 
"SELECT single OBJ_NAME FROM TADIR INTO @DATA(ld_iv_obj_name).
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_ev_foreign_lock_order).
 
 
"SELECT single DEVCLASS FROM TADIR INTO @DATA(ld_iv_new_devclass).
 
 
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_iv_wbo_internal).
DATA(ld_iv_wbo_internal) = ' '.
 
 
 
 
 
 


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!