Professional Documents
Culture Documents
CallSAPTcodeusingWebdynproforABAP|SAPIgnite
Home
ABAP
Welcome
Register
Articles
Certifications
Downloads
FeaturedArticle
WhatPeopleHaveToSayAboutUs!!
Forum
Search
Go
searchsite
Subscribetoourmailinglist
CallSAPTcodeusingWebdynproforABAP
emailaddress
May8th,inArticles,Home,WebdynproForABAP,byRaj
IfyouhavearequirementtoCallSAPstandardTransactioncodefromWebbrowserinyour
webdynproApplicationthancheckitoutthisarticletoknowhowcanachivethis.
ADVERTISEHERE
webmaster@sapignite.com
Author:Raj
Author'sWebsite|ArticlesfromRaj
Raj(RajuBorda)isanApplicationDeveloperfocusingonCustomDevelopmentparticularlyin
theareasofABAP,WD4A,JAVA,APO,Enterpriseservices,MobileapplicationsandPI
Developer/consultant.HeisalsocertifiedinABAP,PIandinsurancedomain.Facebook
Categories
ABAPDebugger
ABAPInterviewGuide
Articles
Certifications
CodeInspector
CodingChallenge
DataDictionary
Downloads
Enhancement&UserExit
FeaturedArticle
FreeAccesstoSAPIDESsystem
GUI
Home
SAPABAP
SAPHANA
SAPTeched(Dcode)
Unicode
WebdynproForABAP
Whatpeoplehavetosayaboutus!!
ProblemDescription
ItwillhelptocallSAPTcodefromtheWebbrowserusingwebdynproforABAP.
SolutionDescription
SAPInternetTransactionServer(ITS)TheITSistheinterfacebetweentheInternetandR/3and
istheruntimeenginethatlinksWebservertotheR/3Applicationserver.Sotodisplayastandard
tcodeinyourwebdynproapplicationyoucanuseITS.
http://sapignite.com/callsaptcodeusingwebdynproforabap/
1/9
3/20/2015
CallSAPTcodeusingWebdynproforABAP|SAPIgnite
SettingneedstobeDone.
GotoSE80:InthetopmenuchooseUtilities(M)>settings.Rightclickonthetabarrowuntil
youcometotabInternetTransactionServer.
MakesurethatPublishtabeandcheckmarkIntegratedITSisselected.
FindusonFacebook
SAPIgnite
Like
2,140peoplelikeSAPIgnite.
StarttransactionSE80.ChooseInternetServicefromthefirstdropdownboxEnter
SYSTEMintheinputfield.YouwillseetheITSserviceSYSTEManditscomponentsinatree
structure.RightclickonSYSTEMinthetreeandselectPublish>CompleteServiceto
publishtheservice.oncethepublishingiscompletedthesystemwillissueamessageObject
publishedsuccessfullysiteINTERNAL.
RepeatthepreviousstepwithSHUFFLERandWEBGUIinsteadofSYSTEMtopublish
both,too.
Facebooksocialplugin
Howtotestit::
EnterTcodeSICF.
Selectthepathas:/sap/bc/gui/sap/its/webgui
Rightclickonwebguiandclickontesttoexecutetheservies.itwillopenthesapscreeninweb
browser.
Nowitstimeforsomecoding.createLINKtoURLorLINKTOACTIONaccordingto
requirement.thecodebelowisdevelophavingscinario::
Usersaredisplyedcreatinglinktouseridcoloumn.Wheneverenduserclickontheanyoftheuser
id.on_clickmethodwillbecalledwihopentheuserdetailsinSU01DBeforthatgetthepathof
theapplicationserver.youcanfinditinwebdynproapplication.dobleclcikonwebdynpro
applicationinthatyoucanfindtheURLinAdministrativedata.
data:lr_nodetypereftoif_wd_context_node,
lt_event_propertiestypetableofIF_MAIN=>element_event_properties,
ls_event_propertiestypeIF_MAIN=>element_event_properties.
data:lo_window_managertypereftoif_wd_window_manager.
data:lo_api_componenttypereftoif_wd_component.
data:lo_windowtypereftoif_wd_window.
data:ld_urltypestring.
DATA:FINAL_URLTYPESTRING.
fieldsymbols:<l_value>typeany.
*fillinternaltable
ls_event_propertiesname=COLUMN_ID.
ls_event_propertiesvalue=r_param>column.
appendls_event_propertiestolt_event_properties.
ls_event_propertiesname=INDEX.
ls_event_propertiesvalue=r_param>index.
appendls_event_propertiestolt_event_properties.
ls_event_propertiesname=ATTRIBUTE.
ls_event_propertiesvalue=r_param>attribute.
appendls_event_propertiestolt_event_properties.
assignr_param>value>*to<l_value>.
ls_event_propertiesname=VALUE.
http://sapignite.com/callsaptcodeusingwebdynproforabap/
2/9
3/20/2015
CallSAPTcodeusingWebdynproforABAP|SAPIgnite
ls_event_propertiesvalue=<l_value>.
appendls_event_propertiestolt_event_properties.
*navigatetocontextnodeEVENT_PROPERTIES
lr_node=wd_context>get_child_node(EVENT_PROPERTIES).
*bindinternaltabletocontextnode
lr_node>bind_table(lt_event_properties).
FINAL_URL=http://<url>:portno/sap/bc/gui/sap/its/webgui?
~TRANSACTION=SU01D%20USR02BNAME=.
CONCATENATEFINAL_URLls_event_propertiesvalueINTOFINAL_URL.
CONCATENATEFINAL_URL&~OKCODE=SHOWINTOFINAL_URL.
lo_api_component=wd_comp_controller>wd_get_api().
lo_window_manager=lo_api_component>get_window_manager().
ld_url=FINAL_URL.
CALLMETHODlo_window_manager>CREATE_EXTERNAL_WINDOW
EXPORTINGURL=ld_url
RECEIVINGWINDOW=lo_window.
lo_window>open().
RelatedPosts:
flashpiechartwithwebdynproforabap
MVCArchitectureforWebdynproforABAP
TutorialforinteractiveformsbyAdobeusingWebdynproforABAP
FloorPlanManagerwithWDA
CreatingaRoadmapapplicationinWebdynproforABAPTutorial
RelatedPosts
flashpiechartwithwebdynproforabap
MVCArchitectureforWebdynproforABAP
TutorialforinteractiveformsbyAdobeusingWebdynproforABAP
http://sapignite.com/callsaptcodeusingwebdynproforabap/
3/9
3/20/2015
CallSAPTcodeusingWebdynproforABAP|SAPIgnite
FloorPlanManagerwithWDA
CreatingaRoadmapapplicationinWebdynproforABAP
Tutorial
Likethispost?Shareit!
">
">
">
ADVERTISEHERE
UserComments
NiceOne
Raju
May11,2010
REPLY
Suchita
September4,2010
GoodOne.
Butyouhavenotgivenwheretoimplementthiscode.
Canyouprovideanyinfoonthat?Alsoinyourscenario,youhave
notprovidedanyinformationonwhereareyouprovidinglinktothe
userid?isitonSAPGUIforHTMLperticulatrlyorinawebdynpro
application.
thanks&Regards.
Suchita
http://sapignite.com/callsaptcodeusingwebdynproforabap/
4/9
3/20/2015
CallSAPTcodeusingWebdynproforABAP|SAPIgnite
REPLY
HiSucheta,
ThiscodeisimplementedinWebdynproforABAPapplication.
AssumethatthereisaWebdynproforABAPApplicationwhich
displaysthelistofusers.
NowmakeuseofLINKTOACTIONorLINKTOURLproperty
andcreateamethodwhichwilltriggerwhenyou
ClickontheuserIDcolumn.Thecodewhichwehaveprovided
aboveisputinsidethismethod.
Kindlygetbacktouseifiamnotclear.
Thanks,
Raj
September4,2010
REPLY
HelloRaj,
Couldyoupleasetellmewhatis%20aftertransactioncode.
Isthereanyspecificreasonforthis.
Thankingyou,
satya
March10,2011
REPLY
Hi,
WhenyouconstructanURLitcantputspacein
between.so%20isusedasafillerinsimpleword.
letssay:
IfyouwanttocreateURLlike:
http://www.sapignite.com/articles/list/webdynproforabap
Itsnotpossibletocallit.asitwillgiveyouanerror.
Sowekeep%20inbetweenthewords.
http://www.sapignite.com/articles/list/webdynpro%20for%20abap
itisnothingbut:URLEncodedFormatofablankspace
(hex20=dec.32)
Thanks.
Raj
March10,2011
REPLY
HelloRaj,
Thanksforthereply.
Ihavearequirmentlike,IhavetoopenWBS
Elementwhenuserclicksabutton.
Ihavecreatedalinkforthis,itisopeningthe
transaction.Itisopeningapopup,duetookcommand
giveninthelink.
LaterIwouldliketofillfieldandgiveokcommand.
Idonotknowhowtofillfieldinthepopupandgive
onemoreokcommand.
Ihavepassedthisurl,butitisnotfillingthefieldin
thepopup.
Couldyoupleasehelpme.
Regards,
satya
http://sapignite.com/callsaptcodeusingwebdynproforabap/
satya
March14,2011
5/9
3/20/2015
CallSAPTcodeusingWebdynproforABAP|SAPIgnite
SerhiyMaryshchak
Hi,
IcandisplaytheSAPtransactoninIFrame.
Thanks
September24,2010
REPLY
howdidyouknowthefinalURL
http://<url>:portno/sap/bc/gui/sap/its/webgui?
~TRANSACTION=SU01D%20USR02BNAME=Howcanifind
thispathformyssytems??
Krishan
June15,2011
REPLY
HiKrishan,
ITSislocatedonthesamepath.
Onlythingwillbechangedispart.whichucanseein
applicationofwebdynproforabapcomponent.
thanks
Raj
June15,2011
REPLY
Kiran
June22,2011
Hello,
IhaveanWDapplicationinwhichoneofthecolumnofatable
inheritedtheLinkToURLproperty.IamnotfindinganAction
attributetocreateamethod.IamonECC6.0,EHP1(Release701)at
SP7.AmImissingsomethingoristhereadifferentplaceformeto
createtheactionmethod?
Thanks,
Kiran
REPLY
Kiran
January12,2012
CanyoucallME21NforaparticularPO?
Itriedanddidnotwork.Iamlookingforasolutions.Pleasehelpme.
Thanks,
Kiran
REPLY
HiKiran,
DidyoutryURLconstructionlike:
http://:portno/sap/bc/gui/sap/its/webgui?
~TRANSACTION=SU01D%20USR02BNAME=
whereUSR02BNAMEisthefieldname.
http://sapignite.com/callsaptcodeusingwebdynproforabap/
6/9
3/20/2015
CallSAPTcodeusingWebdynproforABAP|SAPIgnite
LetmeknowtheURLwhichyouareconstructingitshouldwork.
Thanks
SAPIGnite
Raj
Raj
January13,2012
REPLY
Hiraj,
Yes,Itried.Iguessthereissomeproblemwithhandlingthe
enjoytransactions.Couldyoucreateadummyapplicationand
seeifyouwereabletoopenthePOforthenumberbeing
passedfromtheapplication?
Pleaseemailmeongeneralkiran@gmail.comasamnot
receivinganyalertsfromthisportalwhenyourespond.
Thanksforyourhelp.
Best,
Kiran
Kiran
January30,2012
REPLY
kiran
June11,2012
DearRaj,
Yourarticlesareverynice.Iwouldliketoknowifyouhadany
ebookforwebdynpro.Otherwiseplzsuggestmesomegoodbooksof
Webdynproprogramming.Iwantthoselooklikemore
programmaticalnotmoretheoritical.
ThanksInAdvance,
Kiran
REPLY
HelloKiran,
Thebestbooksforwebdynproaresapcertificationmaterials
books
Like:
NET310:Fundamentalsforwebdynproforabap
IFyouwanttolearnFloorplanmanageryoucantry
NET313:Floorplanmanager.
Thanks&Regards,
~Raj
SAPIGnite
Raj
June11,2012
REPLY
HiRaj,
Sindhu
September10,2012
Thisblogisjustamazing.ItriedtherawmethodofcallingaURL
withCALL_BROWSERfunctionmoduleandIamunabletoopen
theURL.
Iamtryingtoopenatransaction(TransactionBBP_BID_DISPURL
ispassedtoCALL_BROWSERtoachievethesame)withjustone
parameter(~EVAL_GUID)inSRMPortalandtheoperationisjust
stuckshowingtheSAPGUIforHTML.
http://sapignite.com/callsaptcodeusingwebdynproforabap/
7/9
3/20/2015
CallSAPTcodeusingWebdynproforABAP|SAPIgnite
Iamnotsurewhatiswrong.
MyURLis:http://server:portno/sap/bc/gui/sap/its/webgui?
~transaction=bbp_bid_disp%20~EVAL_GUID=guidDYNP_OKCODE=SHOW
Appriciateifyoucanhelpmegetthroughthis.
Regards,
SindhuSSwamy
REPLY
Shrey
October19,2012
HiRaj,
Yourarticlesareverynice.Itriedoutanditworksforme..Thanksfor
providingthisinformation.
HoweverihavearequirementlikewhenicallaTCODEusingit
showitasnewnewwindow.Inthisnewwindowthestandardback
buttondoesnottakemebacktomywdapplication.
Isthereawaythroughwhichitgetsbacktowebdynproapplication
fromwheretheTCODEiscalled.Inmyrequirementiamusing
radiobuttonandeachonradiobuttonatcodeiscalled.
Regards
Shrey
REPLY
HiShrey,
Youwanttoclosetheopenedwindow(ofTcode)??
tryclose_windowmethod
Thanks
~Raj
SAPIGnite
Raj
October19,2012
REPLY
HiRaj,
Thanksforyourquickreply.
Myrequirementistotogetbacktothefirstwebdynpro
applicationfromwhichTCODEisbeingcalled.
Infirstapplication,ihave4radiobuttonsandonthere
selectioniamcallinglinktourl.ThislinktoURLhastcodes
binded.
Saywheniclickthefirstradiobuttonitopenthetcode(R/3)in
newwindow.Heremyrequirementfails.
idontwanttoeverytimetoapplicationtorundifferenttcodes.
ISthereanywaywhichucansuggestme?
Thanks
Shrey
Shrey
October19,2012
REPLY
Shrey
November9,2012
HiRaj,
IsthereawaytogetR/3iconsstandardGUI(likeBack,
Execute)whencallingaTCODE.Itriedbutiamgettingonlybuttons
andnotthereicon.
ISthereanywaywhichucansuggestme?
Thanks
http://sapignite.com/callsaptcodeusingwebdynproforabap/
8/9
3/20/2015
CallSAPTcodeusingWebdynproforABAP|SAPIgnite
Shrey
REPLY
LeaveaReply
Name
Email
URL(optional)
Submit
CopyrightTerms
RecentComments
SAPIGNITE@2012Allproductnamesonthis
websitearetrademarksofthecompaniesthat
ownthem.Sapignite.comisnotaffiliatedwith
SAPAGinanyway.SAPAGistheregistered
trademarkholderofSAP,SAPR/3,mySAP,
ABAP,xApps,NetWeaver,andother
proprietaryterms.Thetechnicalinformationon
thissiteisverifiedtothegreatestextent
possible,however,anyinformationfoundon
thissiteisusedatthesitevisitor'sownrisk.
Sapignite.comreservestherighttocorrectany
errorsoromissionsinanyportionofthissiteat
anytimewithoutobligation.
http://sapignite.com/callsaptcodeusingwebdynproforabap/
HiAjay,Iamtryingtoaccesswebuiand
tryingtoaccesstransaction
BSP_WD_CMPWBbutitseemsbyTed
Pudmanabadoo
:):):):):):):)superbbyName
HalloRaj,don'tundestandthe1.Pic.
HowcanIgenerateclassesfromUML?
DoyouhaveadescriptbyViktor
9/9