12-19-2011 8:54 PM
Hi,
I have the requirement, whenever a user changes an object, that the system automatically "recalculates" other affected objects in the background. This recalculation should happen immedaitely or at least within seconds after the change occured.
Since the user, might not have sufficient authorizations to access the affected objects at all, the background process must run under a different user account (a service user with high authorization level).
I investigated several optiions and found out that submitting a job with different user may be problematic, since the JOB_CLOSE function module requires special authorization for releasing the job.
Another possibility would be to raise a background event (sm64), on which a background job is registered. This seems to be unproblematic regarding authorizations.
Is this the preferred way of doing it? Or what other ideas you would have?
Best Regards,
Bruno
12-20-2011 2:28 AM
The background job dependent on the event seems like a good idea, I'd go with that.
12-20-2011 2:28 AM
The background job dependent on the event seems like a good idea, I'd go with that.
12-20-2011 3:03 AM
Worlkflow or background events(SM64) are ideally suited for your requirement. Otherwise you may also think of job scheduling if the selection is not problematic or may be capturing the details in a table that a regular job looks at every few minutes.
12-21-2011 8:13 AM