Skip to main content
Question

How can I only display second segment of the subaccount in the report?


Forum|alt.badge.img
  • Semi-Pro II
  • 259 replies

Hello all,

How can I display only a second segment of subaccount (AAA-BBB) in my report?
So as per the above segment I only want to display BBB in my report. Maybe I would be need to apply formatting condition?

 

Thanks.

4 replies

nhatnghetinh
Captain II
Forum|alt.badge.img+11
  • Captain II
  • 566 replies
  • April 11, 2025

Hi ​@Harry 

Please use the Right( str, length ) function. For example: = Right( [GLTran.SubID], 3 )

 

Best Regards,

NNT


Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • 259 replies
  • April 11, 2025

Hey ​@nhatnghetinh , thanks for your prompt response. Similarly I also have project tasks with 2 divisions/segments. The first segment - 10 chars & the second - 4 chars. So in order to print only 1st segment it would be: Left([PMTask.TaskCD],10)?


nhatnghetinh
Captain II
Forum|alt.badge.img+11
  • Captain II
  • 566 replies
  • April 11, 2025

Hi ​@Harry 

That's right. You use the Left( str, length ) & Right( str, length ) functions to get the left or right character strings from the position you want to get.

 

Best Regards,

NNT


saifalisabri
Jr Varsity II
Forum|alt.badge.img
  • Jr Varsity II
  • 47 replies
  • April 11, 2025

To display only the second segment of the SubAccount in an Acumatica report:

  1. Modify the Report Data Source:
    Use the SplitSegment function in the report’s field expression:

Copy

=SplitSegment(SubAccountID, 1)

Replace SubAccountID with your actual field name.

  1. Adjust the Index:
    • Segments are zero-indexed (e.g., SplitSegment(SubAccountID, 1) returns the second segment).
    • Verify the delimiter and segment count in SubAccount Settings (GL > Setup > Segments).

This extracts the desired segment dynamically based on your configuration.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings