SAP修改消息内容和报错类型(SE91和OBA5)
来源:互联网 发布:ardupilot 源码下载 编辑:程序博客网 时间:2024/06/05 01:59
SAP消息也是这样,你可将所有能忽略的消息ignore让它鞠躬尽瘁死而后已为你工作.
从是否允许你configure层次分两种: configurable和non-configurable.
对configurable message可选的message type通常有S, I, W, E, A,
I:信息窗口
W:警告
E:错误
S:成功
A:终止程序
(online表示即时output message -表示switch off message继续做后面工作 batchi表示做batch input时).
就是说对configurable message SAP允许你设置它是Error, warning或者switch off干脆忽略,通常这些个
错误不至于引起致命的系统逻辑错误.
一.基本概念
你可简单理解为消息是SAP为exception预警的一种手段.
Application area:告诉你消息归属,分类吧.其实就是SE91所说的Message class
二:消息相关最常用的table:
1. T100U 通过 T100U可以查看所有系统及用户定义的消息,包括消息的一些更改情况可在该表中查寻
2. T100 SAP能用到的消息
3. T160M MM模块相关消息表,此表可直接维护.可使用SE16对其进行维护。
4. T100C 你定义的message通常将出现在此表, FI模块中用户自定义的消息,比如使用OBA5,OFMG等自定义的消息会写入此表,CO配置消息不在此表
5. T100S: 此表保存着允许用户更改的应用区域和消息号,举例假设你删除了KI 005则在OBA5中再不能配置此消息.(对MM模块有些例外,M7不在此表,使用OMCQ依旧可设置,M3不在此表,OMT4依旧可设置)
此表也可直接维护.和T160M不同的是,你必须在SE16输入T100S按新建按钮才可维护.查询时只可Display.
6. T100W: For Workflow
7、TVGMS: View Control
8、T100S: Configurable system messages 顾名思义就是你能设置的消息.
比如OBA5你想设置F5 060消息,这个是FB50在balance<>0你想强行save弹出的,在T100s,中你将看到F5 060不在其中,因为这是将影响财务的致命错误,当然OBA5是不允许你去设置的.
**欺骗SAP使用OBA5强行Switch off F5 060.
9、T100U: 最后更改消息的user table
10、T5CBN: PC Operation Conditions
三.建立查询消息.
T-code:SE91 消息维护
你可为自己的程序和Enhancement编写消息.
通常在程序中你能看到类似.
CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE'
EXPORTING
i_arbgb = i_arbgb
i_dtype = i_dtype
i_msgnr = i_msgnr
IMPORTING
e_msgty = l_msgts.
IF l_msgts NE '-'.(如果没switch off)
然后就是提示. 然后去读T100C 用户自定的messge type(Error,warnig, error0决定是否继续work.
四.设置消息(这个应该对大家有点用处)
相关T-code:(**很多是雷同的)
FI 部分:
OBA5:FI messge
BD60:Additional data for message type
OFMG:FOr FM Message
O04C:PI: Message Control Purchasing
OFPM:Change Message Control
OMPJ:Reqmts Type Message Control
F00-->***这个是send office message
KD99:setup message
KDNN:Setup messaeg
MM-PUR部分:
O04C:For purchase
OKZZ: Invoice Verification/Valuation
OMRM:Invoice Verification 发票校验
OMT4:更改试图,系统消息,物料主数据,
OMCQ:更改试图,系统消息,库存管理、产品日期,有效期,批号(M7Inventory Management and Physical Inventory;MIGO Inventory Management: Interface;OM Customizing: Materials Management;12 Production date/shelf life expiration date/batches)
CO部分:
OPR4_ACT Multilevel Actual Settlement
OPR4_CK Material Cost Estimate
OPR4_CKML Closing and Calc. of Periodic Price
OPR4_CKPF Price Update
OPR4_KKA WIP Calculation
OPR4_KKP Repetitive Mfg and Process Mfg
OPR4_KKS Collective Processing: Variances
OPR4_KKS1 Individual Processing: Variances
OPR4_PPCO Production Order: Cost Calculation
OPR5 Definition of Error Mgmt IDs (SAP)
OPR1 Area of Responsibility <-> Message
OPR3 Definition of Breakpoints
OPR6 Definition of Object IDs (SAP)
OPR7 Def. of Areas of Responsibility
OPR8 Def. of Minimum Message Types (SAP)
OPR9 Def. of Reference Objects (SAP)
OPRCMFE User-Defined Messages
SD部分"
OVAH :SD Define Variable Messages
Others:
OPR5:
OPR1:
OPR3|OPR6|OPR7|OPR8|OPR9|OPRCMFE|MSW1|MSW2
------------------------------------------------------------
SAP允许用户修改的消息都save在T100S中,你配置后的消息从T100C可看到
但是如果我将不允许的消息强行coding塞进去,会有什么后果呢?
-------------------------------------------------------------
***严格地将下面的T-code多是设置output打印的.
M/30 Maintain Types: RFQ
M/32 Maint. Determ. Schema: RFQ
M/34 Maintain Types: PO
M/36 Maintain Determ. Schema: PO
M/38 Maint. Types: Outline Agmt.
M/40 Maint. Types: Del. Schedule
M/42 Maintain Schema: Del. Sched.
M/48 Maintain Access Sequences: RFQ
M/50 Maintain Access Sequences: PO
M/56 s: Create Cond. Table: RFQ
M/57 s: Change Condition Table
M/58 s: Display CondTab: RFQ
M/59 s: Create CondTab: Pur. Order
M/60 s: Change CondTab: Pur. Order
M/61 s: Disp. CondTab: Pur. Order
M/62 s: Create CondTab: Del. Schd.
M/63 s: Change CondTab: Del. Schd.
M/64 s: Disp. CondTab: Del. Sched.
M/65 s: Create CondTab: O. Agmt.
M/66 s: Change CondTab: O. Agmt.
M/67 s: Disp. CondTab: Outl. Agmt.
M/68 Maintain Schema: Outl. Agmt.
M/70 s: Create CondTab.: Entry Sh.
M/71 s: Change CondTab.: Entry Sh.
M/72 s: Disp. CondTab.: Entry Sh.
M/73 Maintain Access Sequences: Entry
M/74 Maintain Access Sequences: Entry
M/75 Maintain s: Serv. Entry Sheet
M/76 Display s: Entry
M/77 Maintain Schema: Entry Sheet
M/78 Disp. Determ. Schema: Entry
M/N1 Maintain accesses (fr.gds - purch.)
五.重置警告消息.
将消息warning change to display显示.
MSW1 Reset Warnings
MSW2 Reset Warnings
六附录: Message_related tables:(部分)
T100: All message
T100A: IDs for T100
T100C: Control by User
T100O: Assignment of to object
T100S: Configurable system s
T100SA: Application Areas for Configurable s
T100U: Last person to change s
T100V: Assignment of s to tables/views
T100W: Assign s to Workflow
T100X: Error s: Supplements
T139A: Exception s: Period Closing Program
T139B: Exception s: Period Closing Program
T159F: MMIM: Error s Resulting From Blocked Objects
T160M: Control: Purchasing (System s)
T160MVAL: category restriction for T160M
T161M: Fine-Tuned Control: Types
T161N: Determination Schemas: Assignment
T321K: Definition of Accumulated s to HOST (R/2)
T323P: Parameters for Generating Logs and Mail s (R/2->R/3)
T440F: Exception s for the forecast
T458A: Exception s in Material Requirements Planning
T458B: Description of exception s
T458C: Selection Group for Exception s
T555E: Time Evaluation s
T5CAR: for Employee Attribute Combination
T5CBN: s for PC Operation Conditions
T5D5D: Supplementary Benefits for Civil Service: Fields
T5D5E: Supplemenary Bens. for Civil Service: Reason Table
从是否允许你configure层次分两种: configurable和non-configurable.
对configurable message可选的message type通常有S, I, W, E, A,
E:错误
S:成功
A:终止程序
(online表示即时output message -表示switch off message继续做后面工作 batchi表示做batch input时).
就是说对configurable message SAP允许你设置它是Error, warning或者switch off干脆忽略,通常这些个
错误不至于引起致命的系统逻辑错误.
一.基本概念
你可简单理解为消息是SAP为exception预警的一种手段.
Application area:告诉你消息归属,分类吧.其实就是SE91所说的Message class
二:消息相关最常用的table:
比如OBA5你想设置F5 060消息,这个是FB50在balance<>0你想强行save弹出的,在T100s,中你将看到F5 060不在其中,因为这是将影响财务的致命错误,当然OBA5是不允许你去设置的.
**欺骗SAP使用OBA5强行Switch off F5 060.
三.建立查询消息.
T-code:SE91
你可为自己的程序和Enhancement编写消息.
通常在程序中你能看到类似.
然后就是提示. 然后去读T100C 用户自定的messge type(Error,warnig, error0决定是否继续work.
四.设置消息(这个应该对大家有点用处)
相关T-code:(**很多是雷同的)
FI 部分:
OBA5:FI messge
BD60:Additional data for message type
OFMG:FOr FM Message
O04C:PI: Message Control Purchasing
OFPM:Change Message Control
OMPJ:Reqmts Type Message Control
F00-->***这个是send office message
KD99:setup message
KDNN:Setup messaeg
MM-PUR部分:
O04C:For purchase
OKZZ: Invoice Verification/Valuation
OMRM:Invoice Verification 发票校验
OMT4:更改试图,系统消息,物料主数据,
OMCQ:更改试图,系统消息,库存管理、产品日期,有效期,批号(M7
CO部分:
OPR4_ACT Multilevel Actual Settlement
OPR4_CK Material Cost Estimate
OPR4_CKML Closing and Calc. of Periodic Price
OPR4_CKPF Price Update
OPR4_KKA WIP Calculation
OPR4_KKP Repetitive Mfg and Process Mfg
OPR4_KKS Collective Processing: Variances
OPR4_KKS1 Individual Processing: Variances
OPR4_PPCO Production Order: Cost Calculation
OPR5 Definition of Error Mgmt IDs (SAP)
OPR1 Area of Responsibility <-> Message
OPR3 Definition of Breakpoints
OPR6 Definition of Object IDs (SAP)
OPR7 Def. of Areas of Responsibility
OPR8 Def. of Minimum Message Types (SAP)
OPR9 Def. of Reference Objects (SAP)
OPRCMFE User-Defined Messages
SD部分"
OVAH :SD Define Variable Messages
Others:
OPR5:
OPR1:
OPR3|OPR6|OPR7|OPR8|OPR9|OPRCMFE|MSW1|MSW2
------------------------------------------------------------
SAP允许用户修改的消息都save在T100S中,你配置后的消息从T100C可看到
但是如果我将不允许的消息强行coding塞进去,会有什么后果呢?
-------------------------------------------------------------
***严格地将下面的T-code多是设置output打印的.
M/30 Maintain
M/32 Maint.
M/34 Maintain
M/36 Maintain
M/38 Maint.
M/40 Maint.
M/42 Maintain
M/48 Maintain Access Sequences: RFQ
M/50 Maintain Access Sequences: PO
M/56 s: Create Cond. Table: RFQ
M/57 s: Change Condition Table
M/58 s: Display CondTab: RFQ
M/59 s: Create CondTab: Pur. Order
M/60 s: Change CondTab: Pur. Order
M/61 s: Disp. CondTab: Pur. Order
M/62 s: Create CondTab: Del. Schd.
M/63 s: Change CondTab: Del. Schd.
M/64 s: Disp. CondTab: Del. Sched.
M/65 s: Create CondTab: O. Agmt.
M/66 s: Change CondTab: O. Agmt.
M/67 s: Disp. CondTab: Outl. Agmt.
M/68 Maintain
M/70 s: Create CondTab.: Entry Sh.
M/71 s: Change CondTab.: Entry Sh.
M/72 s: Disp. CondTab.: Entry Sh.
M/73 Maintain Access Sequences: Entry
M/74 Maintain Access Sequences: Entry
M/75 Maintain s: Serv. Entry Sheet
M/76 Display s: Entry
M/77 Maintain
M/78 Disp.
M/N1 Maintain accesses (fr.gds - purch.)
五.重置警告消息.
将消息warning change to display显示.
MSW1
MSW2
六附录: Message_related tables:(部分)
T100A:
T100C:
T100O: Assignment of
T100S: Configurable system s
T100SA: Application Areas for Configurable s
T100U: Last person to change s
T100V: Assignment of s to tables/views
T100W: Assign s to Workflow
T100X: Error s: Supplements
T139A: Exception s: Period Closing Program
T139B: Exception s: Period Closing Program
T159F: MMIM: Error s Resulting From Blocked Objects
T160M:
T160MVAL:
T161M: Fine-Tuned Control:
T161N:
T321K: Definition of Accumulated s to HOST (R/2)
T323P: Parameters for Generating Logs and Mail s (R/2->R/3)
T440F: Exception s for the forecast
T458A: Exception s in Material Requirements Planning
T458B: Description of exception s
T458C: Selection Group for Exception s
T555E: Time Evaluation s
T5CAR:
T5CBN: s for PC Operation Conditions
T5D5D: Supplementary Benefits for Civil Service:
T5D5E: Supplemenary Bens. for Civil Service: