Solved

Fetching information from Tables

  • 17 January 2024
  • 3 replies
  • 59 views

Badge

As shown in figure, Sales Ord Is My Base Table, and second table is Sales_ORD_LN_PROD_FAM,
what i want to do is, Fetch PROD_FAM_NO,SALES_ORD_LN_NO column in to Sales Ord Table,
Sales_Ord_No is same column in both Table,

Is there any way to do it,

icon

Best answer by daniel 17 January 2024, 13:06

View original

3 replies

Userlevel 6
Badge +5

Are the tables in the same data area? Have you considered creating a conditional lookup (similar to CUST_NAME) for both columns (i.e. PROD_FAM_NO, and SALES_ORD_LN_NO) with Sales_Ord_No as the join field?

Userlevel 4
Badge +5

Dear @Karankadam ,

 

To me it looks like making a look up from the PROD_FAM_NO to the SALES_ORD table is a mismtch in granularity. The PROD_FAM_NO is on a sales order line level where the sales order table is on a sales order level. So in this case the PROD_FAM_NO table should be the main table and you need to look up from the SALES_ORD table. lowest granularity table usually is master). or you need to do look up with a aggragation in it. but you cannot look up the SALES ORDER LN to the SALES ORD table and not aggregate.

Let say you really NEED to do this, then you can create a view and join the two tables which will result in a duplication of rows in the SALES ORD table by the amount of SALES ORD LINES echt SALES ORD has.

 

Hope this helps

= Daniel

Userlevel 6
Badge +5

Hi @Karankadam has this issue been resolved? If so can you please help us by marking a best answer above? If you have any follow up questions, please let us know

Reply