Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WS795 - No authorization &1 for cost center &2 in company code &3.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 795

  • Message text: No authorization &1 for cost center &2 in company code &3.

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS795 - No authorization &1 for cost center &2 in company code &3. ?

    Certainly! Here's a detailed explanation for the SAP error message:


    SAP Error Message:

    WS795 No authorization &1 for cost center &2 in company code &3


    Meaning / Cause:

    This error occurs when a user tries to perform an action (such as posting, displaying, or changing data) related to a cost center in a specific company code, but the user does not have the required authorization for that cost center.

    • &1 = Authorization object or activity missing (e.g., display, change, post)
    • &2 = Cost center number
    • &3 = Company code

    The system checks the user's authorizations against the cost center master data and company code. If the user lacks the necessary authorization, the system throws this error.


    Common Causes:

    • Missing or incorrect assignment of cost center authorizations in the user's role.
    • User's role does not include the required authorization object for cost center (e.g., K_CCA).
    • Authorization object values (cost center, company code) are not maintained or are restricted in the user's role.
    • The user is trying to access a cost center outside their authorized range.

    Authorization Object Involved:

    • K_CCA (Cost Center Accounting)
      • Fields include:
        • KOSTL (Cost Center)
        • BUKRS (Company Code)
        • ACTVT (Activity: e.g., 03 = Display, 01 = Create, 02 = Change, 23 = Post)

    Solution / How to Fix:

    1. Check User Roles and Authorizations:

      • Use transaction SU01 to check the user's assigned roles.
      • Use transaction PFCG to review the roles and their authorization objects.
    2. Verify Authorization Object K_CCA:

      • In the user's roles, check if the authorization object K_CCA is present.
      • Ensure that the cost center (&2) and company code (&3) are included in the authorization values.
      • Ensure the required activity (&1) is authorized (e.g., display, change, post).
    3. Adjust Role Authorizations:

      • If missing, add or adjust the authorization object K_CCA in the role.
      • Include the relevant cost centers and company codes.
      • Assign the correct activity values.
    4. Assign Updated Role to User:

      • After updating the role, assign it to the user.
      • Have the user log off and log back in to refresh authorizations.
    5. Test the Access:

      • Try the operation again to confirm the error is resolved.

    Additional Notes:

    • Sometimes, cost center authorizations are maintained with ranges or wildcards (e.g., cost centers starting with "1*").
    • If the user needs access to multiple cost centers, ensure all are included or use appropriate ranges.
    • If the user should have access to all cost centers, the authorization can be set to "*" (all).
    • Always follow your organization's security policies when granting authorizations.

    Summary:

    Aspect Details
    Error WS795 No authorization for cost center
    Cause Missing authorization for cost center & company code
    Authorization Object K_CCA (Cost Center Accounting)
    Solution Add/adjust K_CCA authorization in user roles with correct cost center, company code, and activity values

    If you need help identifying the exact missing authorization, you can use transaction SU53 immediately after the error occurs to see the failed authorization check.


    Let me know if you want guidance on how to update roles or check authorizations in detail!

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker