Ansicht
Dokumentation

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

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

TXBHW - Original Tax Base Amount in Local Currency   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

The function module TR_TADIR_INTERFACE is the interface for the object directory (TADIR) of the ABAP Workbench.
All modifications to the object directory are made using this interface only. This is because the interface makes internal checks that guarantee the consistency of the data.

TR_TADIR_INTERFACE requires the following key fields to be able to identify 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

WI_DELETE_TADIR_ENTRY = "X".

  • 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

WI_SET_REPAIR_FLAG = "X"

  • Removing the repair flag:

PGMID OBJECT OBJ_NAME

WI_REMOVE_REPAIR_FLAG = "X"

  • Changing the package of an object:

PGMID OBJECT OBJ_NAME

DEVCLASS


-----------------------------------------------------------------
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 to the calling program with MESSAGE... RAISING ...
In test mode, all checks are made with the parameters passed and the changed object directory entry is returned in NEW_TADIR_ENTRY, but no database change is made.

This function module does not have a dialog. Any exceptions are sent to the calling program using MESSAGE... RAISING ....





Parameters

IV_DELFLAG
IV_NO_PAK_CHECK
IV_OBJ_STABILITY
IV_SET_EDTFLAG
IV_TRANSL_TECH_TEXT
NEW_GTADIR_ENTRY
NEW_TADIR_ENTRY
WI_DELETE_TADIR_ENTRY
WI_READ_ONLY
WI_REMOVE_GENFLAG
WI_REMOVE_REPAIR_FLAG
WI_SET_GENFLAG
WI_SET_REPAIR_FLAG
WI_TADIR_AUTHOR
WI_TADIR_CHECK_CFG
WI_TADIR_CHECK_DATE
WI_TADIR_CPROJECT
WI_TADIR_DEVCLASS
WI_TADIR_KORRNUM
WI_TADIR_MASTERLANG
WI_TADIR_OBJECT
WI_TADIR_OBJ_NAME
WI_TADIR_PGMID
WI_TADIR_SRCSYSTEM
WI_TADIR_VERSID
WI_TEST_MODUS

Exceptions

CHANGE_OF_CLASS_NOT_ALLOWED
DEVCLASS_NOT_EXISTING
DEVCLASS_NOT_SPECIFIED
GTADIR_NOT_REACHED
LOC_PRIV_OBJS_NO_REPAIR
MASTERLANGUAGE_NOT_SPECIFIED
NO_AUTHORIZATION_TO_DELETE
NO_CHANGE_FROM_SAP_TO_TMP
NO_MODIFICATION_OF_HEAD_SYST
NO_SYSTEMNAME
NO_SYSTEMTYPE
OBJECT_EXISTS_GLOBAL
OBJECT_EXISTS_LOCAL
OBJECT_IS_DISTRIBUTED
OBJECT_LOCKED_FOR_ORDER
OBJECT_RESERVED_FOR_DEVCLASS
OBJ_SPECIFICATION_NOT_UNIQUE
ORDER_MISSING
ORIGINAL_SYSTEM_CONFLICT
PGMID_OBJECT_NOT_ALLOWED
SIMULTANIOUS_SET_REMOVE_REPAIR
SPECIFY_OWNER_UNIQUE
TADIR_ENTRY_ILL_TYPE
TADIR_ENTRY_NOT_EXISTING

Function Group

STRD

Addresses (Business Address Services)   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 5694 Date: 20240523 Time: 061904     sap01-206 ( 77 ms )