cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict authorization per work center during confirmation

Former Member

Hello Experts,

Business wants, during confirmation (Tcode CO11N) user should only be able to confirm the operation or work center for which he is responsible. It means user should have access only for his work center to confirm the operation.

For example - Let say these are the work centers in Plant 1000- CUTTING, BENDING, MELTING, QUALITY, etc.

Now, ABC user is only responsible for work center 'CUTTING' then he should only be able to confirm the operation have CUTTING work center and he should not be able to confirm the operations which having other work centers.

We tried 'Authorization object - C_AFRU_APL' however it won't work.

How we can achieve this. Is there any other way to achieve this.

Thanks and Regards,

Sandy

Accepted Solutions (1)

Accepted Solutions (1)

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Sandeep,

This you will be able to achieve using one of these user-exits

CONFPP01 

CONFPP02

CONFPP03

CONFPP04

With the above exits you can arrange the exception as soon as you enter Order and Operation in CO11N

CONFPP05 ----> With this you will be able to prevent unauthorized confirmations at the time of SAVING the confirmation.

Pre-requisite

You need a relation between UserId and Workcenter (ARBPL) . for this you might be requiring a Z table with these 2 fields. The code first checks the Z-table whether a line having, userId (SY_UNAME) and the Work center (AFRUD_IMP-ARBPL) is existing. IF it exists, no error will be triggered. IF it is not error will be triggered and Confirmation will not be possible. (In case of exit CONFPP05 , the work center field will be AFRUD_TAB-ARBPL),

Show this to your ABAPer as clues for logic for your exit code. It will be a simple task.

Good luck

KJogeswaraRao

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

I suggest you to use BAdI workorder_confirm.

BR
Caetano

Answers (1)

Answers (1)

0 Kudos

Hello, i had the same problem, i checked Authorization object - C_AFRU_APL in transaction code su22 and su24 but anyway when i trace the authorizations checked it doesn´t appear, just the one related to order class, nothing about work center . Any idea? Thanks.