PRINT2.docx

上传人:b****1 文档编号:242701 上传时间:2023-04-28 格式:DOCX 页数:10 大小:496.38KB
下载 相关 举报
PRINT2.docx_第1页
第1页 / 共10页
PRINT2.docx_第2页
第2页 / 共10页
PRINT2.docx_第3页
第3页 / 共10页
PRINT2.docx_第4页
第4页 / 共10页
PRINT2.docx_第5页
第5页 / 共10页
PRINT2.docx_第6页
第6页 / 共10页
PRINT2.docx_第7页
第7页 / 共10页
PRINT2.docx_第8页
第8页 / 共10页
PRINT2.docx_第9页
第9页 / 共10页
PRINT2.docx_第10页
第10页 / 共10页
亲,该文档总共10页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

PRINT2.docx

《PRINT2.docx》由会员分享,可在线阅读,更多相关《PRINT2.docx(10页珍藏版)》请在冰点文库上搜索。

PRINT2.docx

PRINT2

ABAP/4Dictionary

ObjectivesChapter2

IntegrationintoABAP/4Workbench(Active)

⏹TheABAP/4Dictionaryisanactive,integralcomponentoftheABAP/4DevelopmentWorkbench.AnychangemadeintheDictionarybecomeseffectiveatonceintherelevantABAP/4programsandscreens.

⏹ThebasisforthisistheinterpretivenatureoftheR/3Systems.TheinterpreterdoesnotoperatedirectlyontheoriginalcodeofanABAP/4programorscreen,butinterpretsagenerated,internalrepresentation.

⏹WhenchangesaremadeintheABAP/4Dictionary,automaticpost-generationofthisinternalrepresentationguaranteesthattheinterpreterisalwaysworkingwiththelatestdata.

BasicDictionaryObjects

⏹ThebasicdatadefinitionobjectsintheABAP/4Dictionaryaretables,domainsanddataelements.Domainsdescribethetechnicalattributesoftablefields(e.g.fieldtype,fieldlength),whiledataelementscontainthesemanticdefinition(e.g.shortdescription).

⏹Fieldsarenotindependentobjectsandcanonlybemaintainedwithintables.Theypresupposetheexistenceofadataelement.

⏹Adataelementpresupposestheexistenceofadomain.

⏹DomainscanbedefinedwithoutfurtherreferencetootherDictionaryobjects.

DualLevelDomainConcept

⏹IntheABAP/4Dictionary,twotypesofobjectsareusedfordatadefinitionpurposes.Thesearetechnicaldomains(knownasdomainsintheR/3System)andsemanticdomains(knownasdataelementsintheR/3System).

⏹Thedomainisthecentralobjectusedtodescribetheattributesofabusinessobject.Itdescribesafield’svaluerangewhichisdefinedbyspecifyingformalattributessuchasexternalformatandlengthandbyspecifyingfixedvaluesoravaluetable.

⏹Thedataelementisthesemanticobject.Itdescribespreciselythepurposeofadomaininaparticularbusinesssettingforthefieldswhichdependonit.

⏹Forexample,thetablefieldsFORCURAM(tableSBOOK)andPRICE(tableSFLIGHT)belongtothesamedomainS_PRICE.Todistinguishtheiractualbusinessapplication,thefieldFORCURAMusesthedataelementS_F_CUR_PRandthefieldPRICEusesthedataelementS_PRICE.However,bothfieldsbelongtothesamedomainbecausetheyarecurrencyfieldsandthushavesimilartechnicalatttributes.

TransparentTables

⏹WhenithasbeenactivatedintheABAP/4Dictionary,atransparenttableisautomaticallycreatedinthedatabase.Thisprocesstranslatesthedatabase-independentdescriptionofthetableintheABAP/4Dictionaryintothelanguageofthedatabasesystembeingused.

⏹ThedatabasetablehasthesamenameasthetableintheABAP/4Dictionary.ThefieldsalsohavethesamenamesinboththedatabaseandintheABAP/4Dictionary.ThedatatypesintheABAP/4Dictionaryareconvertedtothecorrespondingdatatypesofthedatabasesystem.

⏹AsofRelease3.0,thesequenceoffieldsintheABAP/4Dictionarycanvaryfromthesequenceoffieldsinthedatabase.Thisallowsyoutoinsertnewfieldswithouthavingtoconvertthetablebyperformingaphysicalreorganization.Whenaddingnewfields,theadjustmentismadebychangingthedatabasecatalog(ALTERTABLE).Anewfieldisappendedtothedatabasetable,regardlessofitspositionintheABAP/4Dictionary.

CreatingTransparentTables

⏹ByactivatingatableoftypeTRANSPintheABAP/4Dictionary,youautomaticallycreatethetableviathedatabaseutilityinthedatabase.

⏹Onlycomplexdatabaseoperationssuchastableconversionsmustbeperformeddirectlyviathedatabaseutility.Simpleoperations,suchascreatingobjects,canbeperformedautomaticallybyactivatingtheobjectsintheABAP/4Dictionary.

⏹Inthedatabaseutility,youcancontrolthedatabaseobjectswithananalysistool.

Structures

⏹Besidesdefiningtablesstoredinthedatabase,youcanalsodefinethestructureofdatawhichoccurswhenperformingcalculationsinprograms,orwhenpassingdatabetweenprograms,globallyintheABAP/4Dictionary.Thiskindofdefinitionisknownasastructure.

⏹Structuresdonotcorrespondtoobjectsinthedatabase.

⏹StructuresaredefinedandactivatedintheABAP/4Dictionary.TheycanthenbeaddressedbyABAP/4programsliketablesdeclaredintheTABLESstatement.

⏹Whiledatacanbepermanentlystoredintransparenttablesinthedatabase,datainstructuresexistsonlyduringtheruntimeofaprogram.

⏹Structuresareusedinparticularfordefiningdataattheinterfaceofmodulepoolsandscreens,aswellasforassigningthetypestotheparametersofreusablefunctionmodulesorsubroutines.

⏹Definingstructurescentrallymeansthatyoucanchangethemcentrally.TheactiveABAP/4Dictionarythenensuresthatanymodificationsaremadeinalltheplacesconcerned.

CreatingStructures

⏹Todefineastructure,yougointotheObjectBrowserandproceedasfollows:

-UnderSingleobjects,selectDictionaryobjects.

-OntheDictionaryobjectsscreen,selectStructure.

⏹Onthenextscreen,youcanenterthefieldnamesofyourstructureandspecifythenameofanexistingdataelement(ordefineanewone)whichpointstoadomain.

⏹Whencheckedandfoundtohavenoerrors,thestructureissavedandactivatedandisreadyforuse.

AggregatedObjectsintheABAP/4Dictionary:

Views

⏹‘Aggregated’meansconsistingofseveralcomponents.IntheABAP/4Dictionary,aggregatedobjectsareobjectswhichcomefromseveraldifferenttransparenttables.

⏹Viewsareapplication-specificviewsofdifferentABAP/4Dictionarytables.

⏹ViewsallowyoutogatherinformationfromthefieldsofdifferenttablesandpresentittousersintheformtheyrequirewhenworkingwiththeR/3System.

⏹ViewsaremainlyusedforprogrammingwithABAP/4andforF4onlinehelp.

Summary(Chapter2)

Exercises(Chapter02)

ExercisesChapter2:

ABAP/4Dictionary

%Nameofyourstructure:

ZCA##

##:

Groupnumber

Task:

DefineanABAP/4Dictionarystructure(youwillusethisinalaterexercise).

Thestructureshouldconsistofthefollowingfields:

FieldnameDataelement

--------------------------------------------------------------------------------

CARRIDS_CARR_ID

SEATSMAXS_SEATSMAX

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2