2005 Dec 03 5:27 PM
Hi,
I need to capture data at runtime through CJ20n before saving.
I have used Validation at Network Header level and used the function module 'CO_BO_OPR_OF_ORDER_GET' to get activities.I need to get delta data,
So I check on the field VBKZ.
However if I change one activity, for all the activities
i get VBKZ = 'U'.
I want to capture only those activities that are actually changed.
Any idea?
Thanks & Regards,
Vanita
2005 Dec 04 10:33 AM
Vanita,
It makes sense if SAP marks all activities updated even if you change one activity because activities have relationship among them and change in duration of one activity may change the scheduling of other activities too.
Inside the network header level validation, you could read the activities from database again. You can do it by reading table AFVC against routing number of network and blank SUMNR. It will give you all activities in one select statement. You can move the both data for one particular activity( from datbase and from function module) to two similar structures ( structure almost like AFVC but with out administrative information like last changed on, at, by etc etc). By comparing them, you can identify if aqctivity got changed.
If an activity was previously scheduled and now you change its duration or dates then SAP puts a system status NTUP. if you are just interested in activities with changed dates, you can go by system status change to NTUP.
I hope this helps.
PS - Please award the points if it helps.
2005 Dec 04 10:33 AM
Vanita,
It makes sense if SAP marks all activities updated even if you change one activity because activities have relationship among them and change in duration of one activity may change the scheduling of other activities too.
Inside the network header level validation, you could read the activities from database again. You can do it by reading table AFVC against routing number of network and blank SUMNR. It will give you all activities in one select statement. You can move the both data for one particular activity( from datbase and from function module) to two similar structures ( structure almost like AFVC but with out administrative information like last changed on, at, by etc etc). By comparing them, you can identify if aqctivity got changed.
If an activity was previously scheduled and now you change its duration or dates then SAP puts a system status NTUP. if you are just interested in activities with changed dates, you can go by system status change to NTUP.
I hope this helps.
PS - Please award the points if it helps.