Skip to Content
0
Former Member
Jan 13, 2006 at 10:40 AM

Background Task

136 Views

Hi,

I'm running a Z program which at a certain point needs to execute a process in background.

The function I need to call is L_TO_CREATE_SINGLE I've coded this into an RFC enabled Z FM to call in background.

When the main program calls this Z FM in foreground, it works everytime. However, when I change it to call in background task it only works on occasions. L_TO_CREATE_SINGLE sometimes returns a not authorised exception message.

I can run this program, using my userid and it'll work, then work, then fail, then work (with the same data that previously failed) then work, then fail, then fail, then work.

The initial thought was timing, but given that in foreground it works everytime, I dn't think it's that.

It's almost as if the user ID changes.

Can anyone think of a reason for this ?

Cheers

James