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

End user need to Create Materials using Bdc without Authorization.

former_member196331
Active Contributor
0 Likes
2,123

Hi,

I need some suggestions, Facing one problem,

My Client is Creating almost 500 materials, Every day. They don't want to Create through the manually. 

From different department people are need the materials Not a single person Creating the materials. We decided to Given bdc for creating the material.

For fixing the properties of the materials. While restricting the Material properties, We don't want to give MM01  Authorization to the users.

I Completed Recording And Checking in Quality. But while executing the T-code it is saying No Authorization.
I hope They don't have authorization. How could  these people create the materials Without authorization.

Need Valuable suggestions.

1 ACCEPTED SOLUTION
Read only

Patrick_vN
Active Contributor
0 Likes
2,073

Just a wild idea..

  1. Create a custom table that contains the data the users entered (via a custom report to their liking).
  2. Create a second report that runs in a job and uses the records in the custom table to create the material.
11 REPLIES 11
Read only

Patrick_vN
Active Contributor
0 Likes
2,074

Just a wild idea..

  1. Create a custom table that contains the data the users entered (via a custom report to their liking).
  2. Create a second report that runs in a job and uses the records in the custom table to create the material.
Read only

0 Likes
2,073

HI, Thanks for your reply.

Did not understood your answer.

  1. Create a custom table that contains the data the users entered (via a custom report to their liking).
  2. Create a second report that runs in a job and uses the records in the custom table to create the material.

1)Whey maintaining the Custom Table, I am going to give the bdc. uploading the materials through the Excel. And create one Z-tcode.

2)I  run the bdc from the End user login. Error came like No-authorization. Are u suggesting,
  JOb , Background job. Is it not considering the Authorization

Read only

0 Likes
2,073

1. Instead of using the end user data to run the BDC immediately, you write it to a custom table (they're not maintaining the table directly!)

2. And yes, the report in the background job uses the data in the custom table to run the BDC (or BADI's if you prefer.. hint )

Read only

0 Likes
2,073

So, back ground job never check the authority. Server is doing the operation.

Read only

0 Likes
2,073

Incorrect, but close. You'll have to run the background job under a userid that has authority to create materials.

Most clients have a special batch user for running overnight jobs - use that one.

cheers

Paul

Read only

former_member194456
Contributor
0 Likes
2,073

Hello

Have you tried SM01. Search your transaction MM01 there and marked it as locked.

Hope this will help

Enjoy SAP

Regards

SS

Read only

0 Likes
2,073

Ok I will check it.

Read only

0 Likes
2,073

That sounds pretty nonsense. After locking the transaction nobody in whole system  will be able to execute MM01 anymore, not even via BDC.

Better do what Paul said. Create a batch user with the authority for creating materials.

Give your useres who shall not create materials manually with MM01 only the authority to run a batch input session.

They have to execute the batch input session by entering the batch user

And you do not need such a  check:

Read only

0 Likes
2,073

Hi, Thanks for your reply.

Bath user means, is my end users run the lsmw or sm35  for creating the material Master.

Is this bath user.

Read only

0 Likes
2,073

No, end users are human, batch users are artificial, It is just a user master for a specific purpose.

Executing LSMW or SM35 has its own authority objects, being allowed to execute LSMW or SM35 does not mean that the user is allowed to post material masters, this is another authority object.  But users can be allowed to create a batch input session and specifying that it shall run with the authority of another user. 

That is how we work in IT , we are not allowed to post in a production environment, we only create the batch input session and specify the user who can execute this session, and this user finally posts the stuff.

Read only

0 Likes
2,073

OK..........