Вы находитесь на странице: 1из 3

CheckTableVsValueTable

CheckTableisforFieldlevelValidationwhereasValuetableisforDomainLevelValidations.
ValueTableproposestableforchecktable.

CheckTable

TheCheckTableisthetableusedbysystemtocheckifadataexistornotexist.

Whilecreatingatableifyouwanttobesurethatafieldcanhavesomevalues
andtheseareinacertaintable,youcangiveITthistableasCHECKTABLE.

ValueTable

ThisismaintainedatDomainLevel.

Wheneveryoucreateadomain,youcanenteredallowedvalues.ForexampleyougotoDomainSHKZG
Debit/creditindicator.
HereonlyallowedvaluesareHorS.

WheneveryouusethisDomain,thesystemwillforceyoutoenteronlythesevalues.

Thisisasortofmastercheck..
Tobemaintainedasacustomizationobject.
Thismeanthatifyouwanttoentervaluestothistableyouhavetocreateadevelopmentrequest&transport
thesame.

Differences:

1)checktablewillcarryoutthecheckforinputvaluesforthetablefieldbeingenteredinanyapplication
andvaluetablewillprovidevaluesonF4helpforthattablefield.

2)Thechecktabledefinestheforeignkeysandispartofthetabledefinition.
Thevaluetableispartofthedomaindefinition.

Itveryimportanttoknowthatatablebehavesasbothvaluetableandchecktablebutnotsimultaneously.

ConsiderafieldFpresentinadatabasetableDBT.
ConsideraTableT(AnotherdatabaseaTable)whichbehavesasaValueTableandCheckTableatdifferent
situations.

Case1.
WhenthefieldFisaprimarykeyforthedatabasetableDBT,thetableTbehavesasaValueTable.Wecanenter
anewvalueforthefieldFandvaluesforfieldFflowfromtableTthedatabasetableDBT.(FieldFistheprimary
keyforboththetablesTandDBT)

Case2.
WhenthefieldFisaforeignkeyinthedatabasetableDBT,thetableTbehavesasCheckTable.Wecannotenter
anewvalueforthefieldFandValuesforfieldFwillbeCheckedagainstTableTandonlythosevaluespresentin
tableTshouldbegivenforfieldF.(FieldFisthePrimarykeyinTableTandForeignKeyinTableDBT).
Seemoreat:http://www.saptechies.org/differencebetweenvaluetablechecktable/#sthash.3skN9fST.dpuf

Therelationaldatamodelcontainsnotonlytables,butalsorelationshipsbetweentables.Theserelationshipsare
definedintheABAP/4Dictionarybyforeignkeys.Animportantfunctionofforeignkeysistosupportdata
integrityintherelationaldatamodel.Foreignkeyfieldsmayassumeonlythosevaluesallowedbythecheck
table,inotherwords,valuesoccurringintheprimarykeyofthechecktable.

Aforeignkeyprovidesalinkbetweentwotables,foreg.,T1andT2byincludingareferenceintableT1tothe
primarykeyoftableT2.Forthispurpose,ForeignkeyfieldsassignedtotheprimarykeyfieldsofT2areincluded
inT1.TableT1,whichistheonebeingchecked,iscalledaforeignkeytable,andtableT2iscalledachecktable.
Thetermsdependent(foreignkey)tableandreferenced(check)tablearealsoused.
VALUETABLE:Ifthedomainofthecheckfieldhasavaluetable,thisisproposedbythesystemaschecktablein
theforeignfieldmaintenance.Thekeyfieldsofthevaluetableareinthiscaseassignedfieldsoftheforeignkey
tablewiththesamedomain.Thesefieldsmayassumeonlythosevaluesallowedbythevaluetable.

Thevaluerangeofthedomaincanbedefinedbyspecifyingvaluetable.Alltablefieldsreferringtothisdomain
canthenbecheckedagainstthecorrespondingfieldofthisvaluetable.Inorderthecheckcanbeexecuted,a
foreignkeymustbedefinedforthevaluetable.
http://sapient.wordpress.com/2007/06/19/whatisachecktableandwhatisavaluetable/

Q:Whatareinternaltableschecktable,valuetable,andtransparenttable?

Answer:Internaltable:Itisastandarddatatypeobject,whichexistsonlyduringtheruntimeoftheprogram.
Checktable:Checktablewillbeatfieldlevelchecking.Valuetable:Valuetablewillbeatdomainlevelchecking
ex:scarrtableischecktableforcarrid.Transparenttable:Existswiththesamestructurebothindictionaryas
wellasindatabaseexactlywiththesamedataandfields.

Вам также может понравиться