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

Close

How To Fix WS366 - No authorization for documents for document type & (see long text)


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 366

  • Message text: No authorization for documents for document type & (see long text)

  • Show details Hide details
  • What causes this issue?

    You need authorization for settlement documents, supplier billing
    documents or settlement document lists for activity &V1& (&V2&). You do
    not have this authorization.
    Settlement document type is &V3& (&V4&).
    Authorization object is
    <DS:UO.W_WBRK_FKA>W_WBRK_FKA</>.

    System Response

    The documents concerned are not processed.

    How to fix this error?

    If necessary, contact your system administrator, who can give you the
    necessary authorization.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS366 - No authorization for documents for document type & (see long text) ?

    SAP Error Message:
    WS366 No authorization for documents for document type & (see long text)


    Cause:

    This error occurs when a user tries to create, change, or display a document of a certain document type in SAP, but does not have the necessary authorization to perform the action on that document type. The system checks authorizations based on the document type, and if the user’s roles do not include the required authorization objects or values, the system issues this error.


    Explanation:

    • SAP controls access to documents (e.g., financial documents, purchase orders, sales orders) by document type.
    • Authorization objects such as F_BKPF_BES (Accounting Document: Authorization for Document Types) or similar are used to restrict access.
    • The error message indicates that the user lacks the authorization for the specific document type mentioned in the message.

    Solution:

    1. Check User Authorizations:

      • Identify the document type causing the issue (it will be shown in the message or long text).
      • Check the user’s roles and authorizations in transaction SU01 or PFCG.
      • Look for authorization objects related to document types, such as:
        • F_BKPF_BES (Accounting Document: Authorization for Document Types)
        • M_BEST_BSA (Purchase Order Document Types)
        • V_VBAK_AAT (Sales Document: Authorization for Document Types)
      • Verify if the user has the required values for the document type in these authorization objects.
    2. Adjust Roles/Authorizations:

      • If missing, add the required document type(s) to the user’s roles.
      • Use transaction PFCG to modify roles and add the document type to the relevant authorization objects.
      • After changes, regenerate and assign the role to the user.
    3. Test:

      • Have the user log off and log back in (or refresh authorizations).
      • Retry the transaction to confirm the error is resolved.

    Related Information:

    • Transaction Codes:

      • SU53 – Display last authorization check (useful immediately after the error to see which authorization failed)
      • SU01 – User maintenance
      • PFCG – Role maintenance
      • SE91 – Message maintenance (to see message long text)
    • Common Authorization Objects:

      • F_BKPF_BES – For FI document types
      • M_BEST_BSA – For MM purchase order document types
      • V_VBAK_AAT – For SD sales document types
    • Notes:

      • Always follow your company’s security policies when changing authorizations.
      • Avoid giving broad authorizations; restrict to only necessary document types.
      • Use SU53 immediately after the error to pinpoint missing authorizations.

    Summary:

    Error WS366 means the user lacks authorization for the specified document type. The fix is to check and update the user’s roles to include the required document type in the relevant authorization objects.


    If you need help identifying the exact authorization object or document type, please provide the transaction or module context (FI, MM, SD, etc.) and the document type code.

    • 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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant