Skip to Content
0

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

Feb 21, 2017 at 03:30 PM

137

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Caetano Almeida
Feb 21, 2017 at 04:52 PM
3

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

Share
10 |10000 characters needed characters left characters exceeded