• Who We Are
    • About Us
    • Factor - D
    • Our Networks
    • Accolades
  • What We do

    SERVICES

    • Consulting / Implementation
    • Migration
    • Development

    OUR SOLUTIONS

    • GUMU Integration
    • BPortaly
    • Sales Commission
    • Shipping
    • IOT

    COMPREHENSIVE SERVICES FOR

    • ERP
    • Acumatica
    • Sage Intacct
    • Sage X3
    • Sage 300
    • Sage 100
    • Sage 500
    • CRM
    • Salesforce
    • D365 CRM
    • Sage CRM
    • Creatio

    Other Solutions

    • E-commerce
    • EDI
    • POS

    SERVICES

    • Consulting / Implementation
    • Migration
    • Development
    • Consulting / Implementation
    • Migration
    • Development

    SOLUTIONS

    • GUMUTM Integration
    • GUMUTM Copilot
    • BPortaly
    • Sales Commission
    • ShipEazy Shipping Solution
    • IOT

    COMPREHENSIVE SERVICES FOR

    ERP

    • Acumatica
    • Sage Intacct
    • Sage X3
    • Sage 300
    • Sage 100
    • Sage 500
    • SAP
    CRM
    • Salesforce
    • D365 CRM
    • Sage CRM
    • Creatio
    Other Solutions
    • E-commerce
    • EDI
    • POS
  • Resources
    • Case Study
    • Blogs
    • Videos
    • Ebooks
    • News
  • +1 888 221 6661
Contact us
Career |
  • Africa
  • Middle East

Sage X3 – Tips, Tricks and Components

Discover the unmatched potential of Sage X3 with our exclusive blogs. Greytrix is a seasoned Sage expert offering a comprehensive range of Sage X3 services to empower businesses with higher productivity and growth. Here, we share our knowledge and the latest technology trends on Sage X3 through insightful blogs, aiming to enhance your understanding of Sage X3 as an ERP software. Stay updated with our regular posts to leverage the ERP to its full potential.

Automating GL Credit Account based on Reason Code in Sage X3 Miscellaneous Receipts

By Greytrix | November 23, 2026
0 Comment

In the standard Sage X3 process, Miscellaneous Receipt entries are accounted for in the General Ledger through predefined accounts maintained in the Automatic Journal (commonly STKEN). Although this method is suitable for regular scenarios, it lacks the flexibility to determine the credit account based on a user-selected Reason Code.

A recent client requirement, When a Miscellaneous Receipt is created and the Account Interface is run, the credit line in the resulting GL entry should use the Account Code linked to the Reason Code selected by the user on the receipt screen (instead of a fixed standard account).  

We implemented configurable solution using a Miscellaneous Table + custom field mapping in the Automatic Journal.

Step 1 : . Reason Code & Account Code Mapping (Miscellaneous Table 19138)

– A new Miscellaneous Table 19138 – Reason Code for misc issue was created.- Users maintain the mapping here (Code → Description → Account Code in Short description). Please see Fig 1.

– A new Miscellaneous Table 19138 – Reason Code for misc issue was created.

– Users maintain the mapping here (Code → Description → Account Code in Short description). Please see Fig 1.

New Stuff:- How to Decode Base64 to a File in Sage X3 Using 4GL

Fig1. Miscellaneous Table 19138
Fig1. Miscellaneous Table 19138

This table becomes the single source of truth. Finance or master-data teams can add or change mappings without any development.

Step 2 : Entry Creation – Automatic Population of Account Code

On the Miscellaneous Receipts screen (Misc Stock Receipts Full Entry):

 – User selects the Reason using the finder.

 – The system automatically populates the corresponding Account Code in the product line (from the mapping maintained in table 19138).  Please see Fig 2

Fig2. Miscellaneous Receipt
Fig2. Miscellaneous Receipt

Step 3 : GL Posting via Automatic Journal (STKEN)

 The key technical step was to make the Automatic Journal pick up the Account Code stored on the receipt line.

 In Automatic Journals → STKEN → Formulas tab:

 – On the Stock variation line (the credit line – usually line 2 & 3 )

 – For the field Account Legal >> Account Legal >> The formula was set to: num$([F:SMD]ZACC). Please see Fig 3  (Stock variation line 2 ) – For the field Account Legal >> Account Legal >> The formula was set to: num$([F:SMD]ZACC). Please see Fig 4  (Stock adjustment line 3)

Fig 3. Automatic Journals (STKEN) 2 line
Fig 3. Automatic Journals (STKEN) 2 line
Fig 4. Automatic Journals (STKEN) 3 line
Fig 4. Automatic Journals (STKEN) 3 line

This formula reads the Account Code field (ZACC) from the Miscellaneous Receipt detail line and passes it to the GL entry.

After running the Account Interface, the generated journal clearly shows the dynamic accounts:

– Debit lines use the standard inventory / stock accounts. – Credit lines use the Reason-driven accounts (1101000, 1101100, etc.) exactly as selected by the user on the receipt. Please see Fig 5

Fig 5. Journal Entry
Fig 5. Journal Entry

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 X3, Sage Intacct, Sage 100, Sage 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.

Category: Integration Sage ERP X3 Tags: Account code, Accounting interface, Automatic Journal, GL Posting, miscellaneous receipt, Reason Code, Sage X3, STKEN
Post navigation
← How to Decode Base64 to a File in Sage X3 Using 4GL

Greytrix Website and Blogs

  • Greytrix
  • Greytrix Africa
  • Sage 100 & 500 ERP Tips and Tricks
  • Sage 300 – Tips, Tricks and Components
  • Sage CRM – Tips, Tricks and Components
  • Salesforce.com Tips and Tricks by Greytrix
  • Sage Intacct – Tips, Tricks and Components
sage crm and sage x3 integration

Categories

  • Configuration
  • Debug
  • FAQ
  • Features
  • Installation
  • Integration
  • Sage X3 Consulting
  • Tips

Archives

Awards

Premier Partner of the Year
  Premier Partner of the Year
Platinum Partner of the Year
        Platinum Partner of the Year
The CEO Story
                     The CEO Story
Gold Partner pf the Year
          Gold Partner of the Year
Top Excellence Distributor
           Top Excellence Distributor
  • na.sales@greytrix.com
  • +1 888 221 6661
  • B301, 3rd Floor, Everest Nivara Infotech Park, MIDC, Turbhe,
    Navi Mumbai 400 705. India

Our Global Locations >>

Who We Are

  • About Us
  • Factor - D
  • Our Network
  • Accolades
  • Career
  •  
  •  

Services

  • Consultation & Implementation
  • Migration
  • Development

Solutions

  • GUMUTM Integration
  • BPortaly
  • Sales Commission
  • Shipping
  • IOT
  •  
  •  

ERP

  • Acumatica
  • Sage Intacct
  • Sage X3
  • Sage 300
  • Sage 100
  • Sage 500

CRM

  • Salesforce
  • D365 CRM
  • Sage CRM
  • Creatio
  •  
  •  
  •  

Other Solutions

  • E-commerce
  • EDI
  • POS

Resources

  • Case Study
  • Blogs
  • Videos
  • E-books
  • News
  •  
  •  

Connect

  • Contact Us
  • Privacy Policy
  • Terms Of Use
  •  

© 2026. Greytrix, All Rights Reserved

  • na.sales@greytrix.com
  • +1 888 221 6661
  • B301, 3rd Floor, Everest Nivara Infotech Park, MIDC, Turbhe,
    Navi Mumbai 400 705. India

Our Global Locations >>

Who We Are

  • About Us
  • Our AI expertise
  • Factor - D
  • Our Network
  • Accolades
  • Career
  •  

CRM

  • Salesforce
  • D365 CRM
  • Sage CRM
  • Creatio
  •  
  •  
  •  

Solutions

  • GUMUTM Integration
  • GUMUTM Copilot
  • BPortaly
  • Sales Commission
  • Shipping
  • IOT
  •  

ERP

  • Acumatica
  • Sage Intacct
  • Sage X3
  • Sage 300
  • Sage 100
  • Sage 500
  • SAP

Services

  • Consultation & Implementation
  • Migration
  • Development
  •  
  •  
  •  

Other Solutions

  • E-commerce
  • EDI
  • POS

Resources

  • Case Study
  • Blogs
  • Videos
  • E-books
  • E-brochure
  • News
  • Sitemap

Connect

  • Contact Us
  • Privacy Policy
  • Terms Of Use
  •  
ISO 27001:2022 and SOC 2 Certified Company

© 2026. Greytrix, All Rights Reserved