Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

classic badi implementation zac_document not being called

Former Member
0 Kudos

For classic BADI AC_DOCUMENT I had prior and currently have an implementation ZAC_DOCUMENT.

I had this working but now it is not working and I am unable to determine why not. I deleted the implementation and recreated it with SE18.

If I view the implementation in change mode of transaction SE19, I see on the attributes tab that the implementation is activated. On the interface tab it says....

interface name IF_EX_AC_DOCUMENT

name of implementing class ZCL_IM_AC_DOCUMENT

I double click on method CHANGE_AFTER_CHECK to see my code which passes syntax check... I'll abbreviate....

method IF_EX_AC_DOCUMENT~CHANGE_AFTER_CHECK.

data:

....

loop at IM_DOCUMENT-ITEM into wa_accit.

lc_nomod = 'X'.

  • substituted alternative account

if ....

if lc_nomod is initial.

append wa_accit_sub to ex_document-item .

endif.

endloop.

endmethod.

The code here is not being triggered, nor is a set break-point. Thanks in advance for any help getting this to work again.

1 REPLY 1

former_member156446
Active Contributor
0 Kudos

check if you are using the valid data to hit the BADI