Skip to Content
0
Sep 13, 2007 at 10:00 AM

IF_SWF_IFS_WORKITEM_EXIT - not able to add entries in workflow log

210 Views

According to the informercial from SAP the wonderful world of ABAP Objects based workflow would make me a happy fellow. Frustrations are not mentioned in the brochures.... However, since yesterday my frustration has been increasing.

I have implemented the interface IF_SWF_IFS_WORKITEM_EXIT (method EVENT_RAISED) and am trying to add a simple message in the workflow log. No such luck. So in addition to adding my own class to the class list in the "Program Exits" tab (header level as well as at the step level which is where I really want it) I tried to add SAP's demonstration class CL_SWH_WORKITEM_EXIT_LOG. Annoyingly, but at the same time reassuringly, messages were added to the workflow log.

OK, it should be simple then. I copied the method implementation from CL_SWH_WORKITEM_EXIT to my own class, even copying a referenced <u>private</u> instance attribute so the implementation would be identical. Then I removed the SAP class from Program Exits and started the business process again to have a new workflow and confirm that it worked. ...

What!.... no messages in the log.

I have read every thread about this in the forum, studied the online help and even some PDFs that I found while searching SDN. I have not found any mentioning of restrictions that should prevent my solution from working.

My class has public instantiation, it also implements the IF_WORKFLOW interface, it has a class constructor (which currently does nothing) and is not a very special class at all as far as I know. The rest of the class (ordinary methods, functional methods) works just fine in the workflow.

There are no FRIEND classes, one private attribute marked as KEY and a few other private and protected attributes. The class constructor is the only static method, the other methods are public instance methods except one protected method used to read data.

The system release is ECC 6.0 with basis support package SAPKB70011 - and every OSS Note found for the interface seems is included in previous support packages.

Does anyone have any idea at all where I have made my mistake?