You are on page 1of 8

14/04/2016

Exercise:loadingdatafromECCtohanausingB...|SCN

GettingStarted Newsletters

Hi,Guest

LogOn

JoinUs

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

Activity

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

Browse

Exercise:loadingdatafromECCtohana
usingBODS(dataservices)

Store

SearchtheCommunity

Communications

Actions

Version1

createdbyVikasGautamon31Aug201417:51,lastmodifiedbyVikasGautamon31Aug201419:40

Share

20

Tweet

Like

Hi,todaywewilltrytoload/transferdatafromoneoftheecctabletohanausingbodataservices.

Steps:
Step1:Createtwodatastoresysteminbodsrelatedtohanaandecc.
step2:searchforyourtable
step3:createproject,jobanddataflow.
step4:Indataflow:wewilluseandmapourtabletoquerytransformandtemplatetable.
thetemplatetablewillcorrespondtosettinginhana
step5:validate,executethejob
step6:checkinhanasystem

Step1:datastorerelatedtohanasystem
createyourtargetlinksonthebottom6thtab:datastore:whichwillbeyourmappingforhanasystem,whereitwill
updatethedata.
Callitvikg_hana1andgivenecessarydetails:
Datastorename:vikg_hana1
Datastoretype:database
Databasetype:SAPhana
Databaseversion:HANAv1.x
Databaseservername:saphan
Port:30015
UsernameHana1,givepwd.
Clickcheckboxenableautomaticdatatransfer

Step2:Createadatastorew.r.toECCsourcesystem

YoucanfindthesedetailsfromSAPlogonpad:

http://scn.sap.com/docs/DOC57721

1/8

14/04/2016

Exercise:loadingdatafromECCtohanausingB...|SCN

Createadatastorewithbelowdetails:
Datastorename:vikg_ecc
Datastoretype:SAPapplication
Databaseservername:ECCEHP6
Userid(inmycaseHana1)npasswordforeccsystem:
Clickadvancedbutton:givesystemIdas10.

Step3:searchforyourtable

Doubleclickvik_eccdatastorejustcreated.

http://scn.sap.com/docs/DOC57721

2/8

14/04/2016

Exercise:loadingdatafromECCtohanausingB...|SCN

ClickRepositoryMetadataradiobuttonandsearchforVBAPintheexternalmetadata.
Whensearchresultgivesvbap,rt.Clickandimport.
Similarlydoforvbakoranyothertable.

Asyoucansee,wehavesalesorderheaderanditemtables:Vbak,Vbapindisplay.
RightClickontables>properties>tabviewdata>checkwhetheritisdisplayingdata.
Ifitisdisplayingdatameansyourconnectionisok.
ThisdatawewilltrytotransfertoHANA.

Step4:createproject,jobanddataflow.

Createanewprojectintheprojectarea(fromthenewbuttononapplicatonbar:ecc_vikg01)>
rt.Clickandcreateabatchjobecc_job2.
Doubleclickjobecc_job2>dragndropthedataflowbuttonfromthert.Sidebuttonbar.
Callitdf02.doubeclickdf02.

http://scn.sap.com/docs/DOC57721

3/8

14/04/2016

Exercise:loadingdatafromECCtohanausingB...|SCN

Step5:Indataflow:wewilluseandmapourtabletoquerytransformandtemplatetable.
thetemplatetablewillcorrespondtosettinginhana

>doubeclickdf02.>

1.Dragndropyourvbaptableiconyoujustcreateintheeccdatastore'vikg_ecc'.
2.Thendropqueryandtemplatetablefromthert.sidemenu.
3.Ontemplatetable:giveyourtablenameECC_BODS_VBAP,giveyourhanadatastore'vikg_hana1'
weearliercreatedinthedatastorearea.,giveownerasyourhanaschemaname:vikasg.
thetablewillbecreatedinthisschema
4.Linktabletoqueryandquerytohana
5.doubleclickqueryicon:Selectsomeoftherequiredfieldsintableandbringonthert.Tobeoutputsidequery.
thequerytohanafieldmappingwillhappenautomatically.Ifnotthenyouneedtodoit.
6.Yourscreenwilllooklikethis.
IfyouclickthemagnifierbuttonontableVBAP,itwillpreviewordisplaytabledataatbottom

Asyoucansee,Queryandfieldswithprimarykeyfields:vbelnandposnr

5.doubleclickqueryicon:Selectsomeoftherequiredfieldsintableandbringonthert.Tobeoutputsidequery.
thequerytohanafieldmappingwillhappenautomatically.Ifnotthenyouneedtodoit.

http://scn.sap.com/docs/DOC57721

4/8

14/04/2016

Exercise:loadingdatafromECCtohanausingB...|SCN

Ifyouclickthetemplatetable:itwillshowthefieldsyouselectedinquery.

Step6:validate,executethejob

Thenrt.Clickonbatchjobecc_job2>executeandselectyourdataflowdf02(onthepopup).

After1or2mins.Thejobwillfinish.
Fromthejoblog:Thejobhascompletedsusccessfully.
Secondtabsays:17032recordsweretransferred.

http://scn.sap.com/docs/DOC57721

5/8

14/04/2016

Exercise:loadingdatafromECCtohanausingB...|SCN

Step7:checkinhanasystem

NowwewillcheckinHanaSystem:
Asyoucansee'ECC_BODS_VBAP'tableiscreatedintheschema'vikasg'.
Thisisthesametablenameandschemawehadgivenintemplatetablesettinginbods.schemawasthereinhana
beforehand,
butthetableiscreatedatruntimeafterthejobhascompletedsuccessfully.

checkforfieldsanddatatypeoffields
howvbeln,posrandnetwrhadthedatatypevarchar,numericanddecimalsinthequerytransformation
anditisnvarcharanddecimalintheHanasystem

Now,wewillpreviewdata:

http://scn.sap.com/docs/DOC57721

6/8

14/04/2016

Exercise:loadingdatafromECCtohanausingB...|SCN

Ontheruntimeinformationtab,itsayswhenthetablewascreatedandupdatedandhowmanyrecordswere
transferred.

Similarly,youcanuploadforsalesheader:vbakdatabycreatingnewdataflow(df01)andnewbatchjob(ecc_job)in
thesameproject.
InhanasystemyoucanseewecreatedECC_DS_HANA_VBAKtablebelowtheECC_BODS_VBAPtable.
Note:whenyourunyourparticularjob,youhavetoselectthedependentdataflow

hope,youfindituseful.

Bestregards,
Vikas

2200Views

Tags:bods_hana,hana_ecc_bos

AverageUserRating
(4ratings)

Share

20

http://scn.sap.com/docs/DOC57721

Tweet

Like

7/8

14/04/2016

Exercise:loadingdatafromECCtohanausingB...|SCN

3Comments
LarsBreddemann01Sep201402:52

Funny,justhadaflashbackto2011whenIfirstgotintouchwithSAPHANA.Therewasatutorialfor
DSusagewithSAPHANA:lookedexactlylikethispiece...
Like(0)

rahuldesai02Oct201520:57

VeryNiceanddescriptiveArticle.ItreallyhelptoConsultantswhostartwithBODSHANA
Like(1)

LAKSHMINARASIMHANN16Nov201512:39

GoodDocumentfortheHANAbeginners..Ifthescreenshothadbeenmoreclear,itwouldhavebeen
toogood..:)ThanksVikas
Like(0)

SiteIndex
Privacy

ContactUs
TermsofUse

http://scn.sap.com/docs/DOC57721

SAPHelpPortal
LegalDisclosure

Copyright

FollowSCN

8/8

You might also like