SAP message 探究

來源:互聯網
上載者:User

導讀:
  SAP 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所說的Messageclass
  二:訊息相關最常用的table:
  T100:SAPdefaultMessage,
  T160M:MessageControl:Purchasing(SystemMessages)
  T100C:User_definedmessaegmainlyforFI
  TVGMS:ViewControl
  T100S:Configurablesystemmessages
  T100W:ForWorkflow
  T100U:最後更改訊息的usertable
  T5CBN:PCOperationConditions
  ——————————————-
  需要指出的是你必須注意做重要的三個
  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
  推薦投訴

本文轉自
http://blog.chinaunix.net/u1/40527/showart_423196.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.