天天看點

SAP message 探究

S AP message 探究

SAP消息就是這樣一種機制

舉個實際例子,某人身體系統出了點毛病要去檢查了然後決定是否continuework.

selectcase此人身份.

caseGC黨的官爺.

selectcase’毛病’.

if’小病’.

Message:’各部門組織看病當然紅包趁機撈上一筆當然工作是要停的’.

ELSEIF’中病’.

Message:’帶上幾個漂亮小妞療養去還工作個屁’

ELSEIF’大病’.

Message:’當地報紙要大肆宣傳某官為民造福勞累過度,但當你仔細檢查邏輯就發現内幕

其實多是因為吃喝嫖賭荒淫無度造成的體虛,是以通常看消息要看起内幕’.

endselect.

case民工窮人.

if還有口氣.

Message:不管得了小病大病癌症AIDS都得不管它工作.

endif.

caseother.

message:’視此人power和money自定’.

endselect.

SAP消息也是這樣,你可将所有能忽略的消息ignore讓它鞠躬盡瘁死而後已為你工作.

從是否允許你configure層次分兩種:configurable和non-configurable.

對configurablemessage可選的messagetype通常有S,I,W,E,A,-

(online表示即時outputmessage-表示switchoffmessage繼續做後面工作batchi表示做batchinput時).

就是說對configurablemessageSAP允許你設定它是Error,warning或者switchoff幹脆忽略,通常這些個

錯誤不至于引起緻命的系統邏輯錯誤.

一.基本概念

你可簡單了解為消息是SAP為exception預警的一種手段.

Applicationarea:告訴你消息歸屬,分類吧.其實就是SE91所說的MessageclassT100:SAPdefaultMessage,

T160M:MessageControl:Purchasing(SystemMessages)

T100C:User_definedmessaegmainlyforFI

TVGMS:ViewControl

T100S:Configurablesystemmessages

T100W:ForWorkflow

T100U:最後更改消息的usertable

T5CBN:PCOperationConditions

系統的Message應用例程:DEMO_MESSAGES 

二:消息相關最常用的table:

——————————————-

需要指出的是你必須注意做重要的三個表

T100:包含所有的message

T100C:你定義的message通常将出現在此表

T100s:Configurablesystemmessages顧名思義就是你能設定的消息.

比如OBA5你想設定F5060消息,這個是FB50在balance0你想強行save彈出的,在T100s

中你将看到F5060不在其中,因為這是将影響财務的緻命錯誤,當然OBA5是不允許你去設定的.

**欺騙SAP使用OBA5強行SwitchoffF5060.

—————————————————–

三.建立查詢消息.

T-code:SE91

你可為自己的程式和Enhancement編寫消息.

通常在程式中你能看到類似.

CALLFUNCTION’READ_CUSTOMIZED_MESSAGE’

EXPORTING

i_arbgb=i_arbgb

i_dtype=i_dtype

i_msgnr=i_msgnr

IMPORTING

e_msgty=l_msgts.

IFl_msgtsNE’-’.(如果沒switchoff)

然後就是提示.然後去讀T100C使用者自定的messgetype(Error,warnig,error0決定是否繼續work.

四.設定消息(這個應該對大家有點用處)

相關T-code:(**很多是雷同的)

FI部分:

OBA5:FImessge

BD60:Additionaldataformessagetype

OFMG:FOrFMMessage

O04C:PI:MessageControlPurchasing

OFPM:ChangeMessageControl

OMPJ:ReqmtsTypeMessageControl

F00–>***這個是sendofficemessage

KD99:setupmessage

KDNN:Setupmessaeg

MM-PUR部分:

O04C:Forpurchase

OKZZ:InvoiceVerification/Valuation

CO部分:

OPR4_ACTMultilevelActualSettlement

OPR4_CKMaterialCostEstimate

OPR4_CKMLClosingandCalc.ofPeriodicPrice

OPR4_CKPFPriceUpdate

OPR4_KKAWIPCalculation

OPR4_KKPRepetitiveMfgandProcessMfg

OPR4_KKSCollectiveProcessing:Variances

OPR4_KKS1IndividualProcessing:Variances

OPR4_PPCOProductionOrder:CostCalculation

OPR5DefinitionofErrorMgmtIDs(SAP)

OPR1AreaofResponsibilityMessage

OPR3DefinitionofBreakpoints

OPR6DefinitionofObjectIDs(SAP)

OPR7Def.ofAreasofResponsibility

OPR8Def.ofMinimumMessageTypes(SAP)

OPR9Def.ofReferenceObjects(SAP)

OPRCMFEUser-DefinedMessages

SD部分”

OVAH:SDDefineVariableMessages

————————————————————

SAP允許使用者修改的消息都save在T100S中,你配置後的消息從T100C可看到

但是如果我将不允許的消息強行coding塞進去,會有什麼後果呢?

————————————————————-

***嚴格地将下面的T-code多是設定output列印的.

M/30MaintainTypes:RFQ

M/32Maint.Determ.Schema:RFQ

M/34MaintainTypes:PO

M/36MaintainDeterm.Schema:PO

M/38Maint.Types:OutlineAgmt.

M/40Maint.Types:Del.Schedule

M/42MaintainSchema:Del.Sched.

M/48MaintainAccessSequences:RFQ

M/50MaintainAccessSequences:PO

M/56s:CreateCond.Table:RFQ

M/57s:ChangeConditionTable

M/58s:DisplayCondTab:RFQ

M/59s:CreateCondTab:Pur.Order

M/60s:ChangeCondTab:Pur.Order

M/61s:Disp.CondTab:Pur.Order

M/62s:CreateCondTab:Del.Schd.

M/63s:ChangeCondTab:Del.Schd.

M/64s:Disp.CondTab:Del.Sched.

M/65s:CreateCondTab:O.Agmt.

M/66s:ChangeCondTab:O.Agmt.

M/67s:Disp.CondTab:Outl.Agmt.

M/68MaintainSchema:Outl.Agmt.

M/70s:CreateCondTab.:EntrySh.

M/71s:ChangeCondTab.:EntrySh.

M/72s:Disp.CondTab.:EntrySh.

M/73MaintainAccessSequences:Entry

M/74MaintainAccessSequences:Entry

M/75Maintains:Serv.EntrySheet

M/76Displays:Entry

M/77MaintainSchema:EntrySheet

M/78Disp.Determ.Schema:Entry

M/N1Maintainaccesses(fr.gds-purch.)

五.重置警告消息.

将消息warningchangetodisplay顯示.

MSW1ResetWarnings

MSW2ResetWarnings

六附錄:Message_relatedtables:(部分)

T100:Allmessage

T100A:IDsforT100

T100C:ControlbyUser

T100Assignmentoftoobject

T100S:Configurablesystems

T100SA:ApplicationAreasforConfigurables

T100U:Lastpersontochanges

T100V:Assignmentofstotables/views

T100W:AssignstoWorkflow

T100X:Errors:Supplements

T139A:Exceptions:PeriodClosingProgram

T139B:Exceptions:PeriodClosingProgram

T159F:MMIM:ErrorsResultingFromBlockedObjects

T160M:Control:Purchasing(Systems)

T160MVAL:categoryrestrictionforT160M

T161M:Fine-TunedControl:Types

T161N:DeterminationSchemas:Assignment

T321K:DefinitionofAccumulatedstoHOST(R/2)

T323P:ParametersforGeneratingLogsandMails(R/2->R/3)

T440F:Exceptionsfortheforecast

T458A:ExceptionsinMaterialRequirementsPlanning

T458B:Descriptionofexceptions

T458C:SelectionGroupforExceptions

T555E:TimeEvaluations

T5CAR:forEmployeeAttributeCombination

T5CBN:sforPCOperationConditions

T5D5D:SupplementaryBenefitsforCivilService:Fields

T5D5E:SupplemenaryBens.forCivilService:ReasonTable

T5E31:Actionsandsituationsforregistrations

T5F6N:GlobalErrors.

T5F6NN:CommunicationofErrors(ADPInterface)

T5MP1:GeneralsforthePBSRemunerationStatement

T5QGM:PayrollHighlightsAustralia

T5QGT:sAreaCheckTableAustralia

T5QSM:SuperannuationHighlightsAustralia

T5S0S:sforsicknessadministration(SE)

T5V5M:ssentelectronicallytoAA-registeret

T5V7B:ssenttoemployees/emplyoersregister

T7NZGM:PayrollHighlightsNZ

T7NZSM:SuperannuationHighlightsNZ

TA20PPZ:handling:chosenprioritywithtoppriority

TA20PPZ1:handling(language-dependent)

TA22RSF:START:Errors

TA22RSF1:START:Errors(Language-Dependent)

TAFWD:CORU:sthatarenotinterpretedaserrors

TBD05:Distributionmodelfortypes

TBD12:Mappingtype->serializationandlinktype

TBD14:type->objecttype

TBD17:Dependenciesbetweentypes

TBD33:Dependenciesbetweenmethodsandtypes

TBD40:AssignTypestoSerializationGroup

TBD53:ALE:ObjectChannelSerialization:TypeofBus.Obj.

TBD62:Assignmentofchangedocumentfieldtotype

TBDA2:ALEactive

TBDME:ALEsupplementdataforEDItype

TBDMS:AssignmentoftypetoIDoctype

TBDTPM:TemplateforType

TBDTPMD:DataFiltersforTypes

TC50:PP-PI:Proc.Categories/Proc.InstructionCategories

TC50A:AssignmentofCharact.toDest.-Spec.TargetFields

TC50C:CharacteristicsforProcesss/ProcessInstructions

TC50D:ProcessManagement:Destinations

TC50P:CharacteristicsforDest.-SpecificTargetFields

TC50T:Process/Instr.Categories:Lang.-DependentTexts

TC51T:Destinatiosn:Language-DependentTexts

TC53:CharacteristicsGroupsforProcesssandInstructions

TC55:Destination-SpecificTargetFieldsforDestinations

TCA10:Tasklists:sdependingonthetasklisttype

TCB02:TypesofDestination

TCB02T:TypesofDestination:Language-DependentTexts

TCB10:PredefinedProc.Categories/Proc.Instr.Categories

TCB10T:PredefinedCategories:Language-Dependenttexts

TCB11:AssignmentofCharacteristicstoPredefineds

TCB12T:PredefinedDestinations:Language-DependentTexts

TCB13:TargetFieldsforPredefinedDestinations

TCB13T:TargetFieldsforPredef.Destin.:Lang-Dep.Texts

TCB14:PredefinedAssignmentsofDestinationstoCategories

TCB16:PredefinedCharact.GroupsforandInstructionCat.

TCB18:PP-PI-PMA:SystemSettingsforProcessProcessing

TCMF1:Assignment:AreaofResponsibility

TCMF9:MinimumType(SAP)

TCMFA:User-Defineds

TCOINF:DisplayingInfo.inMonitor/CtrlRecipeMonitor

TCPT1:Codepages:Table1fortestsands

TCUSSYSL:Summarytableoftypesreadfromthesystemlog

TCY43:sforflowcontrol

TCY43T:Textsforsforflowcontrol

TDSP01:ALEDistributionPacket:TypestobeControlled

TEMSG:Systems

TEMSI:CentralIDassignmentforExpresss

TMAN1:TriggerConditionofDetermination

TMAN2:TriggerGroupofDetermination

TMAN2T:TriggerGroupofDetermination-Description

TMAN3:TriggerGroupofDetermination-TriggerCondition

TMAN4:TriggerConditionss-Change-RelevantTables

TMAN5:TriggerCondss;PossibleChange-RelevantFields

TMAN6:TriggerCondss:Change-Rel.TblperObject+ChangeTyp

TMAN7:TriggerConditions-Applications

TMSG1:LogicalsandProcessCodesinOutb.Procg

TMSG2:LogicalsandProcessCodesinInb.Procg

TMSQAMTREE:TMS:AssigningtoTreeNodesintheAlertMonitor

TMSQAMTRET:TMS:AssigningtoTreeNodesinAlertMonitor-Texts

TNODE02_AP:Testcaseattributes:Problemdata

TOPRK:Logs

TPT_WLIST_AREA:Processing:FunctionalArea

TPT_WLIST_AREA_T:Processing:FunctionalAreaText

TPT_WLIST_PROC:Processing:Methods

TPT_WLIST_PROC_T:Processing:ProcessingMethodText

TRMSG:SyntaxCheckErrors

TSL1D:SystemLog(Formerly100SorTSL01)

TSL1T:SystemLog:texts(FormerlyT100S,TSL01)

TSL2D:SystemLog:ClassificationIDfors

TSL2T:SystemLog:ClassNames

TVERR:Basisverification:Infosforstobesent

TVGMS:ViewControl:Errors

TWPDAssignmentofretailtoPDorg.object

TXMIMSG:TableforLang.-Depend.TextsinXMILog

TZ38T:Texttableforindicatorreasonforappendix8R5/97

TZW02:UserDetermine

WFMCMSGENQ:SpecialHandlingforSystems

WPXST:POSinterface:statusexternalsubsystems(errors)

WRPE:Replenishment:Errors

WTMIGMESS:sLoggedforWithholdingTaxChangeover

WTMIGMESSEXC:WithholdingTaxChangeover:AlternativeTypes

繼續閱讀