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

BAdI that work custom field logic only click 'Save' button in Purchase Order

KhaingZinTun
Participant
0 Kudos
366

I write custom field logic in MM_PUR_S4_PO_MODIFY_ITEM. It trigger everytime I click something in Purchase Order. I would like to control that BAdI logic to trigger when only click Save button in Purchase Order. Is it possible or is there any other BAdI of purchase order to fulfill this request?

Accepted Solutions (0)

Answers (1)

Answers (1)

Zhehui_Xia28
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

The BAdI BD_MMPUR_FINAL_CHECK_PO is designed to perform checks before a purchase order is saved. This BAdI is suitable for your requirement as it is triggered only when the purchase order is about to be saved. This ensures that your auto-increment logic will only execute when the Save button is clicked. Besides, you can set some conditions (compare whether some values of fields are changed) in BAdI MM_PUR_S4_PO_MODIFY_ITEM, so that the BAdI won't be triggered if nothing changes.

Best Regards,

Zhehui