CR XI
JDE User Business Views
I a trying to integrate more Crystal into our reporting environment and have run accross a situation where i need to link 2 tables. I have read that Crystals sub report feature works well when there is a many to many join between tables. here is my situation:
Main report - A/P detail file: - Doc #, Doc Type, Line #, Amount
Sub report - G/L detail file: - Doc #, Doc Type, Line #. Amount
A. In some cases there is a 1 to 1 relationship between the tables.
AP: Doc# 123, line 1
GL: Doc# 123, line 1
B. Some times its many to 1 (1 AP reord to multiple GL reords).
AP: Doc# 123, line 1
GL: Doc# 123, Line 1
line 2
line 3
C. and some times there are multiple AP records matched to multiple GL records. not sure if this is considered many to many or one to one.
AP: Doc# 123, Line 1
line 2
GL: Doc# 123, Line 1
Line 2
When i tried creating a subreport i have problems with the many to many side (example C). I get all of the subreport detail for every line in the main report (the AP record).
Do i need separate subreports for each join type? Is sub reporting the proper solution here?
RJ Piekos
JDE User Business Views
I a trying to integrate more Crystal into our reporting environment and have run accross a situation where i need to link 2 tables. I have read that Crystals sub report feature works well when there is a many to many join between tables. here is my situation:
Main report - A/P detail file: - Doc #, Doc Type, Line #, Amount
Sub report - G/L detail file: - Doc #, Doc Type, Line #. Amount
A. In some cases there is a 1 to 1 relationship between the tables.
AP: Doc# 123, line 1
GL: Doc# 123, line 1
B. Some times its many to 1 (1 AP reord to multiple GL reords).
AP: Doc# 123, line 1
GL: Doc# 123, Line 1
line 2
line 3
C. and some times there are multiple AP records matched to multiple GL records. not sure if this is considered many to many or one to one.
AP: Doc# 123, Line 1
line 2
GL: Doc# 123, Line 1
Line 2
When i tried creating a subreport i have problems with the many to many side (example C). I get all of the subreport detail for every line in the main report (the AP record).
Do i need separate subreports for each join type? Is sub reporting the proper solution here?
RJ Piekos