函数FM TR_GET_NAMESPACE_AND_ROLE

TR_GET_NAMESPACE_AND_ROLE SAP Function module - Namespace and Related Role for TADIR Object

Pattern for FM TR_GET_NAMESPACE_AND_ROLE - TR GET NAMESPACE AND ROLE

函数功能:取得TADIR对象的命名空间与相关作用(或职责)

Associated Function Group: STR4

Released Date: 06.07.2000

CALL FUNCTION 'TR_GET_NAMESPACE_AND_ROLE' "Namespace and Related Role for TADIR Object

  EXPORTING

    iv_pgmid  =   " tadir-pgmid   TADIR object PGMID (e.g. R3TR/..)

    iv_object = " tadir-object  TADIR OBJECT TYPE (for example: PROG/TABL/..)

iv_objname =   " tadir-obj_name  TADIR OBJECT NAME (for example: )

* iv_use_devclass_info = ' ' " trpari-s_checked Use package to determine namespace

IMPORTING

ev_namespace =    " trnspace-namespace Namespace for object (result)

ev_role      =    " trnspace-role Role of namespace for object (result)

EXCEPTIONS

NAMESPACE_NOT_EXISTING = 1 " Namespace does not exist (in the system)

INVALID_OBJECT = 2         " Object type invalid (for example, not TADIR-compulsory)

NAMESPACE_NOT_DETERMINABLE = 3 . "Namespace cannot be determined.

" TR_GET_NAMESPACE_AND_ROLE

 

SAP Documentation for FM TR_GET_NAMESPACE_AND_ROLE

 

Functions

The input parameters IV_PGMID, IV_OBJECT, IV_OBJNAME specify the object to be examined. The function module TR_GET_NAMESPACE_AND_ROLE determines the corresponding namespace EV_NAMESPACE using naming conventions.

In special cases, when the corresponding namespace cannot be identified uniquely using the object name, you can determine the package of the object as well, using the input parameter IV_USE_DEVCLASS_INFO = 'X', and use this to identify the namespace uniquely. This does involve additional database accesses, however.

The role EV_ROLE of this namespace is also defined.

输入参数IV_PGMID, IV_OBJECT, IV_OBJNAME指定了要检查的对象,功能模块TR_GET_NAMESPACE_AND_ROLE按照命名惯例决定了对应的名称空间EV_NAMESPACE。在特殊情况下,当对应的名称空间不能用对象名称来单独识别是,你也可以制定对象包,用输入参数IV_USE_DEVCLASS_INFO = 'X',并且可以用这个来单独识别名称空间。然而,这个还需要另外的数据库入口参与。

Possible values are:

 

  "P": Producer role of the namespace 建立者

Development possible, changes can be transported

允许开发,更改可以被传递

  "C": Recipient role of the namespace 接受者

Only repairs are possible, only local changes in the SAP System

只允许纠正,在sap系统中只可以本地更改

 

The corresponding namespace is only determined for TADIR-compulsory objects; for

non-TADIR-compulsory objects, the exception INVALID_OBJECT is triggered, as well as for object names with incorrect syntax.

对应的名称空间只为了TADIR-compulsory对象而制定;对于non-TADIR-compulsory对象,例外中的INVALID_OBJECT被触发,对于错误句法规则的对象名称也是一样。

If the namespace assigned to the object is not defined in the SAP System, the exception NAMESPACE_NOT_EXISTING is used.

如果分配给名称空间的对象没有在sap系统中定义,例外中的 NAMESPACE_NOT_EXISTING被使用。

The exception NAMESPACE_NOT_DETERMINABLE is triggered  if the namespace assigned to an object cannot be identified uniquely.

如果名称空间被分配给一个不能单独定义的对象,例外中的NAMESPACE_NOT_DETERMINABLE被触发。

FURTHER_SOURCES_OF_INF

For a detailed description of namespaces and the related settings, see Help -> SAP Library -> Basis Components -> ABAP Workbench -> Change and Transport System -> Namespaces and Naming Conventions.

Documentation extract taken from SAP system, Copyright (c) SAP AG

 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20743548/viewspace-665848/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/20743548/viewspace-665848/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值