cancel
Showing results for 
Search instead for 
Did you mean: 

Badi is activated but isn't called

0 Kudos

Hi,

I have implemented BADI in GBAPP_APV_PR_RDP. I tried to override method "IF_GBAPP_EX_APV_PR_RDP~CHANGE_DATA_HEADER_DETAILS_API" but it's never called when application is loading. As you can see on below screens everything is activated for this badi, so where can be problem?

0 Kudos

I found place where is called one of the methods from interface, but can't find the others. Do you know why is called only SET_ATTRIBUTES?

raymond_giuseppi
Active Contributor

You should add some tags relatefd to SAP Fiori (Wave 2) or Approve Purchase Orders to get some answers

0 Kudos

BAdi started working when I added parameter 'WRK' to my user.

Accepted Solutions (0)

Answers (2)

Answers (2)

r010101010
Active Participant
0 Kudos

hello,

do you have any filters on this badi ?

You can also do a code scan (program AFX_CODE_SCANNER) on the name GBAPP_APV_PR_RDP to identify where the badi should be called.

hope this help.

Sandra_Rossi
Active Contributor
0 Kudos

It looks correct, so it's callable. It's not called because probably the condition to trigger it is not met when the application runs. The reason is application-dependent, sorry I don't know neither your "application" nor that BAdI. Example of what could be in the application:

IF condition... " <==== always false for whatever reason
  CALL BADI lo_gbapp_apv_pr_rdp->method... " <==== so it's never called
ENDIF.