Vous êtes sur la page 1sur 5

24.10.

2015

BTEsBusinessTransactionEvents| SCN

GettingStarted Newsletters

Hi,Guest

LogOn

Store

SearchtheCommunity

JoinUs

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

Activity

Communications

Actions

Brow se

ABAPConnectivity

BTEsBusinessTransactionEvents
PostedbyBorjaFedericoMuroBerdascoinABAPConnectivityonJan7,20134:53:19PM
Share

Tw eet

1 Like

BusinessTransactionEvents(BTEs)havebeenavailableasofRelease4.0andareanothertechniquefor
implementingprogramexits,andonlyprogramexits.
BTEsaregenerallyfoundinthegeneralledgeraccounting(FIGL),accountreceivableandpayable(FIARandFIAP)
andsalesanddistributioncomponents.

ABTEhasapredefinedinterfaceandallowsyoutoattachadditionalfunctionalityintheformofaservicefuntion
module.Youmustcreatefuntionmodulewiththeparametersyouhavepreviouslydictated.TheBTEiscalledbythe
SAPstandardprogrambyacalltofunctionOPEN_FI_PERFORM_orOUTBOUND_CALL_.Thisfunctionchecksif
thereareanyactiveBTEsaccordingtocustomizing.

AccordingtoitsInterfacethereare2typesofBTEs:

Publish&Subscribeinterfaces.Cannotupdatedata.Possibletohavemultipleimplementations
Processinterfaces.Canupdatedate.Onlyoneactiveimplementation

HowtofindaBTE(2ways)
Searchthesourcecodeforfor"OPEN_FI_PERFORM"og"OUTBOUND_CALL_"
UsetransactionFIBFmenuEnvironment>InfoSystem(P/S).UsetheDocumentationbuttontoseethe
documentationfortheBTE.

ImplementingtheBTE

GototransactionFIBFmenuEnvironment>InfoSystem(P/S)

SelecttheBTEyouwanttoimplement.(asbelow)

http://scn.sap.com/community/abap/connectivity/blog/2013/01/07/btesbusinesstransactionevents

1/5

24.10.2015

BTEsBusinessTransactionEvents| SCN

DoubleclickonSamplefunctionmodule

ThenwecopythesamplefunctionmoduletoaZfunctionmodule(Firstcreateanewfunctiongroupforthe
functionmodule).
Note:ThenameoftheZfunctionmoduleisnotimportant

Editthecodeinthenewfunctionmodule:

GobacktotransactionFIBFMenuSettings>Products>Ofacustomerandcreateanewproductwhich
identifiesthenewproduct.
RemembertomarktheActivefield.

WeentertheproductnamedescriptionandRFCdestinationifapplicable.ThecheckboxAistoactivatethe
product.

http://scn.sap.com/community/abap/connectivity/blog/2013/01/07/btesbusinesstransactionevents

2/5

24.10.2015

BTEsBusinessTransactionEvents| SCN

Thenextstepistolinkthefunctionmoduleandtheeventusingtheproductcreated.GobacktoFIBFmenu
Settings>P/Sfunctionmodules>ofacustomerCreateanentrythatlinkstheBTEandProductwiththenew
functionmodule(asbelow)

Andthatsall,weonlyneedtosaveandactivate.

36262View s

Topics:abapTags:beginner,bte,enhacements

AverageUs erRating
(6ratings )

Share

Tw eet

1 Like

13Comments
StephenJohannesJan7,20136:03PM

AnotherinterestingaspectoftheseeventsisthattheR3AdapteroftheCRMmiddlewareusesthese
exitstotriggertheoutboundflowofchangesinERPtoCRMandalsotoenhancethestandard
transferontheoutboundERPtoCRMside.
Takecare,

Stephen
Like(1)

ShankarnarayanKAug23,20138:39AM

Nice,simpleexplanation.ButIftheZFMiscreatedinaseparatefunctiongroup,wontitloseallthe
globaldatathatisinthefunctiongroupoftheoriginalFM?
Like(0)

StephenJohannesAug23,20133:07PM(inresponsetoShankarnarayanK)

Thesearesupposedtoworkwiththeideayoucanonlyprocessthedatayouaregivenas
theseareexits.NeverbeenaprobleminmyexperiencewhenusedforSAPCRM
middlewareprocessing.
Like(1)

ShankarnarayanKAug26,20133:38AM(inresponsetoStephenJohannes)

http://scn.sap.com/community/abap/connectivity/blog/2013/01/07/btesbusinesstransactionevents

3/5

24.10.2015

BTEsBusinessTransactionEvents| SCN
Yeahyouareright.ThanksStephen.
Like(0)

VijaySimhaOct22,20135:24PM

Niceandusefuldocument
Like(0)

SandipKurew arJan6,20148:26AM

It'susefulandunderstandable...!!

ThanksforSharingyourknowledge..

Regards
Sandip
Like(0)

PriteshSharadRautApr28,20147:55AM

VeryusefulandsimpleDocument.

thanks.

Regards,
Pritesh
Like(0)

LindaSAPNov9,20144:32PM

Thanksfortheusefulinformation.IthelpstounderstandtoSystembetter
Like(0)

EricYangJan26,201511:56AM

Verynicesharing,Borja.Weareapplyingwhatyoumentionedaboveinourproject.However,wemay
misssomething,sothatitleadsthefunctionmodulecannotbecalledinthetransactions.Ourcase
isbellow,couldyoupleasehelpustocheckandgiveusanadvice.

WewanttouseFMZSAMPLE_PROCESS_00001610whichiscopiedfrom
SAMPLE_PROCESS_00001610,tocalculatethevaluedateandupdateitwhenrunningpayment
proposalbyF110.
Torealizeit,herebellowiswhathavedoneinBTEsettings:
(1)Configure:Settings>Products>...ofacustomer.
Createtheproduct:Z_1610,andactivateit.

(2)Configure:Settings>ProcessModules>...ofacustomer.
Selectprocess00001610,FM:ZSAMPLE_PROCESS_00001610,product:Z_1610

TovalidatetheFMisactivatedinF110,wesetupabreakpointinfunctionmodule.andHerebellow
isthetestingFM:

FUNCTIONZSAMPLE_PROCESS_00001610.
*"
*"*"LocalInterface:
*"IMPORTING
*"VALUE(I_PAYRQ)LIKEPAYRQSTRUCTUREPAYRQ
*"EXPORTING
*"VALUE(E_VALUT)LIKESYDATUM
*"
BREAKPOINT.
I_PAYRQVALUT='20150227'.
E_VALUT=I_PAYRQVALUT.
ENDFUNCTION.

Thatisall.Highlyappreciatedforyouradvice.
Eric
Like(0)

RockyQMay11,20156:01AM

usefuldocument,thanksforsharing.
Like(0)

PauloCamposMay11,20159:20PM

Verygood!Thanks

http://scn.sap.com/community/abap/connectivity/blog/2013/01/07/btesbusinesstransactionevents

4/5

24.10.2015

BTEsBusinessTransactionEvents| SCN
Like(0)

JatanSarafMay21,201512:33PM

SimpletounderstandandVerymuchhelpful!!!
Like(0)

VoTaiSep20,20155:11PM

Thanks,veryhelpful...
Canweapplythisforanothormodule(SD,MM...)
ItriedtousewithTcodeMIRO,butitcannottriggerdebuging.
Like(0)

SiteIndex
Privacy

ContactUs
TermsofUse

SAPHelpPortal
LegalDisclosure

Copyright

http://scn.sap.com/community/abap/connectivity/blog/2013/01/07/btesbusinesstransactionevents

Follow SCN

5/5

Vous aimerez peut-être aussi