SAP MESSAGE

it2022-05-05  62

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

转载于:https://www.cnblogs.com/vibratea/archive/2009/07/24/1530325.html


最新回复(0)