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: 

restricting the COFC access by order category and plant

Former Member
0 Kudos

Hi,

We have so many plants in group company and with different order categories. When a user runs the tcode:COFC he is able to see all the plants and orderswithin the company. We want to restrict the access to specific order category and plants.

I have use the authorization objects C_AFFW_TWK C_AFKO_AWK but I did not get any successs.

Please suggest

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check if the user gets a * (all plants access) from the roles in which he has related transactions like CO14, CO03, ........

4 REPLIES 4

Former Member
0 Kudos

Check if the user gets a * (all plants access) from the roles in which he has related transactions like CO14, CO03, ........

0 Kudos

Dear mandrakis,

Try using object C_AFKO_AWA and C_AFKO_ATY.

0 Kudos

thanks... tried but no use

0 Kudos

Hi,

there is no authorization check executed during selection of records from table AFRC. That report is really simple. It reads records from AFRC restricted by selection screen and displays result in ALV. Therefore the only way how to add additional authorization check is to extend that report using enhancement framework or direct modification. If you are on NetWeaver platform then you can use enhancement framework. There is only one point which you can use. It's the beginning of subroutine list_entries_alv. The problem is that if user does not select checkbox List Display then this subroutine is not executed and there is no suitable enhancement point. So you can try to set up variant for this transaction to always use List Display and hide it from users.

Cheers