SAPABAP升级手册

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

ASUGUpgradeSymposiumJune2007ThomasJungSAPNetWeaverProductManagementGettingBacktoStandard–HowtoAddressYourModificationModificationAdjustmentUnicodeEnablementEnhancementFrameworkSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/3IntroductionTodaywewillfocusonanupgradefrom4.6CtoSAPERP6.0(FormerlymySAPERP2005)fromtheviewoftheABAPdevelopmentteam.Wewilllookatthetasksandchallengesyourdeveloperswillface,showingsomeoftheprogramchangesthatwillneedtobemade.AlsowewillseesomeofthenewABAPfeaturesthatyouwillbeabletoleverageonceyouareupgraded.ModificationAdjustmentUnicodeEnablementEnhancementFrameworkSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/5ProgramAdjustments-ExperiencesMadetheUnicodeAdjustmentstoprogramsduringtheUpgradeMustadjustCustomerFunctionsforUnicodeOfthe2000Objectsapprox200neededtobe“touched”DevSystemadjustments–3developersfor3daysUsedtheSandboxsystemandStandaloneNetweaversystemtofixdifficultproblemsinadvancePolishHRAdd-inwasmessySAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/6SPAU–ModificationAdjustmentDuringUpgradeTheupgradeprocessstopsandprovidestheopportunitytomakeModificationAdjustmentsOnlyObjects“touched”bytheupgradearelistedSplitScreenEditorforbeforeandafterviewofsourcecodeSPAUSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/7DEMODemo-SPAUSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/8SE95–ModificationBrowserAllowsyoutoviewALLmodificationsregardlessofhowtheymayormaynothavebeentouchedbytheUpgradeNoteCorrectionsarealsolisted(separatelyifmadeviaNoteAssistant)SE95SAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/9DEMODemo-SE95SAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/10SAMT–ExtendedProgramCheckGeneralToolforperformingmultipletypesofsystemwideprogramscansCancreateseparatescansetsbrokendownbyObjectName,Package,etc.LargeScanscanberaninthebackgroundStopsscanninganobjectuponfindingthefirstsyntaxerrorSAMTSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/11DEMODemo-SAMTModificationAdjustmentUnicodeEnablementEnhancementFrameworkSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/13UTF-16–UnicodeTransformationFormat,16bitencodingFixedlength,1character=2bytes(surrogatepairs=2+2bytes)Platformdependentbyteorder2bytealignmentrestrictionUTF-8–UnicodeTransformationFormat,8bitencodingVariablelength,1character=1...4bytesPlatformindependentnoalignmentrestriction7bitUSASCIIcompatibleE391B979343479U+3479CEB1B10303B1U+03B1C3A4E40000E4U+00E4ä6161000061U+0061aUTF-8UTF-16littleendianUTF-16bigendianUnicodecodepointCharacterRepresentationofUnicodeCharactersF0A081BB00DA7BDCDA00DC7BU+2007BSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/14Unicode-EnabledABAPProgramsProgramattribute„Unicodechecksactive“RequiredtorunonaUnicodesystemIfattributeisset,additionalrestrictions:–applyatcompileandatruntime–applyinUnicodesystemsandinnon-Unicodesystems–ensurethatprogramwillrunonnon-UnicodeandUnicodesystemswith(almost)identicalbehaviornotallowedokAttributenotset(notUnicodeenabled)okokAttributeset(Unicodeenabled)UnicodesystemNon-UnicodesystemSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/15ProgramAttribute„UnicodeChecksActive“SAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/16UCCHECK–UnicodeScanSimilartooltoSAMT,exceptitisspecificallydesignedforUnicodeCompatibilityChecksDoesNOTstopscanninganobjectafterthefirstproblemisfoundCanbeusedtosettheUnicodeAttributeonagroupofobjectsUCCHECKSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/17DEMODemo-UCCHECKSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/18UnicodeEnabledABAP–OverviewDesignGoalsPlatformindependence–IdenticalbehavioronUnicodeandnon-UnicodesystemsHighestlevelofcompatibilitytothepre-Unicodeworld–MinimizecostsforUnicodeenablingofABAPProgramsImprovedsecurity,maintainability,andreadabilityofABAPprogramsMainFeaturesCleardistinctionbetweencharacterandbyteprocessing1Character≠1ByteEnhancedcheckspreventprogrammingbasedonmemorylayoutassumptionsImprovedconversionfacilitiesImproveddatasetinterfaceImprovedsupportfordynamicprogrammingSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/19CharacterProcessingStringoperationsareonlyallowedforcharacter-likeoperands–ABAPtypesC,N,D,andT,STRING–Structuresconsistingonlyofcharacters(C,N,D,T)–XandXSTRINGarenolongerconsideredcharacter-liketypesByteProcessingVariantsofstringoperationsforbyteprocessing–Addition„INBYTEMODE“forstatements–Prefix„BYTE-“forcomparisonoperationsOnlyoperandsoftypeXorXSTRINGallowedCONCATENATEcf1cf2TOcf3.IFcf1CScf2....CONCATENATExf1xf2TOxf3INBYTEMODE.IFxf1BYTE-CSxf2....UnicodeRestrictions–StringProcessingSAPAG2007,SAPERP:UpgradesforABAPDevelopers/ThomasJung/20UnicodeRestrictions–LengthAndDistanceDeterminingtheLengthandDistanceCountedinbytesorincharacters?Specify!DESCRIBEFIELD...LENGTH...IN(BYTE|CHARACTER)MODEDESCRIBEDISTANCEBETWEEN...AND...INTO...IN(BYTE|CHARACTER)MODE.ExampleFORMwrite3USINGfldTYPEc.DATA:fldlenTYPEi.DESCRIBEFIELDfldLENGTHfldlenINCHARACTERMODE.IFfldlen=3.WRITE:/fld(3).ENDIF.ENDFORM.SAPAG2007,SAPERP:UpgradesforAB

1 / 48
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功