Skip to main content
Answer

Getting the SO number from the PO

  • May 13, 2021
  • 5 replies
  • 588 views

wfilipiak67
Captain II
Forum|alt.badge.img+3

Hi, 
I am trying to pull the Sales Order number onto the Purchase Order Form (PO641000) for Drop Ship SO’s & Purchase Orders. 
I can’t find the tables to link to from the PO Line to get the Sales Order#.
In the SO I can click on the PO Link
On the PO I can click on the View SO Demand. 

Can anyone point me in the right direction for this?

Thanks Bill

 

Best answer by Neil Cantral

SOLinesSplit will have the fields needed to create the relation between purchase order and sales order details. (POType, PONbr, POLineNbr, etc.)

5 replies

Neil Cantral
Jr Varsity I
Forum|alt.badge.img+3
  • Jr Varsity I
  • Answer
  • May 13, 2021

SOLinesSplit will have the fields needed to create the relation between purchase order and sales order details. (POType, PONbr, POLineNbr, etc.)


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • May 13, 2021

 

Yes, As Neil said, we can get the PO details from SOLineSplit talbe. just attaching screenshot for reference.

 


wfilipiak67
Captain II
Forum|alt.badge.img+3
  • Author
  • Captain II
  • May 13, 2021

Thank you for the assistance! 
It worked like a charm!


Forum|alt.badge.img
  • Jr Varsity III
  • November 14, 2022

This is not working for me for some reason.  It’s really puzzling.  The joins look right and I know that there are thousands of Mark For PO’s but it only returns one record.

 

I look at the SOLineSplit DAC and see plenty of records.  Can you verify that the joins are correct?  Inner returns the same single record. 

 

 

 

 


nathantrauscht
Semi-Pro II
Forum|alt.badge.img

@dgross54

Try:

POOrder (Parent) Left Join POLine (Child)

OrderType = OrderType

OrderNbr = OrderNbr

 

POLine (Parent) Left Join SOLineSplit (Child)

OrderType = SOLineSplit.POType

OrderNbr = SOLineSplit.PONbr

LineNbr = SOLineSplit.POLineNbr

 

Tested this in a GI and it is working.

I would also add a parameter to only show results for POLine Type “Goods for SO” operator “Or” “Goods for Drop-Ship” check the box “From Schema” to see the drop down selection options.