Symptom
When attempting to upload a file in the Fiori app “Create Sales Orders – Automatic Extraction” (App ID: F4790), the following error message appears:
- “You are not authorized to use company code XXXX.”
This occurs even though the user has all required business roles assigned.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Navigate to the "sales orders - automatic extraction" app.
- Attempt to upload a file.
- Observe the error message: "You are not authorized to use company code XXXX."
Cause
- In SAP S/4HANA Public Cloud, authorization for the app is controlled via business catalogs within business roles.
If the relevant business catalog is missing in the user’s role, the backend OData service (C_SLSORDREQFRMEXTSRC_SRV) cannot access the specified company code. - Additionally, CBC (Central Business Configuration) scoping must include the relevant company code for Sales Order Request processing.
Resolution
- Open the "Maintain Business Roles" app in the production system.
- Select the internal sales role assigned to the user and click "Edit".
- Navigate to the "Business Catalogs" section.
- Add the business catalog SAP_SD_BC_SO_EXTRACTION_PC to the selected role.
- This catalog provides authorization for the Create Sales Orders – Automatic Extraction app.
- Save the changes and assign the updated role to the user.
- Retry uploading the file in the "sales orders - automatic extraction" app.
If the error persists:
-
Verify in CBC that the relevant company code is scoped and active for Sales Order Request functionality.
-
Ensure the communication arrangement C_SLSORDREQFRMEXTSRC_SRV is active and assigned to the correct communication user.
See Also
- Refer to SAP Note 3664594: 3664594 - Authorization issue for company code in app F4920 - Create Sales Orders - Automatic Extraction Onprem
- Refer to SAP Fiori Apps Library: SAP Fiori Apps Reference Library
Keywords
Authorization Error, Sales Orders Automatic Extraction, Company Code 2210, SAP S/4HANA Cloud Public Edition, Business Catalog SAP_SD_BC_SO_EXTRACTION_PC, Maintain Business Roles, Backend Authorizations, File Upload Error, Not Authorized Message, Sales Order Creation Automation , KBA , SD-SLS-IMP-DOX-2CL , Sales Document Creation Based on Unstructured Data (PubC) , Problem
SAP Knowledge Base Article - Public