cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a BAPI inside a BADI

kiran_k8
Active Contributor
253

Hello Folks,

Recently I came across a query on :-

What are advantages and disadvantages of calling a BAPI inside a BADI ?

What are the  pitfalls that we enconunter when we call a BAPI inside a BADI ?

Can anyone here throw some light on the above said query. Thanks.

K.Kiran

Sandra_Rossi
Active Contributor
0 Kudos
Good interview question, what do you think?
View Entire Topic
junwu
Active Contributor

that question is pretty much nonsense, if I'm not wrong.

DominikTylczyn
Active Contributor
0 Kudos
You are absolutely right - the question doesn't make sense.
kiran_k8
Active Contributor
0 Kudos

I had googled and came to know that we are not supposed to call BAPI_TRANSACTION_COMMIT in the BADI when we call a BAPI within it.

Commit Work related to the BADI will take care of the COMMIT and there is no need to call the BAPI_TRANSACTION_COMMIT specifically which may result in dump sometimes.

Are there any advantages/disadvantages/other pitfalls that you experts are aware of. Thanks.

K.Kiran.

Sandra_Rossi
Active Contributor
So, if you are not supposed to do something, why do you ask if there is an advantage or drawback, instead the question would be "why should you not call a BAPI inside a BAdI?" (it's not needed to ask because you have the answer)