Skip to main content
Answer

PO Receipt (PO646000) report duplicate inventory when join with POReceiptLandedCostDetail table?

  • November 4, 2022
  • 9 replies
  • 135 views

Forum|alt.badge.img

Hi all,

I want to add tab Landed Costs to PO Receipt report but when I join, the inventory is doubled.

 

If you have any idea, pls help me.

 

 

Best answer by Laura03

We want to join two tables on as many key fields as possible. 

Key Fields in POReceiptLine table
Key Fields in POLandedCostReceiptLine table

If you join on the above fields, in the same order they appear above and you still see duplicates, please post your join.

I’m not able to help with customization - if needed, another community member will help you in this area. 

 

Laura

9 replies

Laura03
Captain II
Forum|alt.badge.img+19
  • Captain II
  • November 4, 2022

When we have duplicate lines, the problem is nearly always a problem with the join.  I’m not a Join Expert or a report-writing export but I will try to give you some ideas and hopefully my ideas will help you...

In your screenshot I see POReceipt (A ‘header’ or Summary-level table/class) is joined to POReceiptLandedCostDetail,  a detail/transaction table. Could one POReceipt have multiple I  lines in the Landed Cost table? Maybe this leads to duplicates. With these two tables we can’t add a second join field because there is no Line Number in POReceipt table.

I think you will need to find the PO Receipt Line table, add PO Receipt Line table to your report, and connect the POReceipt Line table to the POReceiptLandedCostDetail table using both Receipt Number and Line Number fields.

Good luck!


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • November 4, 2022

Hi @dilys  Can you please Also with POReceiptType along with POReceiptNbr?

 

POReceipt → ReceiptType, ReceiptNbr

POReceiptLandedCostDetail → POReceiptType, POReceiptNbr


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • November 6, 2022

When we have duplicate lines, the problem is nearly always a problem with the join.  I’m not a Join Expert or a report-writing export but I will try to give you some ideas and hopefully my ideas will help you...

In your screenshot I see POReceipt (A ‘header’ or Summary-level table/class) is joined to POReceiptLandedCostDetail,  a detail/transaction table. Could one POReceipt have multiple I  lines in the Landed Cost table? Maybe this leads to duplicates. With these two tables we can’t add a second join field because there is no Line Number in POReceipt table.

I think you will need to find the PO Receipt Line table, add PO Receipt Line table to your report, and connect the POReceipt Line table to the POReceiptLandedCostDetail table using both Receipt Number and Line Number fields.

Good luck!

Thanks @laura01 so much,

I think your idea makes sense but when I join as you advice it's still duplicated, I went back to check the field in the PO Receipt Line table and i see the PO ReceiptNbr is empty.

I also check customize and I dont know how to add the right field into this. 

Pls help me if you have any idea.


Laura03
Captain II
Forum|alt.badge.img+19
  • Captain II
  • November 7, 2022

Hello, @dilys ,

Were you able to join with Naveen’s idea?


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • November 7, 2022

Hello, @dilys ,

Were you able to join with Naveen’s idea?

That idea doesn't work either, I see ur idea possible, but I don’t know why field POReceiptNbr does not appear.


Laura03
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • November 7, 2022

We want to join two tables on as many key fields as possible. 

Key Fields in POReceiptLine table
Key Fields in POLandedCostReceiptLine table

If you join on the above fields, in the same order they appear above and you still see duplicates, please post your join.

I’m not able to help with customization - if needed, another community member will help you in this area. 

 

Laura


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • November 8, 2022

We want to join two tables on as many key fields as possible. 

Key Fields in POReceiptLine table
Key Fields in POLandedCostReceiptLine table

If you join on the above fields, in the same order they appear above and you still see duplicates, please post your join.

I’m not able to help with customization - if needed, another community member will help you in this area. 

 

Laura

Oh it’s work thank you, it's not duplicated anymore, but the information I want from the POReceiptLandedCostDetail  table not POLandedCostReceiptLine


Laura03
Captain II
Forum|alt.badge.img+19
  • Captain II
  • November 8, 2022

Hi,

I looked at the database in SQL and there is no POReceiptLandedCostDetail table. POLandedCostReceiptLine was the closest thing.  Can you link POReceiptLandedCostDetail using the same fields?

If not, an expert report writer or programmer will need to help us.

 


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • November 8, 2022

Hi,

I looked at the database in SQL and there is no POReceiptLandedCostDetail table. POLandedCostReceiptLine was the closest thing.  Can you link POReceiptLandedCostDetail using the same fields?

If not, an expert report writer or programmer will need to help us.

 

Hi @laura01 , below is the table POReceiptLandedCostDetail I’ve mentioned. I also try to join and it’s show the first line of this table, I put it in detail section 2 and grouping by LCRefNbr, do you know why it’s only show first line?