cancel
Showing results for 
Search instead for 
Did you mean: 

FMJ2 - restrict by company code

ILIAN_Grigorov
Contributor
0 Kudos
307

Hello,

Transaction FMJ2 has an option to limit documents by company code, but never checks for proper authorizations (only checks F_FICB_FKR).

I need every user to be able to execute this transaction, BUT ONLY for documents of his/her company code. Now if the user forgets to enter the cc, all cc are being processed.

How can we restrict that?

Thanks.

Ilian

Accepted Solutions (0)

Answers (2)

Answers (2)

iklovski
Active Contributor
0 Kudos

Hi Ilian,

Modification of the code would be very simple. Indeed, you have simply to call authorization module for F_BKPF_BUK object for the user who runs the transaction. You can put in before the selection starts along with FM area authorizations check. It would be easiest way out.

Regards,

Eli

iklovski
Active Contributor
0 Kudos

Hi,

I'm afraid without modification of the standard code, you won't be able to achieve this. Another alternative is to create Z-transactions calling FMJ2, each transaction per company code in question and giving the users authorizations to those Z-transactions instead of FMJ2.

Regards,
Eli

ILIAN_Grigorov
Contributor
0 Kudos

Hello Eli,

Many thanks for your answer. We have hundreds of company codes. For now we consider the following options:

1. Using a suitable user exit or badi (but I don't think it will work)

2. Making a copy of that transaction

3. Making a new transaction which checks for CC auth, then transfer to FMJ2

4. Changing the standard code, we have found suitable places

I think good objects for checking are F_BKPF_BUK and/or F_FUNDSRES.

Regards

Ilian