Hi All,
I recently upgraded a client from MAS200 4.05 to version 4.30. In 4.05 they had an import for AP Invoice entry with perform logic to search AP4 for duplicate invoices. Here is the old logic that worked:
0010 IF AP4_CHN<>0 THEN GOTO 0030
0020 OPEN (HFN)"../MAS_TST/APTST"+"/AP4TST.SOA";AP4_CHN=LFO
0030 READ (AP4_CHN,KEY=AP5$(1,19),DOM=0050)
0040 AP5$(1,19)=DIM(19);PRE_AP5$=AP5$
0050 EXIT
I'm trying to create the logic for the version 4.30 by taking the above and updating with the new file names. When the import tests or runs I get an error 47 referencing line 0030
0010 IF AP_OpenInvoice_CHN<>0 THEN GOTO 0030
0020 OPEN (HFN)"../MAS_"+CCOMP$+"/AP"+CCOMP$+"/AP_OpenInvoice.M4T";AP_OpenInvoice_CHN=LFO
0030 READ (AP_OpenInvoice_CHN,KEY=AP_InvoiceHeader$(1,19),DOM=0050)
0040 AP_InvoiceHeader$(1,19)=DIM(19);PRE_AP_InvoiceHeader$=AP_InvoiceHeader$
0050 EXIT
Perform Type: After Assign
File Type: Header
Table Name: AP_Invoiceheader
Column Name: InvoiceNo
Sequence: 001
Command: ..\VI\dup.txt
Can anyone see a problem with the Perform Logic above? I've searched the old Talk forums and these Community Forums and can't find this logic noted anywhere for version 4.20 or higher.
Thanks in advance for any suggestions!
Bryce