Академический Документы
Профессиональный Документы
Культура Документы
Hi,Guest
LogOn
JoinUs
Products
Services&Support
AboutSCN
Downloads
Industries
Training&Education
Partnership
DeveloperCenter
Activity
LinesofBusiness
UniversityAlliances
Events&Webinars
Innovation
Browse
SAPFiori
MyInboxandSWFVISUVisualisationLimitationsin
Migration(Pluspossiblesolution)
PostedbyMattHardinginSAPFiorion08Aug201613:55:34
Share
Tweet
Like 0
Warning
ThisiswrittenforthosewholiveandbreatheWorkflow&InboxesplusareimplementingFioriMyInbox.It'saquick
postjusttoputmythoughtsonasolutionwhenmovingfromPOWLbasedInboxtoFioriMyInboxveryopentodebate!
FromInboxtoFioriMyInboxThehurdle
AspartofanimplementationofMyInboxatacustomerwhoalreadyhasthePOWLbasedUniversalInbox( Let's
CrowdSourceaPOWLBasedUniversalWorklistDesignforERP)Iquicklydiscoveredhowmanyoutoftheboxtask
approvalswerebasedonanoutoftheboxvisualisationthatforunknownreasons,reliedonmorethanjusttheWork
ItemandTaskId's(I'mlookingatyouEH&S&T&M).NowthiswasfineinthePOWLbasedInboxasitallowed
additionalworkitemcontainerparameterstobedynamicallyinsertedviatheActionconfiguration,butFioriMyInbox
movesbacktotransactionSWFVISUforvisualisation,butwithouttheXMLconfigthatthePortalsupportedwhich
allowedyoutomaptheseparameters.Thisisproblem#1.
Problem#2,whichismoreannoyingthanaproblem,isthattheuseofObjectBasedNavigationisnotanoption.e.g.
SincetheFioriLaunchpadmovestoIntentsasopposedtoPortal/NWBCOBN'sI'massumingadecisionwasmadeto
notallowOBN'stobeprocessedintheFioriLaunchpadforoldertransactions(verynonS/4requirementIknow).
Sowiththatknowledge,I'vebeentoyingwiththeapproachtoday,andjustwantedtorunitbythecommunity(mainly
becauseitworks,butIreallywishSAPhaddonethis,soIdidn'thavetorequestanimplicitenhancement).
SolvingProblem#2iseasy,asallweneedtodoisremovetheOBNlayerandpointdirectlyattheWebDynpro
application(orsimilar).Ofcourse,thisisnotsimpletodosincetheOBNishiddeninmenuroles(ignoringPortalsand
focusingonNWBC).Luckily,thereisasimpleprogramtofindnavigationtargets(OBN.02FailedtoResolveObject
BasedNavigationSAPNetWeaverBusinessClientSAPLibrary)butyoustillneedtosearcharoundalittletofind
themenuiteminquestion.
Sowiththat,wejustmovetheunderlyingmenuitemandtheconfigurationfromthePOWLActionsconfigurationinto
transactionSWFVISUforthetaskinquestion.NowwearejustleftwithProblem#1incaseswhereadditionalworkflow
containerdataisrequiredtolaunchthevisualisation.
SomymainissueistodowithWebDynproABAPvisualisations.Ilookedintothecodewhichdoesthevisualisation,
andit'squiteclearthatitwillonlyconvertacross2hardcodeddynamicparameters.LookingthroughSCN,SMP,
GoogleandtalkingtoothersitwasclearthatforFioriMyInboxThereisnohiddenfunctionalitytoaddressthis,soI
thenresortedto....Apostmethodimplicitenhancement!
PostMethodImplicitEnhancement
Nowanyonewhoknowsme,knowsthatIthinkthisisthesameasamodification,andyoureallyneedastrong
businesscaseifyouaredoingtodoanimplicitenhancement,butIhaveasexynewInboxwith50+taskstogetup
andrunningandjustnowaytoachievealloftheseasUI5basedapprovalsinthenearfuturesoIthinkIhavea
temporarybusinesscaseifthereisnootherway.
Anyway,thecodeisprettystraightforward(andbelowismyfirstcutatjustseeingthiswillworkforfirstlevelWorkItem
Containerdata)Inshort,it'sjustquicklyscanningthereturnedparameters,andifitdetectsa${ITEM.SOMETHING}
thenitwillgetallworkitemcontainervariablesthenreplacetheminthereturningparameterstable:
01. METHODIPO_ZENH_BADI_MYINBOX_EXECPAR~GET_WD_PARAMETERS.
02. *"*
03. *"DeclarationofPOSTmethod,donotinsertanycommentshereplease!
04. *"
05. *"methodsGET_WD_PARAMETERS
06. *"changing
07. *"value(RE_PARAMETERS)typeTIHTTPNVP."#ECCI_VALPAR
08. *"*
09. data:
10. lt_parameterstypeIBO_T_WF_CFG_INBOX_TS_ATTR.
11. loopatre_parametersASSIGNINGFIELDSYMBOL(<ls_parameter>).
12. IF<ls_parameter>valuecs'${'.
Store
SearchtheCommunity
Communications
Actions
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
"Getparametertoreplace
append<ls_parameter>valuetolt_parameters.
endif.
endloop.
iflines(lt_parameters)>0.
try.
data(lt_dynamic_task_attributes)=cl_ibo_wf_inbox_facade=>get_task_container_params(
iv_workitem_id=me>core_object>m_wiid>*
it_attribute_names=lt_parameters
).
LOOPATlt_dynamic_task_attributesASSIGNINGFIELDSYMBOL(<lv_attribute>).
CONCATENATE'${ITEM.'<lv_attribute>name'}'INTODATA(lv_name).
LOOPATre_parametersASSIGNING<ls_parameter>.
IF<ls_parameter>VALUE=lv_name.
REPLACEALLOCCURRENCESOFlv_nameIN<ls_parameter>valuewith<lv_attribute>value.
ENDIF.
ENDLOOP.
ENDLOOP.
catchcx_ibo_wf_errorcx_ibo_wf_abort.
endtry.
endif.
ENDMETHOD.
Isthereabetterway?
Sothat'sitButistherealessdrasticwaytodothis?WillSAPreleaseabackwardscompatiblenotewithbettercode
thanabovetohelpusout(orhavetheyalready)?Whatevertheoutcome,Ihopethishelpsyouifyoualsogodownthis
pathinthenearfuture!Thanksforreading.
226Views
AverageUserRating
(2ratings)
Share
Tweet
Like 0
4Comments
ChristopherSolomon08Aug201614:41
Wow!Greatworkinsleuthingouta"workaround".Iamsureyouaren'tthefirsttohitthis.Thanksfor
sharing!IhavehadmyshareofheadacheswithSWFVISU......sometimesitisused....sometimesitis
ignored....sometimesyouthinkitisbeinglookedatwheninfactit'snot.Igottiredoftryingtofigureit
outandjustputmyconfiginthere"justincase".hahaGuesslikemanythingswithSAP,whenitis
usedsimply"depends".haha
Like(0)
MattHarding09Aug201601:06(inresponsetoChristopherSolomon)
HiChris,
Thefunofmultipleclientsiseveryonedoesthingsdifferently,butsortofthesamemeaning
youalwaysneedtokeeponyourtoes!Butsometimesit'sjustnicewheneverythingjust
workssoIwishyouhadbeenaroundtosetuptheSWFVISUconfigbeforeIimplemented
MyInbox!
Cheers,
Matt
Like(1)
SusanKeohan08Aug201615:14
Thanksforthegreatblog,Matt.Assomeonewhodoes,infact,liveandbreatheWorkflowinboxes,I
hopeSAP*does*comeupwithabetterwaytodothisinthenextfewyearsitwilltakemetogetto
Fiori(sothere'slotsoftime!).
Cheers,
Sue
Like(0)
MattHarding09Aug201601:08(inresponsetoSusanKeohan)
Ofcourse,whenIwrote"liveandbreath(e)workflow"youcametomindimmediately!(and
thanksforthecorrection)
Like(0)
SiteIndex
Privacy
ContactUs
TermsofUse
SAPHelpPortal
LegalDisclosure
Copyright
FollowSCN