Dear professionals,
When I create/change a process order an event is supposed to trigger a receiver type via type linkage (TA SWETYPV).
Therefore i put object type CL_CO_WF_PROCESS_ORDER into the table with event change and create. That is working fine so far. The event is thrown and therefore the type linkage is triggert.
But my requirement is that the change event type linkage is only triggered when a special condition takes place. So I have implemented a function module (Z_CHECK_PROC_ORD_CHANGE_EV) and entered it into "check function module".

In this function module I have to check if the actual finish date of the process order was set by the user. If no, the exception is thrown.
I have debugged the process and at this time, when the check function module is called, the database tables are not updated yet. So neither a functionmodule nor the database gives me the data which was entered prior.
Although a user enters the actual finish date in the process order, the function module raises the exception because it cant see those updates yet.
Sadly I have no access to the entered gui data aswell.
Has anyone had this problem or knows how I achieve my requirement? Maybe there is a user exit/bte or something else in the process order change process that I can use.
Thank you very much!
Greetings
Enrico
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.