版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Creating,activatingandtransportingvalidationsandsubstitutionsWhichtransactionsarerequiredtousevalidationorsubstitutionfunctions?GGB0ValidationMaintenanceGGB1SubstitutionMaintenanceGCVZRuleMaintenanceGGB4Actionselectionforvalidation/substitution,forexample,activationofapplicationareas,useofallmessage
2、sorsubstitutedfieldsGCX2DefinitionoftheIncludesforuserexitsOB28ActivationofFIvalidationsOBBHActivationofFIsubstitutionsOBBZActivationofcostofsalesaccountingsubstitution(intheFIarea)OKC7ActivationofCOvalidationsOKC9ActivationofCOsubstitutionsGCT9Transport:ValidationsGCT0Transport:SubstitutionsWhatmus
3、tItakeintoaccountwhenusingtheformulaeditor?a)ValidationGGB0Ifyoucreatethefirstvalidationforacalluppoint,forexamplefinancialaccounting-documentheader,youhavetodefineamessageclass.ThisisthenvalidforALLvalidationsforthiscalluppoint.Notallfieldscanbeusedforvalidationsoncertaincalluppoints,forexampleComp
4、letedocumentinFI.Thisisbecausethereareseveralrowsthereanditisnotclearonwhichrowthecheckistobecarriedout.Youcanonlyusenumericfieldshere.(Note413956)Youshoulduseauserexitifyouneedmorechecksonthiscalluppoint.b)SubstitutionGGB1Ifyoucreateasubstitution,forexamplefinancialaccountingdocumentlineitem,onlyce
5、rtainfieldsareauthorizedforthesubstitution.Thisisbecauseproblemscanoccurwiththedocumentsorinconsistenciescanoccurbetweendifferentapplications.Youcanreleasemorefieldsforsubstitutionbutthiscanbecriticalasseriousproblemscanoccurasaresult.Thisiswhyyoushouldregardthefollowingchangeasamodification(Note170
6、183):TheGB01tablecontainsinformationaboutwhichtablefieldscanorcannotbesubstitutedforwhichcalluppoint.YoucanmakeafieldsubstitutablebychangingtheBEXCLUDEfieldto.Forexample:CompletedocumentcalluppointintheFIInaccordancewiththedefault,nofieldisreleasedforsubstitutiononthiscalluppoint.Youcanseethisinthef
7、ollowingentries:BOOLCLASSCLASSTYPEBCLTABBCLFIELDBEXCLUDE015SBKPF*X015SBSEG*XBOOLCLASS-SpecifiestheBooleanclass.Thisisdeterminedintheapplicationareaandcalluppointineachcase,forexample:008-Documentheader(FI)009-Lineitem(FI)015-Completedocument(FI)016-Costofsalesaccounting100-Documentheader(CO)CLASSTYP
8、ESpecifiesifthefieldcanbeusedinthecaseofvalidations(B),substitutions(S)orbothBCLTAB-TablethatisusedBLCFIELD-FieldofthistableBEXCLUDE-CanbeusedorcannotbeusedX.Asmentionedabove,youshouldequatethischangewithamodification.Problemsthatoccurasaresultofthischangecannotbehandledinthestandardsupport.Whatmust
9、Itakeintoaccountwhenactivatingvalidationsorsubstitutions?Youcanactivatevalidationsandsubstitutionsintwoways.Activationlevel:1-Active2-Active,exceptduringbatchinputprocessingBecausetheactivationinthefinancialaccounting(FI)iscompany-code-specific,thevalidationsorsubstitutionsshouldbeactivatedinbothcom
10、panycodesinthecaseofcross-companycodetransactions.WhatmustItakeintoaccountwhentransportingvalidationsorsubstitutions?Usually,onlytableentriesaretransportedwhenvalidationsorsubstitutionsaretransported.Thegeneratedsourcecodeshouldnotbetransported,sincethiscancauseproblems.Aftertheimportintothetargetsy
11、stem,thesourcecodeisgeneratedautomaticallywhentheRGUGBR00reportisstarted.Ifyouwouldliketodeleteavalidation/substitution,anddonotwanttodothisineachsystemindividually,proceedasdescribedinNote840981.UsinguserexitsinvalidationsorsubstitutionsWherecanImaintainuserexitsforvalidationsandsubstitutions?Theex
12、itsforvalidationsandsubstitutionsarestoredinanIncludeofyourchoice.ThefollowingIncludesaredeliveredasexamplesbydefault:RGGBR000Val/Sub:ExitsforrulesRGGBS000Val/Sub:ExitsforsubstitutionsYoushouldcopytheseintothecustomernamespace,forexampleZGGBR000.Thelengthofthenameyouchooseshouldnotexceed8characters.
13、Thisisbecausethenameisalsogeneratedinthesourcecode,andsoacertainlinelengthmaybeexceededasaresult.YoucanalsocreateaseparateIncludeperclientasthiscanimproveperformance.InTransactionGCX2,youshouldthendefinewhereyourIncludeisused.Todothis,enterthenameofyourIncludeasaformpoolintherelevantapplicationarea.
14、HowshouldIcreateauserexit?DefineyouruserexitintheFORMRoutineGET_EXIT_TITLESwiththecorrectexitcategory(EXITS-PARAM).Youcanusetheexistingsampleentriesasamodelforthis.TheexittypesrequiredintheFORMRoutineGET_EXIT_TITLESareorganizedasfollows:C_EXIT_PARAM_NONENoparameterApartfromthereturnvalue(B_TRUEorB_F
15、ALSE),youdonotneedanyparametersforthevalidation.Ifyoudonotwanttosubstituteafield,usethisparameterinthesubstitution(selectOnlyexit).However,youmustthenuseaTABLEstatementintheformpool(notintheactualform)toidentifythestructureconcerned.C_EXIT_PARAM_FIELDAFieldistransferredasaparameterYouonlyusethistype
16、inthesubstitution.Exactlyonefieldissubstituted.Enteruserexitsofthistypeinthesubstitutionmaintenanceinsteadofassigningaconstantvalue.C_EXIT_PARAM_CLASSAcompletetypeistransferredasaparameterMatrixvalidations/substitutions(Onlyexit).Thisexittypecanonlybeusedinthecaseofcalluppointswithcompletedocuments,
17、forexampleintheFIandtheLC.Youcannotusethisexitcategoryonanyothercalluppoints.Thetransferredtypecontainsallinformationofaclass.AnexampleistheuseofthedocumentheaderandallcorrespondinglineitemsintheFIarea.IntheFORMroutineGET_EXIT_TITLES,changetheNAMEandTEXTfieldoftheEXITSinternaltabletothevaluesyouwant
18、.Useoneofthesampleroutinesasamodelandcopythesetothenamesyouselected.Youcannowimplementthefunctionsyouwantinthisformroutine.Afteryouhavefinishedcreatingtheuserexit,youcanuseitinyourvalidationsorsubstitutions.WhatmustItakeintoaccountwhenimplementingtheuserexit?Nodialogboxes,warningmessages,information
19、messagesanderrormessagescanbeissuedinanexitnorcanaCOMMITWORKberejected.Thiswould,forexample,interruptthebatchprocessingorcauseproblemswiththedocumentstobeposted.Ifyoufindaseriouserrorinthefieldcontentsintheexit,sendaterminationmessage(AorX),whichwillensurethatthetransactionisterminated.DonotuseanyAB
20、APcommandsthatcausetheexittobeleftdirectly,forexampleLEAVE(TO)SCREEN.orSUBMIT.orCALLTRANSACTION.Inanexit,useonlystructurefieldsthatbelongtotheBooleanclassofthecallingsubstitution,validationorrule.Theotherstructurefieldsarenotfilledorarenotfilledproperlyonthecalluppointofthecallsofthesubstitution,val
21、idationorrule.ChangestofieldcontentsmayonlybemadeinasubstitutionexitifthisfieldcanbesubstitutedintheBooleanclass.YoucandisplaysuchfieldsbyselectingtheAddentryfunctioninthesubstitutionmaintenance.IntheIncludesofthesubstitutionexits,youmustnotusethecommandsMODIFY,INSERTorDELETEintheinternallyusedstruc
22、turessuchasBSEGorBKPF.ThesestructuresareinterpretedinternallyasdatabasetablesbecausetheyaredefinedbyaTABLESstatement.Asaresult,databaserecordsarewritten,deletedorchangedwhenyouusethecommandsmentionedabove.Thiscancauseseriousinconsistenciesandproblemsinthedocumentprocessing.Ifyouwanttochangefieldcont
23、entsinExitTypesC_EXIT_PARAM_CLASS,youshouldmakethechangesintheinternaltableBOOL_DATA(forexampleBOLL_DATA-BSEG).ProblemanalysisWhatmustItakeintoaccountbeforeIanalyzetheproblem?Beforeyouanalyzeaproblemwithvalidations/substitutions,makesurethatthegeneratedsourcecodeisup-to-date.YoucanuseReportRGUGBR00t
24、odothis.CallthisreportinTransactionSE38.Youreceivethefollowingselectionscreen:ApplicationareaApplicationcalluppointRegeneratemainprogramGeneratetablefileGeneraterulesGeneratevalidationsGeneratesubstitutionsGeneratesetsGenerateruleuseGeneratevalidationuseGeneratesubstitutionusageGeneratesubstitutione
25、xportroutinesGeneratesubstitutionroutinesinallclientsGeneratetraceprogramcallsNowupdatethesourcecodefortheapplicationareaandapplicationcalluppointinwhichthevalidationorsubstitutionwascreated.Todothis,entertheapplicationarea,forexampleFI,andtheapplicationcalluppoint(0003/completedocument),andsetallin
26、dicatorsexceptforGeneratesubstitutionroutineinallclientsandGeneratetraceprogramcalls.Thenexecutethereport.Thesourcecodeisnowatitscurrentstatus.Howcanthevalidationandsubstitutiontracebeused?ValidationtraceYoucreatedandactivatedavalidation.Youcannowactivatethetrace,forexampleinTransactionGGBO.Todothis
27、,placethecursoronthevalidationandselectExtras-Activatetrace.Example:YoucreatedanFIvalidationontheLineitemcalluppoint.Totestthevalidation,execute,forexample,TransactionFB01.Thetraceisdisplayedassoonasthevalidationisrun.Youcannowseedifferentthingsinthetrace,forexamplethevaluescontainedinthefieldsofthe
28、variousstructures.Fromthis,youcandeducewhetheradditionalchecksarerequired,ortellwhatthecauseofaproblemis.SubstitutiontraceActivatethetraceinthesamewayasyouactivatevalidations.Example:Youcreatedasubstitutioninthesamewayasyouactivatedthetraceinthecaseofthevalidation.Thetraceforsubstitutionshasanadditi
29、onalfunction,inthatyoucanviewthefieldcontentsbeforethesubstitutionaswellasafterthesubstitution.There,problemscanbereproducedinthesameway.HowcanIusetheDEBUGGERtoanalyzeaproblem?a)BasicinformationAllIncludesforvalidationsandsubstitutionsarecreatedinthisform:GBTmmaa0.mmstandsfortwodigitclientkey.Youcan
30、usetheG_CLIENT_ENCODEfunctionmoduletoconvertathree-digitclient(099)toatwo-digitclient,forexample:client100-AAclient800-TQAAstandsfortheapplicationarea,forexampleFI-FinancialAccountingCO-CostAccountingYouwillfindthisabbreviationinthemaintenancetransaction.Therefore,GBTAAFI0istheIncludeinclient100forF
31、Ivalidationsandsubstitutions.b)StructureoftheIncludesandformroutinesforvalidationsandsubstitutionsandtipsonhowtodebugTheabove-mentionedIncludesarestructuredinthefollowingway(sampleIncludeinFI,Client800):INCLUDEGBTTQFIA.RulesINCLUDEGBTTQFIB.SubstitutionsINCLUDEGBTTQFIC.SubstitutionconditionsINCLUDEGB
32、TTQFID.ValidationsINCLUDEGBTTQFIE.ValidationconditionsINCLUDEGBTTQFIF.ValidationchecksINCLUDEGBTTQFII.ApplicationrulesINCLUDEGBTTQFIJ.SubstitutionexportroutinesINCLUDEGBTTQFIM.Trace/simulationINCLUDEGBTTQFIS.SubstitutionimportroutinesTheformroutinesforvalidationshavethefollowingsamplestructure(sampl
33、evalidationwiththenameVAL01):FORMVAL_VAL01.G_BFOUND=B_TRUE.DATA:CONDLIKED_BOOL,CHECKLIKED_BOOL,NVALSEVERESTLIKESY-SUBRCVALUE-1.G_STEP=001.PERFORMVALCOND_1VAL01#001CHANGINGCOND.IFCOND=B_TRUE.PERFORMVALCHCK_2VAL01#001CHANGINGCHECK.IFCHECK=B_FALSE.PERFORMMESSAGE_OUTPUTUSING.NachrichtenparameterCHANGING
34、NVALSEVEREST.ENDIF.ENDIF.ENDFORM.VAL_VAL01StatementG_STEP=001indicatesthestepthatisexecuted.TheprerequisiteofthestepisdefinedinFormRoutineVALCOND_.,theformroutineVALCHCK_.checksthevalidationstep.Toanalyzethisstep,youshouldcreatebreakpointsonthesetwoPERFORMstatementsandalsoonthecodelineIFCHECK=FALSE.
35、Indoingso,youcandeterminewhetheryourprerequisiteorthecheckiscausingtheproblemyouhave,forexampleafieldthatistobecheckeddoesnotcontainthevaluethatyouexpect.Theformroutinesforsubstitutionshavethefollowingsamplestructure(samplesubstitutionwiththenameSUB01):FORMSUB_SUB01.G_BFOUND=B_TRUE.DATA:CONDLIKED_BO
36、OL.G_CLASSID=009.G_SUBST_PERFORMED=B_FALSE.IFG_TAB_FLAG-BSEGB_TRUE.PERFORMREAD_MASTER_DATAUSINGBSEGG_BFOUND.IFG_BFOUND=B_FALSE.MESSAGEE083WITHBSEG.ENDIF.ENDIF.G_STEP=001.PERFORMSUBCON_3SUB01#001CHANGINGCOND.IFCOND=B_TRUE.BSEG-SGTXT=ThisisaTest.TextG_SUBST_PERFORMED=B_TRUE.ENDIF.ENDFORM.SUB_SUB01Asme
37、ntionedaboveforvalidations,G_STEP=001indicatesthestep,andtheprerequisiteofthesubstitutionisdefinedinFormRoutineSUBCON_TheactualsubstitutioniscarriedoutbythestatementsintheIFCOND=B_TRUE-ENDIFstructure.Thesestatementsvarydependingonthetypeofsubstitutioncreated(fieldallocation,constantvalue,userexit).I
38、nthesubstitutions,youshouldalsosetabreakpointonthePERFORMontheprerequisiteandthestatementIFCOND=B_TRUE.FunctionmodulesthatcallvalidationsandsubstitutionsValidations-FunctionmoduleG_VSR_VALIDATION_CALLThedifferentstructures/tables,thenameofthevalidation,calluppointandapplicationareaareassignedtothisf
39、unctionmodule.Substitutions-FunctionmoduleG_VSR_SUBSTITUTION_CALLTheparameterstransferredtovalidationsarealsotransferredtothisfunctionmodule.However,structures/tablesthatcontainthechangedvaluesarealsoreturned.Youcouldsetabreakpointtoanalyzebothfunctionmodules.Indoingso,youcouldseewhichdatawastransferred,whichdatathevalidationorsubstitutionattains,andwhichvaluesarereturned.WhatmustItakeintoaccountduringthesetusage?Whensetsareusedinvalidationsorsubstitutions,sourcecodeisgeneratedfromthevaluesinthesets.Performanceproblemscanocc
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中国建筑第八工程局有限公司南方公司2026届校园招聘笔试模拟试题及答案解析
- 医院安保工作预案
- 配电箱安装专项施工方案
- 2027届高三生物一轮复习课件:第9单元 第33讲 生态系统的物质循环、信息传递、稳定性
- 2026年福建泉州晋江市林业和园林绿化局公开招聘工作人员笔试参考题库及答案解析
- 短期过渡居住离婚协议书
- 领队求职指南
- 2026云南防务装备有限公司社会招聘1人笔试备考题库及答案解析
- 智能科学专业就业前景
- 兰州就业指导
- 安全生产“六化”建设指导手册解读培训
- 新型电化学酶传感器的研制及其在酚类污染物快速检测中的应用与前景探索
- 安徽省市政设施养护维修工程计价定额2022 下册
- 2026年ica国际汉语教师考试试题
- 2025年通信工程施工企业安全员三类人员ABC证题库及答案
- 2026年工业数据集联合开发标注与封装标准
- 非ST段抬高型急性冠脉综合征指南解读
- 职业道德模拟考试题库及答案2025年
- 2025年健康管理师考试题库及答案
- (正式版)DB61∕T 2058-2025 《米脂谷子良种繁育技术规范》
- 4S店安全管理培训课件
评论
0/150
提交评论