Welcome, Guest. Please Login.
05/02/24 at 07:03:35
News:
Home Help Search Login


Pages: 1
Send Topic Print
mkiclass file not visible in Crystal Reports (Read 1316 times)
pmoser
Browser
*


I love YaBB 1G -
SP1!

Posts: 16
mkiclass file not visible in Crystal Reports
05/07/09 at 09:22:32
 
I have a Crystal Report that used to look at the BKAP.CHK.INVNUM field in the BKAPCHKH file for the Invoice Number. I know that the real invoice number was moved to the MKICLASS file but the file does not show up in Crystal Reports when I try to add it to the report (direct or ODBC). I CAN open the file in Maintain Database in EVO. One strange thing I see in Maintain Database is in the File Lookup screen, the "FD Name" field shows "MKECLASS" for the MKICLASS filename.
Back to top
 
 
  IP Logged
GasGiant
Administrator
*****


How can I help?

Posts: 1523
Gender: male
Re: mkiclass file not visible in Crystal Reports
Reply #1 - 05/07/09 at 09:29:11
 
You need to remake your ODBC DDFs with the ODBCDDF.RUN program. That needs to be rerun each time new tables are added to DBA/Evo or your ODBC connection will not be able to find them.
Back to top
 
 


Email WWW GasGiant GasGiant 31012781 swordworlder swordworlder   IP Logged
pmoser
Browser
*


I love YaBB 1G -
SP1!

Posts: 16
Re: mkiclass file not visible in Crystal Reports
Reply #2 - 05/07/09 at 11:46:53
 
I restarted CR and the file is there now.
 
Now I've got a different problem. I'm trying to link BKAP.CHK.INVNUM to MKECLASS.NUM and I get a data mismatch error since BKAP.CHK.INVNUM is a string and MKECLASS.NUM is a number. Is there any way to link these?
Back to top
 
 
  IP Logged
kevind
Active Member
*****


I was more than
willing to
"pony up",
how b'out U?

Posts: 639
Gender: male
Re: mkiclass file not visible in Crystal Reports
Reply #3 - 05/08/09 at 12:22:18
 
One way to link different types for Crystal is to create a view of your data in Pervasive.
This makes the linked table look like 1 table to CR.
 
For example:
drop view CHKTEST;
create view CHKTEST
(
 bkap_chk_chkdte,
 bkap_chk_invnum,
 mkeclass_num,
 mkeclass_desc,
 mkeclass_active
)
AS
select bkap_chk_chkdte, bkap_chk_invnum, mkeclass_num, mkeclass_desc, mkeclass_active
from bkapchkh a, mkeclass b
where a.bkap_chk_invnum = convert(b.mkeclass_num, SQL_VARCHAR);
 
This view, called CHKTEST, links bkap_chk_invnum (a VARCHAR) to mkeclass_num (a DOUBLE) by
converting the DOUBLE to a VARCHAR and then performing a link.
 
In CR, you would then select the table called CHKTEST instead of mkeclass and bkapchkh.  You may need to
add additional fields into this view from bkapchkh so that you can put them on your report.  A view looks like 1 table
to CR.  Pervasive takes care of the linking at the server.  If you limit your selection criteria in CR to only records after
a given date or date range, it will run faster.
 
Hope this helps.
Back to top
 
 

Kevin Damke
Spectronics Corporation
ISTECH 2004.1 7/26/13 SP1 - 20 user
Evo-ERP Build 7/25/13 T7 -7i R6 - 3 user
(Prev version was 2004.1 10/24/12)
(All Patches Installed as of 7/26/13)
Pervasive 2000i SP4 - Crystal Reports V10
Email WWW   IP Logged
Pages: 1
Send Topic Print