SAP Function TR_TADIR_INTERFACE - Create/change/delete/read object directory entry

Parameter Reference Type Length Default Optional Text
IV_DELFLAG TADIR-DELFLAG C 1 ' ' X Deletion Flag
IV_NO_PAK_CHECK TADIR-PAKNOCHECK C 1 ' ' X Exception Indicator for Package Check
IV_OBJ_STABILITY TADIR-OBJSTABLTY C 1 ' ' X Release Status of a Development Object
IV_SET_EDTFLAG TADIR-EDTFLAG C 1 ' ' X Editing lock for standard editors
IV_TRANSL_TECH_TEXT TADIR-TRANSLTTXT C 1 ' ' X Translate Technical Texts into Development Language
WI_DELETE_TADIR_ENTRY TRPARI-S_CHECKED C 1 ' ' X X - delete object directory entry
WI_READ_ONLY TRPARI-S_CHECKED C 1 ' ' X Read object directory entry
WI_REMOVE_GENFLAG TRPARI-S_CHECKED C 1 ' ' X X - delete generation flag
WI_REMOVE_REPAIR_FLAG TRPARI-S_CHECKED C 1 ' ' X X - reset repair flag
WI_SET_GENFLAG TADIR-GENFLAG C 1 ' ' X Set generation flag (see documentation)
WI_SET_REPAIR_FLAG TRPARI-S_CHECKED C 1 ' ' X X - set repair flag
WI_TADIR_AUTHOR TADIR-AUTHOR C 12 ' ' X Input for TADIR field AUTHOR
WI_TADIR_CHECK_CFG TADIR-CHECK_CFG C 30 ' ' X SCC: Check Configuration
WI_TADIR_CHECK_DATE TADIR-CHECK_DATE D 8 '' X SCC: Check Date
WI_TADIR_CPROJECT TADIR-CPROJECT C 8 ' ' X Transport Organizer internal
WI_TADIR_DEVCLASS TADIR-DEVCLASS C 30 ' ' X Input for TADIR field DEVCLASS
WI_TADIR_KORRNUM TADIR-KORRNUM C 10 ' ' X Transport Organizer internal
WI_TADIR_MASTERLANG TADIR-MASTERLANG C 1 ' ' X Input for TADIR field MASTERLANG
WI_TADIR_OBJECT TADIR-OBJECT C 4 Input for TADIR field OBJECT
WI_TADIR_OBJ_NAME TADIR-OBJ_NAME C 40 Input for TADIR field OBJ_NAME
WI_TADIR_PGMID TADIR-PGMID C 4 Input for TADIR field PGMID
WI_TADIR_SRCSYSTEM TADIR-SRCSYSTEM C 10 ' ' X Input for TADIR field SRCSYSTEM
WI_TADIR_VERSID TADIR-VERSID C 20 ' ' X Transport Organizer internal
WI_TEST_MODUS TRPARI-S_CHECKED C 1 'X' X X - simulation mode (no update)

Parameter Reference Type Length Text
NEW_GTADIR_ENTRY GTADIR u 177 Entry in the global TADIR
NEW_TADIR_ENTRY TADIR u 232 Modified TADIR entry

Exception Text
CHANGE_OF_CLASS_NOT_ALLOWED
DEVCLASS_NOT_EXISTING Package unknown
DEVCLASS_NOT_SPECIFIED Package not specified
GTADIR_NOT_REACHED The GTADIR cannot be accessed
LOC_PRIV_OBJS_NO_REPAIR No repair to local-private objects
MASTERLANGUAGE_NOT_SPECIFIED Master language not specified
NO_AUTHORIZATION_TO_DELETE No permission to delete
NO_CHANGE_FROM_SAP_TO_TMP Do not switch SAP objects to customer development class
NO_MODIFICATION_OF_HEAD_SYST Modification of HEAD-SYST entry not allowed
NO_SYSTEMNAME System name not found
NO_SYSTEMTYPE System type not defined
OBJECT_EXISTS_GLOBAL Object exists globally
OBJECT_EXISTS_LOCAL Object exists locally
OBJECT_IS_DISTRIBUTED Object is distributed
OBJECT_LOCKED_FOR_ORDER
OBJECT_RESERVED_FOR_DEVCLASS Object reserved for name range
OBJ_SPECIFICATION_NOT_UNIQUE Object specification for import is not sufficient
ORDER_MISSING Repair request was not transferred
ORIGINAL_SYSTEM_CONFLICT Object already exists in another system
PGMID_OBJECT_NOT_ALLOWED PGMID entry not permitted
SIMULTANIOUS_SET_REMOVE_REPAIR Repair flag set/reset simultaneously
SPECIFY_OWNER_UNIQUE
TADIR_ENTRY_ILL_TYPE Transferred TADIR key not compatible with E071
TADIR_ENTRY_NOT_EXISTING Object directory entry does not exist


The function module TR_TADIR_INTERFACE is the interface for the objectdirectory (TADIR) of the ABAP Workbench.
All modifications to the object directory are made using this interfaceonly. This is because the interface makes internal checks thatguarantee the consistency of the data.
TR_TADIR_INTERFACE requires the following key fields to be able toidentify the object:
  • TADIR-PGMID

  • TADIR-OBJECT

  • TADIR-OBJ_NAME

  • Other parameters also need to be sent, depending on the action.
    • Inserting an entry in the object directory:
    • PGMID OBJECT OBJ_NAME

      DEVCLASS mandatory
      AUTHOR filled from the system field,
      if not already sent

      • Deleting an entry in the object directory:
      • PGMID OBJECT OBJ_NAME

        • Reading an entry in the object directory:
        • PGMID OBJECT OBJ_NAME

          WI_READ_ONLY
          No changes are made to the object directory.
          The entry is returned in NEW_TADIR_ENTRY.

          • Flagging an object as generated:
          • PGMID OBJECT OBJ_NAME

            WI_SET_GENFLAG = "X", "T"
            Set the flag according to how you want the generated object
            to be handled in the upgrade (see the documentation on the data
            element GENFLAG).
            If WI_SET_GENFLAG = " ", the generation flag is not changed (in
            particular, it is not reset to " ").
            The package $TMP is set for generated objects (local
            private object), if WI_TADIR_DEVCLASS is not sent and the entry
            is created as new.

            • Removing the generation flag for an object:
            • PGMID OBJECT OBJ_NAME

              WI_REMOVE_GENFLAG = "X"
              Sets the TADIR-GENFLAG to " ".

              • Flagging an object that is in a repair:
              • PGMID OBJECT OBJ_NAME

                • Removing the repair flag:
                • PGMID OBJECT OBJ_NAME

                  • Changing the package of an object:
                  • PGMID OBJECT OBJ_NAME
                    -----------------------------------------------------------------
                    Caution
                    Each time you change a package, you must transport the
                    change into all systems in your system group. This is not
                    currently done automatically. Transport the change by
                    inserting the entry LIMU ADIR R3TRPROGZREPORT in a
                    transportable change request, in this example for the report
                    program ZREPORT.
                    -----------------------------------------------------------------

                    • Setting the protection flag against editing in standard editors:
                    • PGMID OBJECT OBJ_NAME

                      IV_SET_EDTFLAG = 'X'
                      Sets TADIR-EDTFLAG to 'X', preventing the object from being edited
                      with standard object editors.
                      The parameter WI_TEST_MODUS is set to "X" as a default.
                      If you want to update the database, set this parameter to " ".
                      In test mode, all checks are made with the parameters that are sent,and the changed object directory entry is returned in NEW_TADIR_ENTRY.The database is not changed.
                      This function module does not have a dialog. All exceptions are sent tothe calling program with MESSAGE... RAISING ...

1493725Performance of Installed Base creation/change