Skip to Content
0
Former Member
Dec 07, 2006 at 02:49 PM

Workflow - Quality Notifications Error

112 Views

When creating a new Quality Notification, upon saving, the Workflow event 'Create' is triggered. When this event is triggered, I am not able to modify the event container that is passed in the SAP code. In addition to the basic object data sent in the container, I need additional custom data to be sent to the workflow. Therefore, I am trying to trigger an event using the Function Module 'SWE_EVENT_CREATE' and filling the event container myself.

I am aware that a Function module can be placed in an action box and the trigger will be successful upon save after the action item, but I would like a trigger to take place if they use the Quality Notification save icon and not an action item, therefore I would like the trigger to be in the user exit.

I have tried placing the trigger in user exit 'EXIT_SAPLIQS0_016' which is the only exit for Quality Notifications that I could find that is hit again after the notification is saved. When debugging the message says that the notification has been saved (which to me means the object has been created), the trigger then starts, but I get a workflow error. The error message says that Operation '&&QN.TYPE&' cannot be evaluated because object '=' has no value. I think this means the Notification type cannot be found, but I am not sure why the object is not there, if the Notification has been created?

Any help on maybe another exit to use, or something different to pass in the container would be great? Or if there is another way to trigger the workflow after the object has been created, I am open to ideas.

Chandra