【IT168 技术文章】
SAP系统提供了很多的控制函数,这些函数会提示系统消息,它会根据用户配置而进行判断程序处理流程。用户可以设置消息类型为错误,警告和不提示。这些系统消息存储在T160M表中。
1、消息存储表:T160M
2、相关设置消息的TCODE
O04C 流程订单
OPJB 生产订单
OCHS 批次管理
OMCQ 库存管理和实际库存
SM30 维护和服务处理(V_160M_PM),基本数据
OMT4 MM主数据
OVAH 销售分销
OVM1 装运
O05C 主数据 (PPPI)
3、如何查找关于某个表的配置TCODE
3.1 使用SM30
3.2 使用OBJH 、OBJS、CUS_actobj、cus_imgach 和cus_actobt
先从objh找出对象,再在objs中循环找出所有与该表相关的视图,再使用select语句读取tcode。
语句示例:
select distinct ci~activity ci~docu_id ci~attributes
ci~c_activity ci~tcode ct~text
ci~fuser ci~fdate ci~ftime
ci~luser ci~ldate ci~ltime
into corresponding fields of table l_list
from objs as o inner join cus_actobj as ca
on ( o~objectname = ca~objectname and
o~objecttype = ca~objecttype )
inner join cus_imgach as ci
on ca~act_id = ci~c_activity
left outer join cus_actobt as ct
on ci~c_activity = ct~act_id and
ct~spras = p_language
where o~objectname = p_objectname and
o~objecttype = p_objecttype.
ci~c_activity ci~tcode ct~text
ci~fuser ci~fdate ci~ftime
ci~luser ci~ldate ci~ltime
into corresponding fields of table l_list
from objs as o inner join cus_actobj as ca
on ( o~objectname = ca~objectname and
o~objecttype = ca~objecttype )
inner join cus_imgach as ci
on ca~act_id = ci~c_activity
left outer join cus_actobt as ct
on ci~c_activity = ct~act_id and
ct~spras = p_language
where o~objectname = p_objectname and
o~objecttype = p_objecttype.