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

4/29/2016

CHIPs,PageBuilderandtheSidePanelPart1|SCN

GettingStarted Newsletters

Hi,Guest

LogOn

JoinUs

Store

SearchtheCommunity

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

Activity

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

Browse

Communications

Actions

WebDynproABAP

CHIPs,PageBuilderandtheSidePanelPart1
PostedbyRobinVleeschhouwerinWebDynproABAPonOct9,20119:02:02PM
Share

Tweet

Like

Introduction
InNetweaver7Ehp2wehavetheabilitytocreateCHIPs(CollaborativeHumanInterfacePart).
Theyarereallypowerful,andveryeasytocreate.
WecanimplementCHIPsinthePageBuilderandintheSidePanel.
AhugeadvantageofCHIPsisthatweonlyhavetocreatethemonce.Wecanthenimplementthemendlessinother
webdynproapplicationsbyconfiguration.Noprogrammingeffortisrequired.Afunctionalconsultantcoulddothe
configurationforneworexisitingapplications(inanidealworld!).
InaprojectIcurrentlyworkihavecreatedafewCHIPsfordisplayingadditionalinformationaboutthecustomer.The
CHIPsareimplementedinasidepanelandtheendusercanselectwhichadditionalinformationhewantstosee.
Inthisblog(part1)iamgoingtoexplainhowtocreateaCHIPfromawebdynpro.Inthenextblog(part2)iamgoing
toexplainhowtocreateasidepanelinawebdynpro.ThenwearegoingtoimplementourcreatedCHIPintheside
panelandautomaticwireittothewebdynproapplication.

Requirements

ANetweaver7Ehp2system.
SomeWebDynproknowledge

Whatarewegoingtocreate?
WearegoingtocreateaCHIPthatprovidesinformationaboutacarrier.
Thecarrierinformationisplacedinthesidepanel.
TheimagebelowistheresultoftheCHIPinthesidepanel

Step1:Createawebdynpro
InamedmywebdynprocomponentZZ_RV_CHIP

Step2:Setupthecomponentcontroller
Inthecomponentcontrollerwehavetosetupthecontextandcreateaninterfacemethod

http://scn.sap.com/community/webdynproabap/blog/2011/10/09/chipspagebuilderandthesidepanelpart1

1/8

4/29/2016

CHIPs,PageBuilderandtheSidePanelPart1|SCN

Themethodmustbeaninterfacemethod

YoucanonlyputSTRUCTURESoftheDDICasaparameter!
Writethecodebelowintothemethodset_data()

Step3:Setuptheview
Mapthecontextofthecomponentcontrollertotheviewandcreateaformlikebelow

http://scn.sap.com/community/webdynproabap/blog/2011/10/09/chipspagebuilderandthesidepanelpart1

2/8

4/29/2016

CHIPs,PageBuilderandtheSidePanelPart1|SCN

Step4:CreatetheCHIP
InthecontextmenuofthecomponentwehavetheabilitytocreateaCHIP

Fillinanameanddescription.
Don'tforgettofillinaCHIPIcon,soyoucanrecognizetheCHIPintheCHIPcatalog.
TheCHIPcatalogisarepositoryofallCHIPs.Wewillseeitinthenextblog(part2)

ForsettingdataintheCHIPwehaveInportsandforgettingdataoutoftheCHIPwehaveOutports.
TechnicallytheInportisanwebdynprointerfacemethodandtheOutportisanwebdynprointerfaceevent.
WehavecreatedaninterfacemethodsowecanselectitasanInport.

http://scn.sap.com/community/webdynproabap/blog/2011/10/09/chipspagebuilderandthesidepanelpart1

3/8

4/29/2016

CHIPs,PageBuilderandtheSidePanelPart1|SCN

AfteraddingthemethodwecanselectwhichparametersareavailabletowirethisCHIPittoanotherCHIP.
WiremeansaconnectionwithanotherCHIPbasedonvariables.

http://scn.sap.com/community/webdynproabap/blog/2011/10/09/chipspagebuilderandthesidepanelpart1

4/8

4/29/2016

CHIPs,PageBuilderandtheSidePanelPart1|SCN

TowirethisCHIPautomaticallytoanotherCHIPwehavetoprovideaTag.
Atagisanuniquenameforavariable,sothattheCHIPcansynchronizetoanotherCHIPbasedontheTagname.
Inthenextblog(part2)wewillseewhatthismeans.fornowjustcreateaTagforthevariableCARRID.

Don'tforgettosavetheCHIP.

Congratulations!
YouhavecreatedyoufirstCHIP.
AtthispointwecanimplementourcreatedCHIPinthePageBuilderorinaSidePanel.
Inthenextblog(part2)wearegoingtocreateawebdynproapplicationwithasidepanel.Thenwearegoingto
implementtheCHIPinthesidepanelandautomaticwireittothewebdynproapplication.

SAPLINK
CurrentlythereisnoCHIPpluginforSAPLINK,butmaybeifweaskThomasJung(oranotherdeveloper)reallynice,
thenmaybeitwillbetheresoon.
IhavecreatedaSAPLINKpluginforWebDynproCHIPs.Formoreinformationsee
CHIPs

SAPLinkpluginforWebDynpro

READFURTHER

CHIPs,PageBuilderandtheSidePanelPart2
CHIPs,PageBuilderandtheSidePanelPart3

Regards,
RobinVleeschhouwer
RVSAPConsultancy

http://scn.sap.com/community/webdynproabap/blog/2011/10/09/chipspagebuilderandthesidepanelpart1

5/8

4/29/2016
16500Views

CHIPs,PageBuilderandtheSidePanelPart1|SCN

Topics:abap,web_dynproTags:chip,page_builder

AverageUserRating
(6ratings)

Share

Tweet

Like

14Comments
PeterAlphenOct9,201111:52PM

HelloRobin,
Manythanksforthisclearexplanationofthisfeature.Keepongoing...
/Peter
Like(0)

ErikHovenOct10,20113:53AM

Verygoodblog!!
Like(0)

ShashidharPabbaJul31,20139:53PM

Thanksforexplainingthissoclearly!!!.
Like(0)

RobinVleeschhouwerAug1,20138:27AM(inresponsetoShashidharPabba)

HiShashidhar,

You'rewelcome.

Bestregards,

RobinVleeschhouwer
Like(0)

GabrieladePompignanAug29,20134:34PM

Thanksforthepost,thishasbecomeafrequentlyaccessedbookmarkandreferenceforuseinmy
currentprojectdevelopment(untilImemorizehowtocreateCHIPS)...
Like(0)

RobinVleeschhouwerAug30,20135:29PM(inresponsetoGabrieladePompignan)

HiGabriela,

Thanks!IamgladthatmycontributionishelpfultotheSAPcommunity.

Cheers,Robin
Like(0)

SuryaSandeepDec23,201312:11PM

Robin,

CanwedisplaySAPGUItransactionsinWebdynproChips?EspeciallyIframechips?Wedeveloped
andFPM_OVPapplication.WearetryingtocallaSAPGUItransactioninanIframefromatreeasa
sidepanel.ButwearenotabletopassvaluesfromthetreeintotheSAPGUItransactiondisplayedin
theIframe.Anysuggestionsplease?

Attachedapictureofmyrequirement.

TheDisplayFunctionalLocationsistransactionIH06inSAPbeingdisplayedinIframe.
WhentheuserselectsanyonerecordfromtheStandardALVandclicksonthe"Change
FunctionalLocation"choice(ChangeFunctionalLocationisabuttonchoiceinmyWebdynpro
View),transactionIL06shouldbedisplayedwiththevaluesprefilledandtheinitialscreenbeing
skipped.Forexample,ifuserselectsLCANLANfromthestandardtransactioninIframe,IL06
shouldbedisplayedwithLCANLLNwithfirstscreenskipped.Hopeyouunderstandmyproblem.

http://scn.sap.com/community/webdynproabap/blog/2011/10/09/chipspagebuilderandthesidepanelpart1

6/8

4/29/2016

CHIPs,PageBuilderandtheSidePanelPart1|SCN

Like(0)

RobinVleeschhouwerDec23,20132:39PM(inresponsetoSuryaSandeep)

HiSurya,

IamnotquitesureifIfullyunderstandyouproblem,butyoucancallGUItransactionviaITS.
Formoredetailspleaseread:CallingTransactionCodesthroughWebDynproApplication

Bestregards,

RobinVleeschhouwer
Like(0)

SuryaSandeepDec23,20135:14PM(inresponsetoRobinVleeschhouwer)

HiRobin,

TheSAPtransactionIH06(DisplayFunctionalLocations)isalreadybeing
displayedviaITSURLinourCockpit.

HowweexecutetheCockpitisbelow:

Step1:Userselectsarecordinthetree.Intheattachedpicture,userselectedLC

Step2:Heopensthe"FunctionalLocation"tabontherighthandside.Allthe
functionallocationsthatstartwithLCaredisplayedintheFunctionalLocationstab.
ThislististheoutputofIH06transaction.Insimpleterms,IH06transactionoutputis
beingdisplayedinIframe.

Myproblemlieshere
Step3:Nowuserselectsanyonerecordofthislistoutputandheclickson
oneofthechoicesfromthelist.Intheabovepictureuserselected"LCANL"
andheclicksonthe"ChangeFunctionalLocation"choice.THIS"CHANGE
FUNCTIONALLOCATION"ISABUTTONCHOICEINMYWEBDYNPROVIEW.
NOTAPARTOFFPM_OVP_COMPONENT.Myproblemis,astheoutputisina
standardtransactioninIframeandtheuserclicksonabuttonchoicein
Webdynpro,howcanwecapturethevaluesoftheLeadselectinIFRAMEand
usetheminourWebdynpro?Thatis,howdowecapturethe"LCANL"value
theuserhasselectedinIframe?Anysuggestionsareappreciated.
Like(0)

RobinVleeschhouwerDec24,20139:11AM(inresponsetoSuryaSandeep)

HiSurya,

ThemainproblemisthattheWebDynproapplicationandtheDynpro
applicationrunintheirownSAPsession.Ithinkthebestoptionwouldbe
tousesharedmemory.

Formoreinformationaboutsharedmemorypleaseread:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/307d791b
33432e10f78ae1d50c7cf89a?overridelayout=t

Bestregards,

RobinVleeschhouwer
Like(0)

SuryaSandeepDec24,201310:18AM(inresponsetoRobin
Vleeschhouwer)

http://scn.sap.com/community/webdynproabap/blog/2011/10/09/chipspagebuilderandthesidepanelpart1

7/8

4/29/2016

CHIPs,PageBuilderandtheSidePanelPart1|SCN
ThankyouverymuchRobin.Butsharedmemorywasthefirst
clueweresortedto.Wefailedinthisbecause,theLeadselectof
theALVlistinIH06doesnothaveanyevent.Imean,after
clickingononeoftherecordsinthelist,debugcontroldoesnot
gointoFORMUSER_COMMANDoftheALVlistbecauseIH06
ALVlistisbuiltusingREUSE_ALV_LIST_DISPLAY.Wewere
successfulintransferringaTesttextfromFORM
USER_COMMANDtoourWebdynpro.Soourmainproblemis
howtoidentifythatuserhasselectedononeoftherecords
inIH06ALVlist?
Like(0)

RaghavendraPrabhuMithalOct28,20144:31PM

HiRobin,Veryinformativeblog.Itriedreplicatingbutnotableto,Iamunabletocreateainport
eventhoughIhaveainterfacemethod,isthereamissingstep?

thanksinadvance,
raghav
Like(1)

SameerDhukeJan22,201512:27PM(inresponsetoRaghavendraPrabhuMithal)

Sameishappeningwithme.Robincouldyoupleasehelpus.

Thanks&Regards,
Sameer
Like(0)

RaghavendraPrabhuMithalJan22,20151:27PM(inresponsetoSameerDhuke)

Sameer,ittakesonlydictionarystructure.youputadictionarystructureandit
works...
Like(0)

SiteIndex
Privacy

ContactUs
TermsofUse

SAPHelpPortal
LegalDisclosure

Copyright

http://scn.sap.com/community/webdynproabap/blog/2011/10/09/chipspagebuilderandthesidepanelpart1

FollowSCN

8/8