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: 

BATCH CREATION PROBLEM

Former Member
0 Kudos

Hi Experts,

I have a requirement of creating a program which will create batch without using t-code u2018MSC1Nu2019 and at the same time user should not be able to run the T-code u2018MSC1Nu2019 . So, I have used the Fn. Module u2018BAPI_BATCH_CREATEu2019 for this purpose . But the problem is that, the user must have the authorization of the tcode u2018MSC1Nu2019 for using this Fn. Module .

Now, I want to know is there any way by which I can create batch programmatically without using u2018MSC1Nu2019 at the same time without giving authorization for the Tcode MSC1N.

Deb .

3 REPLIES 3

0 Kudos

Hi,

what about using a special batch user like e.g. 'ZIBATCH' with the needed authorization?

Regards

Nicola

Former Member
0 Kudos

The better question is: If the user has been deemed to not have the authority to create a batch, then why would the business want that user to create a batch? Why does the user not have the authorization if they need to create a batch? If you come up with a way to do this, perhaps by submitting a job with a batch userid, or some id with authority to do this, the fact that the user without the necessary authorization created the batch will not be visible. IMHO, we should avoid writing programs that attempt to evade the business' security rules.

0 Kudos

Dear DaveL ,

To give the answer of your question , I have to explain the situation and background of such kind of program .

The users have the authority to create batch by u201CMSC1Nu2019 . But the problem is that , if user give any wrong data ( Batch Number ) in the 1st screen of u2018MSC1Nu2019 a wrong batch is created in sap which creating different kind of problems like batch booking, raw matrial booking etc. So we are trying to provide a customized program which will predict the next batch everytime user run this , so that user cannot put any wong batch. Thatu2019s the reason we are trying to give the users the authority of batch creation with our customized program, not with u2018MSC1Nu2019 . But the function module u2018BAPI_BATCH_CREATEu2019 cannot work without the authorization of u2018MSC1Nu2019 .

So, pls make me know if there is any remedy of my problem

-


DEB