Hi Gurus,
Here I am forced to raise new thread as i could not find solution for my problem in my searches. I have a requirement that whenever old material field in Basic Data1 (MM02) gets changed, new email should be sent to a person with who made changes, when and old & new value of field. So event should be triggered based on the change document. I found MATERIAL object in SCDO and I created new event OLD_MAT_CHG in my custom business object (Super type is BUS1001). Then went to SWEC, added a new entry with MATERIAL, MY BO, EVENT and added Field restriction for BISMT.
As per the this link, (http://help.sap.com/saphelp_nw2004s/HELPDATA/EN/72/11386ce58a11d1951f0000e82dec10/content.htm ), I added event parameter with the data base field reference as attribute .i.e MARA-BISMT and ticked multiline checkbox ( No import and export checkbox is available in event parameter definition).
So system should automatically fill the event container with changed values. I am making binding between workflow container which has same database field referrence MARA-BISMT and this event parameter in BasicData of workflow SWDD. But no values are passed. I checked with function module "SWE_CREATE_MAIL" in SWETYPV and added a receiver type as Sapuser. I am getting mail with event container values. But in workflow its not working.
What I am missing here? What I should do to get my problem solved?
Please help.
One more thing, When creating new entry in SWEC, it shows me the warning message, "Some parameters of Event are not assigned values during creation". is this the cause of the problem? If it is, how can i link the event and change document.?
Thanks
Rajee