cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Implementation will not be called

Catherine3
Explorer
0 Kudos
1,577

Dear Experts,

I have created a BADI with multiple use is checked in SE18. However, in SE19, the multiple use is unclick and the implementation will not be called. What steps should I do in order to make this BADI is called? Thanks in advance.

Catherine3_0-1724058665677.png

Catherine3_1-1724058767221.png

 

 

Accepted Solutions (0)

Answers (3)

Answers (3)

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert

Did you activated implementation? I see it "Inactive" on your screenshot...

Catherine3
Explorer
0 Kudos
I have activated the implementation. However, when I check each time it is still inactivate. What is the reason?
Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
Catherine3 - if you go to change mode of implementation and try activate, then it will most likely show waring/error in bottom "message" toolbar. I suspect you have to implement all methods in the class. They can be empty with no code, but all methods often needs to be "implemented". This is common reason that activation does not work. But there can be different reasons... We cannot tell from the screenshots (it is in display mode and not right after activation).
Catherine3
Explorer
0 Kudos
I have checked all other methods in my BADI are active. What else should I check?
Dominik_Tylczynski
SAP Champion
SAP Champion
0 Kudos

You said that you activated BAdI implementation methods. A BAdI is implemented with a class, so the methods needs to be implemented and active.

However you still need to activate the implementation itself - go to SE19 in change for your BAdI implementation and push that button:

DominikTylczyn_0-1724140035087.png

After that make sure that the "Runtime Behavior" field says "Implementation will be called"

RaymondGiuseppi
Active Contributor

Did you really want to create a BAdI with SE18, then try to implement it with SE19, and not implement the standard BAdI ME_PROCESS_REQ_CUST, BAdI which doesn't allow multiple implementations?

  • SE18 is only used by SAP almost all the time.
  • SE19 is used by SAP and customers
Dominik_Tylczynski
SAP Champion
SAP Champion
It's "SE18 is used by SAP and customers", it should be SE19 is used by SAP and customers, should it not?
RaymondGiuseppi
Active Contributor

Yes 2nd line should been SE19 (corrected)

RaymondGiuseppi
Active Contributor
0 Kudos

Basically, the standard BAdI, ME_PROCESS_REQ_CUST created by SAP and which is called in PR maintenance transactions and API, doesn't allow multiple active implementations

  • You created a second BAdI with the flag multiple implementation set, but AFAIK this BAdI will not be called (unless you enhance standard transactions/BAPI)
  • You created an implementation of the original BAdI, and it's normal that the multiple implementation flag is not checked (A priori, SAP did not handle multiple implentations in their code)
  • When you try to activate your implemenntation, you must get a warning/error message if another implementation is already active, either use same implementation or deactivate current one
Dominik_Tylczynski
SAP Champion
SAP Champion
0 Kudos

Hello @Catherine3 

You need to create a BAdI implementation with SE19 and activate it in the same transaction. Then your implementation will be called.

Best regards

Dominik Tylczynski

Catherine3
Explorer
0 Kudos
I have delete the implementation in SE18 and SE19 and re-create it again in SE19. It is still show implementation will not be called. Why?
Dominik_Tylczynski
SAP Champion
SAP Champion
0 Kudos
You need to activate a BAdI implementation, so it is executed.
Catherine3
Explorer
0 Kudos
I have activate the BADI but still show inactive when I exit SE19 and re-enter again