cancel
Showing results for 
Search instead for 
Did you mean: 

How to identify if there is any change in production order - Any BADI or BAPI?

Former Member
0 Kudos

when-there-is-a-change-in-total-quatitychanged-2-f.pngwhen-no-change-in-production-order-still-19-differ.png

Hello Expert,

I need a help.

My requirement is to call a custom FM, only when any change occurred in production order(CO02) on header level in general tab or assignment tab or control tab or master data tab etc.

I was able to find the BADI - WORKORDER_UPDATE which triggers at time of saving. Also I am able to find method BEFORE_UPDATE where I can see the parameter like HEADER_OLD and HEADER. So it's easy to compare if there is any change and I can call my FM.

But the problem is while comparing it's always showing difference though I didn't change any thing for this order. It's some flag. I have only option to skip these fields to check and compare remaining fields only.

But I am not sure if it's correct way of doing. I want to know these fields are default to be changed when there is no changed occurred.

If you know any other option to identify then please let me know.

Please find the attached screen shot document for better understanding.

Thank you!

Pankaj Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Caetano
Product and Topic Expert
Product and Topic Expert

Hello

SAP Proposed a solution to track the changes of a production order using an exit. You can use this solution and enhance it to meet your business requirements. See the thread https://archive.sap.com/discussions/thread/3561609 for details.

Regards,

Caetrano

Answers (0)