Method CHANGE_BEFORE_UPDATE of BADI ORDER_SAVE not executed

Problem: you have an implementation of BADI ORDER_SAVE and method CHANGE_BEFORE_UPDATE is not executed when you run your report.

Solution: This method is not executed from the CRM_ORDER_SAVE FM if IV_NO_BDOC_SEND = 'X’.

Code responsible for executing this method is in FM CRM_ORDER_UPLOAD_SINGLE line 50. This FM is only executed if BDOC is to be send. Check source code in FM CRM_ORDER_SAVE_OW in line 206.

If you want to have CHANGE_BEFORE_UPDATE executed but still not send BDOC you can use FM CRM_ORDER_SET_NO_BDOC_SEND_OW to restrain BDOC for particular document.

Komentowanie jest zakończone.