Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger Background jobs from a program

Former Member
0 Kudos

I was wondering if we could call the BDC using some BATCH user to avoid the authorization issue while running a particular transaction in PRD. So instead, the user will perform the 309 transaction and create the output. A separate background program running for the batch user will then actually process the output, triggering the program.

More details:

I have written a program, where in there is a BDC on the transaction MSC1N. Problem is the user who is gonna run it in PRD may not have authorization for this particular transaction. So what i am thinking is, when the user runs the porgram in PRD, the program will check if he has authority over this. If he doesnt. Then a background job should be triggered, with BATCH user ID, so that it then processes the BDC part, and carry it on.

Can I process this as a background task with some other user's ID?

Any help on this is appreciated.

Thanks,

Ajay

Edited by: ajayvarghese23 on Dec 2, 2011 10:46 AM

Edited by: ajayvarghese23 on Dec 2, 2011 11:04 AM

2 REPLIES 2

Former Member
0 Kudos

Hi,

Try to create one more program with the BDC part with batch user id and call the program in this current program using SUBMIT statements. Not sure whether it will satisfies your requirement but it's worth trying if you haven't tried this.

antony_paul2
Active Participant
0 Kudos

I really dont understand the problem here. If an user is supposed to work on a transaction then he should be given access to it.