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

User change for BDC

Former Member
0 Likes
826

Hi,

Can we change the user while execution of BDC in the background.

I have a required to create BDC for material master with BASIC data1 Basic data2 MRP1 MRP3 ACCOUNTING 1 Account 2 Costing 1 and 2.

The user who are authorize to create material master dont have authorization of Accounting and costing view. Can we run the BDC with other user name and after completion of BDC again change the user name to original.

Hi,

Can we change the user while execution of BDC in the background.

I have a required to create BDC for material master with BASIC data1 Basic data2 MRP1 MRP3 ACCOUNTING 1 Account 2 Costing 1 and 2.

The user who are authorize to create material master dont have authorization of Accounting and costing view. Can we run the BDC with other user name and after completion of BDC again change the user name to original.

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
601

No you can not do that. That is a classic security issue. Say in your program you change SY-UNAME, the very next statement will set it back to what it should be. The system will not allow you to do this. You would have to either give authorization to the users, or just allow them to create the BDC session, then some other user will have to run the session.

Regards,

Rich Heilman

Read only

Vinod_Chandran
Active Contributor
0 Likes
601

Hi,

I think this can be done using jobs.

Goto SM36 and create a job. Now define a step and give the BDC program in that. Here you can assign a user for the step. Give the user who is having authorisation.

Hope this will help you.

Thanks

Vinod