Implementing User-Specific Access Control in Sage X3 for the Receipt Line Inquiry Screen

By | May 30, 2025

In Sage X3, the Receipt Line Inquiry screen allows users to view and manage detailed information about receipt transactions, including inventory receipts, supplier deliveries, and other related data. By default, all users have access to view all records in this screen. However, due to a client requirement, we need to restrict access such that:

  • Regular users can only view their own created entries.
  • Administrative users retain the ability to view all records.

To achieve this, the following steps were implemented:

Step 1: Create a Miscellaneous Table (19100)

  • Create a miscellaneous table (e.g., 19100) to list the user IDs who should have access to view all records.

New Stuff: How to Change Screen Title Using Code in Sage X3

fig1 Misc Table
fig1 Misc Table

Step 2: Search for the Script Code Related to the Receipt Line Inquiry Screen

Navigate to:
All → Development → Script Dictionary → Windows → FCNSCPS

Open the CONSCPS2 screen and search for the standard script, i.e., CNSCPSSTD.

fig2 CONSCPS2 screen
fig2 CONSCPS2 screen

Step 3: Apply the Access Control Logic

In the LOAD_FILTER event, add the following code:

Fig3 Script Code
Fig3 Script Code

Explanation of the Code:
-> CHECK Variable: Initializes to 0.
-> Loop through Table 19100: Checks if the current user (GUSER) exists in the table.
-> If the user is found, CHECK is incremented.
-> Access Restriction:
-> If the user is not found in table 19100 (CHECK < 1), the filter condition is applied to restrict records to those created by the current user (CREUSR = GUSER).

-> If the user is found, they can view all records.

Output:

By following these steps, you can efficiently manage user access, ensuring compliance with business rules and enhancing data integrity within Sage X3.

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.

Greytrix has some unique integration solutions developed for Sage CRM with Sage ERPs namely Sage X3Sage IntacctSage 100Sage 500, and Sage 300. We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users, and Sage PSG worldwide. Greytrix helps in the migration of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes addons like  Greytrix Business Manager, Sage CRM Project Manager, Sage CRM Resource Planner, Sage CRM Contract Manager, Sage CRM Event Manager, Sage CRM Budget Planner, Gmail Integration, Sage CRM Mobile Service Signature, Sage CRM CTI Framework.

Greytrix is a recognized Sage Champion Partner for GUMU™ Sage X3 – Sage CRM integration listed on Sage Marketplace and Sage CRM – Sage Intacct integration listed on Sage Intacct Marketplace. The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.

For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.