Vous êtes sur la page 1sur 8

5/6/2017 SavingtimewhenDebugging:BOPFreturnedobjects,here:eo_message|SAPBlogs

GetStarted

Solutions Support Training Community Developer Partner

About

Community / Blogs

SavingtimewhenDebugging:
BOPFreturnedobjects,here:
eo_message
July15,2016 | 148Views |
StefanFoerster
morebythisauthor

SAPTransportationManagement

share
0 share
0 tweet share
0

Follow

Everyone,whodebugsinTM,facedthesituationmanytimes:anyBOPF
callreturnsanobject,whichisdeeplynested,e.g.eo_changeor
eo_message.Thispostisintendedtosuggestawaytosavetime
investigating.

Forexample:IndebuggeryouexecuteaBOPFcall(retrieve,do_action
orevensavetransaction)andyougetfailedkeysorarejectedflag.Asa

https://blogs.sap.com/2016/07/15/savingtimewhendebuggingbopfreturnedobjectshereeomessage/ 1/8
5/6/2017 SavingtimewhenDebugging:BOPFreturnedobjects,here:eo_message|SAPBlogs

nextstepyoumaywanttocheckthecollectedmessagesinthe
eo_messageobject.

Youdoublecklickthemessageobjectandseeahighnumberof
collectedmessagesintheattributemt_message:

Inordertolearnmoreaboutthecollectedmessagesyouunfortunately
needtodoublecklickeachmessagereferenceofeachlineinthistable,
findthereferencedmessageIDandnumber,openaseparatesession
tolookupthetextinSE91andthenyouknowwhetherthismessageis
relevantforyourinvestigation:

https://blogs.sap.com/2016/07/15/savingtimewhendebuggingbopfreturnedobjectshereeomessage/ 2/8
5/6/2017 SavingtimewhenDebugging:BOPFreturnedobjects,here:eo_message|SAPBlogs

But,sure,youknowallthosestepsandgotusedtoit.Whythenthisblog
post?

Wouldntitbenicetoseeallthosemessagesinthedebuggerright
away?

MostofusdoactuallynotknowthattheBOPFcolleaguesprovideda
helpinghandherealready.

Indebugger,includethetoolsectionScriptWrapper.Ontheveryright
side,pushthebuttonNewTool.

https://blogs.sap.com/2016/07/15/savingtimewhendebuggingbopfreturnedobjectshereeomessage/ 3/8
5/6/2017 SavingtimewhenDebugging:BOPFreturnedobjects,here:eo_message|SAPBlogs

Inthisnewsectionloadtheexistingdebuggerscript
/BOBF/TOOL_DEBUGGER_SCRIPT_F.

IntotheBOPFFrameworkObjectfieldyouputyourlocalobjectvariable,
whichimportedthereturnedeo_messageparameter,andthenyouclick
onStart.

https://blogs.sap.com/2016/07/15/savingtimewhendebuggingbopfreturnedobjectshereeomessage/ 4/8
5/6/2017 SavingtimewhenDebugging:BOPFreturnedobjects,here:eo_message|SAPBlogs

Andwhatanicerelief!Youcanseeallthemessagesrightawayinthe
debuggerandthereisnoneedtospendsomuchtimetonavigate
throughallthemessagereferencestopulloutthetextsfromSE91
anymore.

Thereisonlyasmallshortcoming.Onceyouidentifiedamessagetobe
relevantforyourinvestigation,youactuallywanttosetabreakpointat
theplacewherethemessageisraised.FromSE91youusuallydoa
whereusedetc.

https://blogs.sap.com/2016/07/15/savingtimewhendebuggingbopfreturnedobjectshereeomessage/ 5/8
5/6/2017 SavingtimewhenDebugging:BOPFreturnedobjects,here:eo_message|SAPBlogs

UnfortunatelytheavailabledebuggerscriptdoesnotlistthemessageID
andnumber.

Butnoworries,hereishowtoaddthosetwocolumns:

InSE38justcopytheprogram/BOBF/TOOL_DEBUGGER_SCRIPT_F
andinyourownlocalZ*programyoudothefollowingadjustments:

(Thisisascreenshotofversionmanagementscomparisonfeature.
Youneedtoinsertthewhitelines.)

Andlookatthat.InthedebuggeryougetrightawayallthemessageIDs
andnumbersandtextsofallthereferencedmessagesofthe
eo_messageobject

https://blogs.sap.com/2016/07/15/savingtimewhendebuggingbopfreturnedobjectshereeomessage/ 6/8
5/6/2017 SavingtimewhenDebugging:BOPFreturnedobjects,here:eo_message|SAPBlogs

Bytheway,theavailablescriptalsohandlesotherBOPFFramework
objects,likeeo_change.

Havefunsavingtime

AlertModerator

2Comments
YoumustbeLoggedontocommentorreplytoapost.

JeffreySchweigler

July18,2016at2:10pm

Thanksforthearticle.

ChampagneDeng

July19,2016at2:45am

https://blogs.sap.com/2016/07/15/savingtimewhendebuggingbopfreturnedobjectshereeomessage/ 7/8
5/6/2017 SavingtimewhenDebugging:BOPFreturnedobjects,here:eo_message|SAPBlogs

Reallypracticalskill!

Share & Follow


Privacy TermsofUse LegalDisclosure Copyright Trademark Sitemap Newsletter

https://blogs.sap.com/2016/07/15/savingtimewhendebuggingbopfreturnedobjectshereeomessage/ 8/8