SAP TR_CHANGE_OBJS_DEVC Function Module for









TR_CHANGE_OBJS_DEVC is a standard tr change objs devc 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 change objs devc FM, simply by entering the name TR_CHANGE_OBJS_DEVC 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_CHANGE_OBJS_DEVC 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_CHANGE_OBJS_DEVC'"
EXPORTING
IT_TADIR = "
IV_TARGET_DEVC = "Target Package
* IV_COMPLETE_ONLY = ' ' "
* IV_TASK = ' ' "
* IV_AUTHOR = ' ' "

IMPORTING
ET_ERROR = "
EV_ERROR_STATUS = "Error Status
ET_TADIR_NEW = "
ET_KORR_ENTRIES = "
EV_KORRNUM = "

EXCEPTIONS
OBJECT_INDEP_ERROR = 1 OBJECT_DEP_ERROR = 2 USER_CANCEL = 3
.



IMPORTING Parameters details for TR_CHANGE_OBJS_DEVC

IT_TADIR -

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

IV_TARGET_DEVC - Target Package

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

IV_COMPLETE_ONLY -

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

IV_TASK -

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

IV_AUTHOR -

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

EXPORTING Parameters details for TR_CHANGE_OBJS_DEVC

ET_ERROR -

Data type: TRTAD_XDEVC_ERRORS
Optional: No
Call by Reference: Yes

EV_ERROR_STATUS - Error Status

Data type: TRPARI-S_CHECKED
Optional: No
Call by Reference: Yes

ET_TADIR_NEW -

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

ET_KORR_ENTRIES -

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

EV_KORRNUM -

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

EXCEPTIONS details

OBJECT_INDEP_ERROR -

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

OBJECT_DEP_ERROR -

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

USER_CANCEL - Cancellation by user

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

Copy and paste ABAP code example for TR_CHANGE_OBJS_DEVC 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_et_error  TYPE TRTAD_XDEVC_ERRORS, "   
lv_it_tadir  TYPE TRTAD_KEYS, "   
lv_object_indep_error  TYPE TRTAD_KEYS, "   
lv_iv_target_devc  TYPE TDEVC-DEVCLASS, "   
lv_ev_error_status  TYPE TRPARI-S_CHECKED, "   
lv_object_dep_error  TYPE TRPARI, "   
lv_user_cancel  TYPE TRPARI, "   
lv_et_tadir_new  TYPE TRTAD_TADS, "   
lv_iv_complete_only  TYPE TRPARI-FLAG, "   ' '
lv_iv_task  TYPE E070-TRKORR, "   ' '
lv_et_korr_entries  TYPE TRTAD_E071, "   
lv_iv_author  TYPE TADIR-AUTHOR, "   ' '
lv_ev_korrnum  TYPE E070-TRKORR. "   

  CALL FUNCTION 'TR_CHANGE_OBJS_DEVC'  "
    EXPORTING
         IT_TADIR = lv_it_tadir
         IV_TARGET_DEVC = lv_iv_target_devc
         IV_COMPLETE_ONLY = lv_iv_complete_only
         IV_TASK = lv_iv_task
         IV_AUTHOR = lv_iv_author
    IMPORTING
         ET_ERROR = lv_et_error
         EV_ERROR_STATUS = lv_ev_error_status
         ET_TADIR_NEW = lv_et_tadir_new
         ET_KORR_ENTRIES = lv_et_korr_entries
         EV_KORRNUM = lv_ev_korrnum
    EXCEPTIONS
        OBJECT_INDEP_ERROR = 1
        OBJECT_DEP_ERROR = 2
        USER_CANCEL = 3
. " TR_CHANGE_OBJS_DEVC




ABAP code using 7.40 inline data declarations to call FM TR_CHANGE_OBJS_DEVC

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 DEVCLASS FROM TDEVC INTO @DATA(ld_iv_target_devc).
 
"SELECT single S_CHECKED FROM TRPARI INTO @DATA(ld_ev_error_status).
 
 
 
 
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_iv_complete_only).
DATA(ld_iv_complete_only) = ' '.
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_iv_task).
DATA(ld_iv_task) = ' '.
 
 
"SELECT single AUTHOR FROM TADIR INTO @DATA(ld_iv_author).
DATA(ld_iv_author) = ' '.
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_ev_korrnum).
 


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!