Fonction SAP TR_CHECK_NAME_CLASS - Class assignment of an object: Customer or SAP object (name range)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
IV_NAMESPACE TRNSPACE-NAMESPACE C 10 X
WI_OBJECT TADIR-OBJECT C 4 TADIR OBJECT TYPE (for example: PROG/TABL/..)
WI_OBJNAME TADIR-OBJ_NAME C 40 TADIR OBJECT NAME (for example: )
WI_PGMID TADIR-PGMID C 4 TADIR Object pgmID (for example: R3TR/..)

Paramètre Reférence Type Long. Description
EV_NAMESPACE TRNSPACE-NAMESPACE C 10
WE_NAME_CLASS TRPARI-W_NAMECLAS C 1 S = SAP- / C = customer name range /' ' = general, open

Exception Description
INVALID_OBJECT
NAMESPACE_NOT_EXISTING

Functionality
The function module TR_CHECK_NAME_CLASS can also be called outside theCorrection and Transport System as no database update is performed.
The function checks whether the object transferred in the WI_PGMID,WI_OBJECT and WI_OBJNAME parameters lies in the SAP or customer namerange. The class assignment is output in the WE_NAME_CLASS parameter:

  • "S" - object lies in the SAP name range

  • "C" - object lies in the customer name range

  • " " - no name range assignment