SAP Function Modules

TR_EDIT_CHECK_OBJECTS_KEYS SAP Function module - Enter objects & keys in the request/tasks of the Workbench Organizer







TR_EDIT_CHECK_OBJECTS_KEYS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name TR_EDIT_CHECK_OBJECTS_KEYS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: STRD
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM TR_EDIT_CHECK_OBJECTS_KEYS - TR EDIT CHECK OBJECTS KEYS





CALL FUNCTION 'TR_EDIT_CHECK_OBJECTS_KEYS' "Enter objects & keys in the request/tasks of the Workbench Organizer
* EXPORTING
*   wi_order = ' '              " e070-trkorr   1st prio: Request proposal instead of request search
*   wi_with_dialog = ' '        " trpare-w_dialog  'R'-check dialog/'X'-full dialog
*   wi_obj_categogy_mix = 'X'   " trpari-s_checked  'X' - object category mix is allowed
*   wi_send_message = 'X'       " trpari-s_checked  'X' - send popup if error occurs
*   iv_no_show_option = ' '     " trpari-flag
*   iv_no_standard_editor = ' '  " trpari-flag
*   iv_externalps = ' '         " ctsproject-externalps
*   iv_externalid = ' '         " ctsproject-externalid
*   iv_no_ps = ' '              " trpari-flag   General Indicator
*   iv_read_activity_from_memory = 'X'  " trboolean  Boolean
*   iv_append_to_order = ' '    " trboolean
*   iv_insert_into_sbcsets = 'X'  " trboolean
*   iv_old_call =               " trboolean
*   it_e071k_str =              " e071k_strtyp
  IMPORTING
    we_order =                  " e070-trkorr   Selected request (transport request)
    we_task =                   " e070-trkorr   Selected request (correction/repair)
    we_objects_appendable =     " trpari-s_checked  dialog = ' ': objects were added
    ev_errnum =                 " trpari-trerrnumec  Further information: only internal
    ev_object_unlocked =        " trpari-s_checked  X' - objects unlocked
  TABLES
    wt_e071 =                   " ko200         Input/output table for objects to be edited
*   wt_e071k =                  " e071k         Input/output table for object keys to be edited
*   wt_tadir =                  " tadir         Output table for object catalog entries
  EXCEPTIONS
    CANCEL_EDIT_APPEND_ERROR_KEYS = 1  "        Abend, DB error request update for E071K
    CANCEL_EDIT_APPEND_ERROR_OBJCT = 2  "       Abend, DB error request update for E071
    CANCEL_EDIT_APPEND_ERROR_ORDER = 3  "       Abend, DB error request update for E070
    CANCEL_EDIT_BUT_SE01 = 4    "               Abend, only edit system object from SE01
    CANCEL_EDIT_NO_HEADER_OBJECT = 5  "         Abend, key (E071K) without objects (E071)
    CANCEL_EDIT_NO_ORDER_SELECTED = 6  "        Abend, request selection terminated
    CANCEL_EDIT_REPAIRED_OBJECT = 7  "          Abend, repair window terminated
    CANCEL_EDIT_SYSTEM_ERROR = 8  "             Abend, system parameter error
    CANCEL_EDIT_TADIR_MISSING = 9  "            Abend, Tadir entry missing (transp. attr.)
    CANCEL_EDIT_TADIR_UPDATE_ERROR = 10  "      Abend, error in DB update of TADIR
    CANCEL_EDIT_UNKNOWN_DEVCLASS = 11  "        Abend, Tdevc entry missing (development class)
    CANCEL_EDIT_UNKNOWN_OBJECTTYPE = 12  "      Abend, unknown object type
    SHOW_ONLY_CLOSED_SYSTEM = 13  "             Only display, system status 'not editable'
    SHOW_ONLY_CONSOLIDATION_LEVEL = 14  "       Only display, consolidation layer
    SHOW_ONLY_DDIC_IN_CUSTOMER_SYS = 15  "      Only display, DDIC in customer system
    SHOW_ONLY_DELIVERY_SYSTEM = 16  "           Only display, delivery system
    SHOW_ONLY_DIFFERENT_ORDERTYPES = 17  "      Only display, mixture local/consolidation request
    SHOW_ONLY_DIFFERENT_TASKTYPES = 18  "       Only display, mixture repair/corr. objects
    SHOW_ONLY_ENQUEUE_FAILED = 19  "            Only display, request lock failed
    SHOW_ONLY_GENERATED_OBJECT = 20  "          Only display, generated object
    SHOW_ONLY_ILL_LOCK = 21     "               Only display, TLock locks request external to system
    SHOW_ONLY_LOCK_ENQUEUE_FAILED = 22  "       Only display, TADIR/TLOCK lock rejected
    SHOW_ONLY_MIXED_ORDERS = 23  "              Only display, obj. locked in different requests
    SHOW_ONLY_MIX_LOCAL_TRANSP_OBJ = 24  "      Only display, local and transp. objects mixed
    SHOW_ONLY_NO_SHARED_REPAIR = 25  "          Only display, repair objects cannot be shared
    SHOW_ONLY_OBJECT_LOCKED = 26  "             Only display, objects locked external request
    SHOW_ONLY_REPAIRED_OBJECT = 27  "           Only display, repair object (no dialog/display)
    SHOW_ONLY_SHOW_CLIENT = 28  "               Only display, no change in logon client
    SHOW_ONLY_TADIR_MISSING = 29  "             Only display, Tadir entry missing (trans. own sc)
    SHOW_ONLY_UNKNOWN_DEVCLASS = 30  "          Only display, unknown development class
    CANCEL_EDIT_NO_CHECK_CALL = 31  "           Abend, first check-call before insert-call
    CANCEL_EDIT_CATEGORY_MIXTURE = 32  "        Abend, objects of different categories
    SHOW_ONLY_CLOSED_CLIENT = 33  "             Only display in this client !!
    SHOW_ONLY_CLOSED_ALE_OBJECT = 34  "         Only display unchangeable ALE object
    SHOW_ONLY_UNALLOWED_SUPERUSER = 35  "       Only display, no changes with user SAP*
    CANCEL_EDIT_CUSTOM_OBJ_AT_SAP = 36  "       Abend, customer object at SAP
    CANCEL_EDIT_ACCESS_DENIED = 37  "           Abend, no license to change the object
    SHOW_ONLY_NO_REPAIR_SYSTEM = 38  "          Only display, system change option, no repair system
    SHOW_ONLY_NO_LICENSE = 39   "               Only display, no license to change
    SHOW_ONLY_CENTRAL_BASIS = 40  "             Only display, SAP Basis system dictionary object
    SHOW_ONLY_USER_AFTER_ERROR = 41  "          After popup: display requested by user
    CANCEL_EDIT_USER_AFTER_ERROR = 42  "        Abend requested by user, no display
    SHOW_ONLY_OBJECT_NOT_PATCHABLE = 43  "      Obj. cannot be edited in Hot Package system
    .  "  TR_EDIT_CHECK_OBJECTS_KEYS

ABAP code example for Function Module TR_EDIT_CHECK_OBJECTS_KEYS





The ABAP code below is a full code listing to execute function module TR_EDIT_CHECK_OBJECTS_KEYS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_we_order  TYPE E070-TRKORR ,
ld_we_task  TYPE E070-TRKORR ,
ld_we_objects_appendable  TYPE TRPARI-S_CHECKED ,
ld_ev_errnum  TYPE TRPARI-TRERRNUMEC ,
ld_ev_object_unlocked  TYPE TRPARI-S_CHECKED ,
it_wt_e071  TYPE STANDARD TABLE OF KO200,"TABLES PARAM
wa_wt_e071  LIKE LINE OF it_wt_e071 ,
it_wt_e071k  TYPE STANDARD TABLE OF E071K,"TABLES PARAM
wa_wt_e071k  LIKE LINE OF it_wt_e071k ,
it_wt_tadir  TYPE STANDARD TABLE OF TADIR,"TABLES PARAM
wa_wt_tadir  LIKE LINE OF it_wt_tadir .


SELECT single TRKORR
FROM E070
INTO @DATA(ld_wi_order).


DATA(ld_wi_with_dialog) = some text here

DATA(ld_wi_obj_categogy_mix) = some text here

DATA(ld_wi_send_message) = some text here

DATA(ld_iv_no_show_option) = some text here

DATA(ld_iv_no_standard_editor) = some text here

SELECT single EXTERNALPS
FROM CTSPROJECT
INTO @DATA(ld_iv_externalps).


SELECT single EXTERNALID
FROM CTSPROJECT
INTO @DATA(ld_iv_externalid).


DATA(ld_iv_no_ps) = some text here
DATA(ld_iv_read_activity_from_memory) = 'Check type of data required'.
DATA(ld_iv_append_to_order) = 'Check type of data required'.
DATA(ld_iv_insert_into_sbcsets) = 'Check type of data required'.
DATA(ld_iv_old_call) = 'Check type of data required'.
DATA(ld_it_e071k_str) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_wt_e071 to it_wt_e071.

"populate fields of struture and append to itab
append wa_wt_e071k to it_wt_e071k.

"populate fields of struture and append to itab
append wa_wt_tadir to it_wt_tadir. . CALL FUNCTION 'TR_EDIT_CHECK_OBJECTS_KEYS' * EXPORTING * wi_order = ld_wi_order * wi_with_dialog = ld_wi_with_dialog * wi_obj_categogy_mix = ld_wi_obj_categogy_mix * wi_send_message = ld_wi_send_message * iv_no_show_option = ld_iv_no_show_option * iv_no_standard_editor = ld_iv_no_standard_editor * iv_externalps = ld_iv_externalps * iv_externalid = ld_iv_externalid * iv_no_ps = ld_iv_no_ps * iv_read_activity_from_memory = ld_iv_read_activity_from_memory * iv_append_to_order = ld_iv_append_to_order * iv_insert_into_sbcsets = ld_iv_insert_into_sbcsets * iv_old_call = ld_iv_old_call * it_e071k_str = ld_it_e071k_str IMPORTING we_order = ld_we_order we_task = ld_we_task we_objects_appendable = ld_we_objects_appendable ev_errnum = ld_ev_errnum ev_object_unlocked = ld_ev_object_unlocked TABLES wt_e071 = it_wt_e071 * wt_e071k = it_wt_e071k * wt_tadir = it_wt_tadir EXCEPTIONS CANCEL_EDIT_APPEND_ERROR_KEYS = 1 CANCEL_EDIT_APPEND_ERROR_OBJCT = 2 CANCEL_EDIT_APPEND_ERROR_ORDER = 3 CANCEL_EDIT_BUT_SE01 = 4 CANCEL_EDIT_NO_HEADER_OBJECT = 5 CANCEL_EDIT_NO_ORDER_SELECTED = 6 CANCEL_EDIT_REPAIRED_OBJECT = 7 CANCEL_EDIT_SYSTEM_ERROR = 8 CANCEL_EDIT_TADIR_MISSING = 9 CANCEL_EDIT_TADIR_UPDATE_ERROR = 10 CANCEL_EDIT_UNKNOWN_DEVCLASS = 11 CANCEL_EDIT_UNKNOWN_OBJECTTYPE = 12 SHOW_ONLY_CLOSED_SYSTEM = 13 SHOW_ONLY_CONSOLIDATION_LEVEL = 14 SHOW_ONLY_DDIC_IN_CUSTOMER_SYS = 15 SHOW_ONLY_DELIVERY_SYSTEM = 16 SHOW_ONLY_DIFFERENT_ORDERTYPES = 17 SHOW_ONLY_DIFFERENT_TASKTYPES = 18 SHOW_ONLY_ENQUEUE_FAILED = 19 SHOW_ONLY_GENERATED_OBJECT = 20 SHOW_ONLY_ILL_LOCK = 21 SHOW_ONLY_LOCK_ENQUEUE_FAILED = 22 SHOW_ONLY_MIXED_ORDERS = 23 SHOW_ONLY_MIX_LOCAL_TRANSP_OBJ = 24 SHOW_ONLY_NO_SHARED_REPAIR = 25 SHOW_ONLY_OBJECT_LOCKED = 26 SHOW_ONLY_REPAIRED_OBJECT = 27 SHOW_ONLY_SHOW_CLIENT = 28 SHOW_ONLY_TADIR_MISSING = 29 SHOW_ONLY_UNKNOWN_DEVCLASS = 30 CANCEL_EDIT_NO_CHECK_CALL = 31 CANCEL_EDIT_CATEGORY_MIXTURE = 32 SHOW_ONLY_CLOSED_CLIENT = 33 SHOW_ONLY_CLOSED_ALE_OBJECT = 34 SHOW_ONLY_UNALLOWED_SUPERUSER = 35 CANCEL_EDIT_CUSTOM_OBJ_AT_SAP = 36 CANCEL_EDIT_ACCESS_DENIED = 37 SHOW_ONLY_NO_REPAIR_SYSTEM = 38 SHOW_ONLY_NO_LICENSE = 39 SHOW_ONLY_CENTRAL_BASIS = 40 SHOW_ONLY_USER_AFTER_ERROR = 41 CANCEL_EDIT_USER_AFTER_ERROR = 42 SHOW_ONLY_OBJECT_NOT_PATCHABLE = 43 . " TR_EDIT_CHECK_OBJECTS_KEYS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 11. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 12. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 13. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 14. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 15. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 16. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 17. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 18. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 19. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 20. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 21. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 22. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 23. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 24. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 25. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 26. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 27. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 28. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 29. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 30. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 31. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 32. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 33. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 34. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 35. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 36. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 37. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 38. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 39. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 40. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 41. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 42. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 43. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_we_order  TYPE E070-TRKORR ,
ld_wi_order  TYPE E070-TRKORR ,
it_wt_e071  TYPE STANDARD TABLE OF KO200 ,
wa_wt_e071  LIKE LINE OF it_wt_e071,
ld_we_task  TYPE E070-TRKORR ,
ld_wi_with_dialog  TYPE TRPARE-W_DIALOG ,
it_wt_e071k  TYPE STANDARD TABLE OF E071K ,
wa_wt_e071k  LIKE LINE OF it_wt_e071k,
ld_we_objects_appendable  TYPE TRPARI-S_CHECKED ,
ld_wi_obj_categogy_mix  TYPE TRPARI-S_CHECKED ,
it_wt_tadir  TYPE STANDARD TABLE OF TADIR ,
wa_wt_tadir  LIKE LINE OF it_wt_tadir,
ld_ev_errnum  TYPE TRPARI-TRERRNUMEC ,
ld_wi_send_message  TYPE TRPARI-S_CHECKED ,
ld_ev_object_unlocked  TYPE TRPARI-S_CHECKED ,
ld_iv_no_show_option  TYPE TRPARI-FLAG ,
ld_iv_no_standard_editor  TYPE TRPARI-FLAG ,
ld_iv_externalps  TYPE CTSPROJECT-EXTERNALPS ,
ld_iv_externalid  TYPE CTSPROJECT-EXTERNALID ,
ld_iv_no_ps  TYPE TRPARI-FLAG ,
ld_iv_read_activity_from_memory  TYPE TRBOOLEAN ,
ld_iv_append_to_order  TYPE TRBOOLEAN ,
ld_iv_insert_into_sbcsets  TYPE TRBOOLEAN ,
ld_iv_old_call  TYPE TRBOOLEAN ,
ld_it_e071k_str  TYPE E071K_STRTYP .


SELECT single TRKORR
FROM E070
INTO ld_wi_order.


"populate fields of struture and append to itab
append wa_wt_e071 to it_wt_e071.

ld_wi_with_dialog = some text here

"populate fields of struture and append to itab
append wa_wt_e071k to it_wt_e071k.

ld_wi_obj_categogy_mix = some text here

"populate fields of struture and append to itab
append wa_wt_tadir to it_wt_tadir.

ld_wi_send_message = some text here

ld_iv_no_show_option = some text here

ld_iv_no_standard_editor = some text here

SELECT single EXTERNALPS
FROM CTSPROJECT
INTO ld_iv_externalps.


SELECT single EXTERNALID
FROM CTSPROJECT
INTO ld_iv_externalid.


ld_iv_no_ps = some text here
ld_iv_read_activity_from_memory = 'Check type of data required'.
ld_iv_append_to_order = 'Check type of data required'.
ld_iv_insert_into_sbcsets = 'Check type of data required'.
ld_iv_old_call = 'Check type of data required'.
ld_it_e071k_str = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TR_EDIT_CHECK_OBJECTS_KEYS or its description.