Ask the Expert

Workflow event disabled by OL364 error

I have created a delegate Business Object ZBUS2032 (for BUS2032 SalesOrder) with a new event WEBORDERCREATED. I call the function SWE_EVENT_CREATE_FOR_UPD_TASK in the user exit USEREXIT_SAVE_DOCUMENT (MV45AFZZ). This call occurs just after the standard "CREATE" event in routine BELEG_SICHERN in program SAPMV45A. The only difference I can see between my custom call and the standard SAP call is that I am passing container parameters (event parameters) as opposed to SAP's calls, which passes non container parameters. My workflow event intermittently is disabled (SWETYPEENA) because it encounters an OL364 error (Errors in container (element 'SalesOrder' is not an object).

My question is: If SWE_EVENT_CREATE_FOR_UPD_TASK is supposed to handle the event creation in the update process, why does it appear that the SalesOrder data is still not committed to the database before the event is created?

Any ideas?

    Requires Free Membership to View

I don't think the problem here lies with COMMIT WORK. I think the problem lies in the fact that before you raise the event, the container elements have not been committed to the Database. SAP Workflow stores all container elements inside two tables SWW_CONT (data elements) and SWW_CONTOB (object references).

To fix your problem, I recommend you make the following macro call before calling Function Module SWE_EVENT_CREATE_FOR_UPD_TASK.


Where event_container is the container of event parameters.

If the problem is still not resolved, try making a call to the macro SWC_OBJECT_TO_PERSISTENT passing in the object reference that you are raising the event on.

You will need to include to make these calls.

I can not be certain that these suggestions will fix your problem but this is where I would start.

This was first published in September 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: