Skip to main content
Answer

Building a new report- joining tables

  • March 8, 2023
  • 3 replies
  • 238 views

ALEXSLUSSER15
Freshman II
Forum|alt.badge.img

Hey all! I’m building a new version of the Batch Packing Slip report, and in order to make it do what I need, I need to add the SOOrder, SOLine and SOLineSplit tables. However- once I added them, it caused the report to loop line items thousands upon thousands of times.

How do I fix this? I’ve attached the report.

Best answer by BenjaminCrisman

@ALEXSLUSSER15 I was in the same boat when I first started trying to tackle them! They are just a report running within a report, but the only way the subreport can get data is from what is sent to it via the main report.

For this issue I would add a subreport and set a collection parameter called ShipmentNbr and use SOShipment.ShipmentNbr as the value:

Create a new report and add the SOShipLineSplit table in there, set a parameter for shipment number and a filter condition where SOShipLineSplit.ShipmentNbr = @ShipmentNbr

Then put your fields into the Details or groupFooter section and update the main report with the name you’ve given the subreport:

You can then remove the SOShipLineSplit fields from the section they print in and it should work as expected

3 replies

BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • March 8, 2023

Hi @ALEXSLUSSER15! The only way to get around this is to use a subreport.

In the subreport use the SOShipLineSplit and send the Order Type and Order Number as collection parameters.

Then in the subreport either in the Details section or a groupfooter section add the SOShipLineSplit fields


ALEXSLUSSER15
Freshman II
Forum|alt.badge.img
  • Author
  • Freshman II
  • March 8, 2023

Hi @ALEXSLUSSER15! The only way to get around this is to use a subreport.

In the subreport use the SOShipLineSplit and send the Order Type and Order Number as collection parameters.

Then in the subreport either in the Details section or a groupfooter section add the SOShipLineSplit fields

@BenjaminCrisman I don’t understand how to use subreports. They don’t make any sense to me.

There’s no way to join these tables? I don’t understand why that would be.


BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • Answer
  • March 8, 2023

@ALEXSLUSSER15 I was in the same boat when I first started trying to tackle them! They are just a report running within a report, but the only way the subreport can get data is from what is sent to it via the main report.

For this issue I would add a subreport and set a collection parameter called ShipmentNbr and use SOShipment.ShipmentNbr as the value:

Create a new report and add the SOShipLineSplit table in there, set a parameter for shipment number and a filter condition where SOShipLineSplit.ShipmentNbr = @ShipmentNbr

Then put your fields into the Details or groupFooter section and update the main report with the name you’ve given the subreport:

You can then remove the SOShipLineSplit fields from the section they print in and it should work as expected