Application Development and Automation 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: 
Read only

How to run SUBMIT program statement with different USER ID without having authorization to object S_BTCH_NAM?

Former Member
0 Likes
7,915

Hi All,

We are trying to run a SUBMIT program statement with a different USER ID, we are getting RC8 after the Statement Execution, is there any other way with which we can run SUBMIT program statement with other USER ID?

Note: User who is trying to access this SUBMIT statement doesn't have Authorization to  AUTHORIZATION OBJECT  S_BTCH_NAM which is actually required to perform this action...So need another way to achieve this?

Thanks in advance..!!

Regards,

Dillibabu.

4 REPLIES 4
Read only

Former Member
0 Likes
3,219

Did you try SUBMIT <Prog > USER <User> . Here ypou can use some user which has got authorization and the program will be executed with authorization that <user> will have.

R

Read only

Former Member
0 Likes
3,219

Thanks Rudra.

Yes already tried to use  SUBMIT <Prog > USER <User>, but didn't get the expected result.

Our Scenario:

we have 2 Users...

USER1(dont have authorization to execute SUBMIT statement as he didnt have authorization to AUTHORIZATION OBJECT S_BTCH_NAM).

USER2( Had all the required accesses). Now we have written below statement to execute SUBMIT statement by USER1  on behalf  of USER2.

DATA : w_user type sy-uname.

w_user   = 'USER2'.

Note : In the below SUBMIT statement Main program in which this statemet is written will be executed by USER1,  Only the SUBMIT statement will be executed by USER2(who have all the acesses).

SUBMIT zprog

WITH.....;

.........

USER w_user

AND RETURN.

But, still the statement is not working. Need an other way to resolve this.

Thanks,

Dilli.

Read only

Former Member
0 Likes
3,219

You are pretty much asking how to circumvent user authorizations. And I suspect you will get no answer for that. If there was an easy way around this it would be a big security flaw. So, your best bet is to get the required authorization assigned.

Read only

Former Member
0 Likes
3,219

There is a solution provided to achieve this by Using  function module BP_JOB_MODIFY before JOB_CLOSE, already we tried this  and didn't get the expected result as we are not sure on how to implement these function modules.



Kindly go through the above link and provide a solution on the Order of the function module  how they need to be called?


I mean we already implemented in below order, but  it didn't worked, can some one suggest how to use them in right order.


Job_Open


SUBMIT zprog....

WITH.....

USER ......


BP_JOB_MODIFY


Job Close



                                                           or




Any other way to SUBMIT a program other than using SUBMIT program?



Regards,

Dillibabu.