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: 

Reg : CV01N Restrict document creation based on LAB/OFFICE

Former Member
0 Kudos
362

Dear Team,

Our requirement is to restrict the document creation based on Lab/Office in CV01N.

For that we have created a Authorization Object with the fields ACTVT,DOKAR and LABOR in SU21.

Basis team has created Role and assigned this Authorization Object(Z_DRAW_LAB),Users needs to be restricted in PFCG.

But when we try to create document for the restricted user in CV01N, it is allowing to create the document irrespective of the authorization.

Why it is allowing to create the document..?

Thanks & Regards

P.Thangaraj

1 ACCEPTED SOLUTION

Former Member
0 Kudos
171

There is a standard authorization object C_DRAW_TCD -> use DOKAR level restriction for document types


I believe it can be used to restrict the access based on Create/Change/Display and based on Document Types in the system.

If they already have this role then by using a custom role will not restrict the current access.

You can co-ordinate with your basis & Fxnl to analyze these roles.

Hope it helps

4 REPLIES 4

nabheetscn
Active Contributor
0 Kudos
171

Hi

Can you please start debugging  and put a break point at Authoriation object statement and check the same

Nabheet

Former Member
0 Kudos
172

There is a standard authorization object C_DRAW_TCD -> use DOKAR level restriction for document types


I believe it can be used to restrict the access based on Create/Change/Display and based on Document Types in the system.

If they already have this role then by using a custom role will not restrict the current access.

You can co-ordinate with your basis & Fxnl to analyze these roles.

Hope it helps

0 Kudos
171

Hi Byju

   We r trying to restrict the user with Lab/Office and not Document type. The Document type will be  same for all the users and full authorization has been given for the same.

0 Kudos
171

You can use BADI DOCUMENT_AUTH01 method CHECK_AUTHORITY for the same

There are many BADI's available like DOCUMENT_MAIN01.

Nabheet