I'm not getting desired results for a situation where I need to report 2 separate entity names per row, where name for each comes from the same table. We're using JDE if that helps folks here so I'll illustrate:
Report rows (and summaries, etc) need to have both Customer Name for sales history info and the associated Sales Rep entity assigned to teh sold-to customer. All entity names are stored in a single table: F0101 "Address Book" and the name is stored as "ALPH".
Sales history detail (F42119) can be linked easily enough to F0101 to get Customer name using sold-to AB# key. So for customer name detail show F0101.ALPH where F42119.AN8 = F0101.AN8 for join (I'm not including table-specific column prefixes used in JDE).
But to get Sales Rep name, I first have to join through an intermediate table, F42140 (for anyone who knows JDE, please ignore fact that there's an order-specific Rep relationship as well).
I can join sales history to that sales rep assignment on same sold-to key, AN8. So, F42119.AN8 = F42140.AN8 to find the related sales rep assignment key (but not name as it's not in that table). But then I need to continue "through" F42140 to F0101 to get the Rep's name using a different column in F42140: SLSM. SLSM is still an AB#, just as AN8 is. So, I have SLSM joined to an alias of F0101 (call it F55123) on AN8 to fetch ALPH.
But all I get for results is Sales Rep name repeated for *both* the customer and the sales rep entity for all rows no matter what I do. I do have separate ALPH field outputs chosen from each F0101 (original) and F55123 (alias) in the proper places on the report detail, but no matter.
I'm certain I'm not setting up the alias properly, or the joins, or...but after a good bit of Help review, and experimentation I cannot get the desired results. I feel it's something simple and it's driving me crazy.
Can any of you assist?
Thanks in advance,
Chris
Report rows (and summaries, etc) need to have both Customer Name for sales history info and the associated Sales Rep entity assigned to teh sold-to customer. All entity names are stored in a single table: F0101 "Address Book" and the name is stored as "ALPH".
Sales history detail (F42119) can be linked easily enough to F0101 to get Customer name using sold-to AB# key. So for customer name detail show F0101.ALPH where F42119.AN8 = F0101.AN8 for join (I'm not including table-specific column prefixes used in JDE).
But to get Sales Rep name, I first have to join through an intermediate table, F42140 (for anyone who knows JDE, please ignore fact that there's an order-specific Rep relationship as well).
I can join sales history to that sales rep assignment on same sold-to key, AN8. So, F42119.AN8 = F42140.AN8 to find the related sales rep assignment key (but not name as it's not in that table). But then I need to continue "through" F42140 to F0101 to get the Rep's name using a different column in F42140: SLSM. SLSM is still an AB#, just as AN8 is. So, I have SLSM joined to an alias of F0101 (call it F55123) on AN8 to fetch ALPH.
But all I get for results is Sales Rep name repeated for *both* the customer and the sales rep entity for all rows no matter what I do. I do have separate ALPH field outputs chosen from each F0101 (original) and F55123 (alias) in the proper places on the report detail, but no matter.
I'm certain I'm not setting up the alias properly, or the joins, or...but after a good bit of Help review, and experimentation I cannot get the desired results. I feel it's something simple and it's driving me crazy.
Can any of you assist?
Thanks in advance,
Chris