ISTech Support Forum
http://www.istechforum.com/YaBB.pl
Evo-ERP and DBA Classic >> Sales >> RMA Module 9/21/07 Update
http://www.istechforum.com/YaBB.pl?num=1190758118

Message started by Theran on 09/25/07 at 15:08:37

Title: RMA Module 9/21/07 Update
Post by Theran on 09/25/07 at 15:08:37

I get the following error message when I try to open RM-A
An error has occurred while trying to open file - DEFAULT\ISRMAC.B - 12
Press okay
An error has occurred while trying to open file - DEFAULT\ISRMAI.B - 12
Press okay
Module opens.
Closes without any errors.


Title: Re: RMA Module 9/21/07 Update
Post by Lynn_Pantic on 09/25/07 at 15:10:26

Error 12 is File not Found.  Since these are new files that the update should have created, go to UT-A (in Classic), make sure you are in the Default (B) company and run program NEWINIT.  This will create the empty files.

Title: Re: RMA Module 9/21/07 Update
Post by Theran on 09/26/07 at 17:53:25

Running NEWINIT caused me to get a warning error on every file in the data base

"An error has occurred while creating file AS\BKABCUST.BAS - 11"
click OK
next error.............................................................................................
and so on all the way down the list of files.
I pressed OK too many times to record here.

A better suggestion would have been to run DBAIF on the two files mentioned in my previous posting.

Title: Re: RMA Module 9/21/07 Update
Post by kkmfg on 09/27/07 at 06:15:36


Theran wrote:
Running NEWINIT caused me to get a warning error on every file in the data base

"An error has occurred while creating file AS\BKABCUST.BAS - 11"
click OK
next error.............................................................................................
and so on all the way down the list of files.
I pressed OK too many times to record here.

A better suggestion would have been to run DBAIF on the two files mentioned in my previous posting.


Yup... Same thing happens to me when I run newinit. Apparently some update of theirs caused a lot of bogus company records. DBAIF really is the best bet.

Title: Re: RMA Module 9/21/07 Update
Post by GasGiant on 10/03/07 at 13:04:07

So, we're happily using the new RMA module. Seems to be doing fine so far with serial numbers, etc. But we noticed something that does not work the way we would expect.

When entering the RMA it asks for the original invoice number. However, when dispositioning items to return to stock, the line items pull their prices from the Base price, not from the invoiced price. It doesn't even ask for the price when dispositioning, it just makes the return-to-stock SO with the system base price. This means that we have to do the extra step of opening the SO and changing the prices. I can hardly wait to see what it does for replacement SOs. Is it possible that it makes out the replacement SO at $0.00, as it should, or does that pull the base price, too?

Or maybe I'm doing something wrong. I don't see any SD-Q settings for this.

Title: Re: RMA Module 9/21/07 Update
Post by Lynn_Pantic on 10/03/07 at 19:11:33

Already observed & sent to programming - if you can link to the original invoice then it should pull in the original price and COGS for the return.  

Title: Re: RMA Module 9/21/07 Update
Post by GasGiant on 10/04/07 at 05:06:33

How about the notes? Shouldn't they pull into the SO or SR?

Title: Re: RMA Module 9/21/07 Update
Post by JCL on 10/04/07 at 07:41:19

My RM menu is shaded, I can't even click on it!  What am I missing?

Title: Re: RMA Module 9/21/07 Update
Post by Lynn_Pantic on 10/04/07 at 18:13:05

Any time an update with new programs or modules is installed, you need to go to the password security and enable the new options.  In DBA Classic, they will be greyed out until you go to PS-B and turn them on.  In Evo-ERP, they will only be available on the ADMIN menu until you use TAS-G and add them to other user menus.

Title: Re: RMA Module 9/21/07 Update
Post by GasGiant on 10/10/07 at 06:44:56

Any chance of getting a quick run down of the tables that are used to store RMA info? At least...

Header
Lines
Notes

and are there any "gotcha" differences or do they follow BKARINV, etc. exactly?

I'm going to start writing to these tables from my web app. :-)

Title: Re: RMA Module 9/21/07 Update
Post by JEMM on 10/10/07 at 08:16:29

RMA uses the same Header, Lines and Notes files as SR.  ISSRINV, ISSRINVL and ISSRDESC respectively.  RMA also uses ISRMAI for the RMA info, which is tied to ISSRINVL lines, and ISRMAC for the RMA Reason Codes.

Title: Re: RMA Module 9/21/07 Update
Post by GasGiant on 10/10/07 at 08:25:53

Minimal data will be entered at the time of the call. Looks like, for ISRMAI, I can write "In transit" in the status block, leave reason blank and then just copy in the line info for RMA #, part #, line ID and RMA date.

Will that be enough to create a valid RMA?



Another quick question... what makes a header show up in one or the other module? Just the status? Then how come "C" is a valid status in each, but in the table "C" only shows up for RMAs?

Title: Re: RMA Module 9/21/07 Update
Post by JEMM on 10/10/07 at 21:02:13

The SR is actually using 'Y' for closed SR but SR-A converts to an on-screen 'C'.  As for the data, it appears to be enough information in the RMAI file.

Title: Re: RMA Module 9/21/07 Update
Post by GasGiant on 10/12/07 at 10:32:51

So, after writing the whole thing and working around the undocumented differences (for instance, BKARINV, et al Sales Order numbers are numbers, but ISSRINV et al want an alpha data type), now I can't write to the ISRMAI table because it is new and not in our ODBC DDFs. Running the ODBCDDF.run throws an error and says to call IS Tech. I suppose that it might have something to do with the fact that three other programs have open ODBC connections, eh?

Not complaining, just reporting on my progress. I'll try it again after hours with all of the ODBC connections removed.

Title: Re: RMA Module 9/21/07 Update
Post by kevind on 10/12/07 at 13:09:28

Colin,
You are right ... You can't write to the .DDF files if there are ODBC connections open.

I also wanted to mention to you that if you have added views or security to the ODBC data source, running
ODBCDDF will remove all of them.

I keep my views and security stuff in a SQL script so that if I refresh my .DDF files, I can re-enable all the
other stuff that makes all my ODBC stuff work.

Just an FYI!!   :)

Title: Re: RMA Module 9/21/07 Update
Post by GasGiant on 10/12/07 at 16:54:54

What are views?

Title: Re: RMA Module 9/21/07 Update
Post by kkmfg on 10/12/07 at 19:46:03

A view is essentially a fake table that takes it data from other tables. It's dynamic in that it regenerates it's contents on every select statement. For instance, lets say you have two tables called TableA and TableB. TableA stores customer account details such as name, address, and so on. TableB stores sales order data. Now, obviously you'd normally have a foreign key in TableB that links it to a record in TableA to specify which customer is ordering. But what if you'd like one table that stores records with the customer's name and the total price for each sales order. With a view you could construct such a fake table that had those sort of records. This allows you to issue SQL statements like:

select * from FakeTable where CustID = "KMFG100";

which could definitely be more readable than the equivalent query to get the data out of the two original tables.

Title: Re: RMA Module 9/21/07 Update
Post by GasGiant on 10/13/07 at 07:49:23

Hmmm... never crossed my mind.

Title: Re: RMA Module 9/21/07 Update
Post by kevind on 10/13/07 at 10:29:55

One of the nice things about views is they enable you to put all of your select criteria into the database instead of the application.
If a table definition changes that may affect your select logic, you just re-define the view instead of modifying the application.
Your application would just have a simple select all type statement (i.e. select * from <viewname>)

I use a view that defines all of the orders that are ready for shipment.  The Special part of the view is a nested IF statement that extracts
an email address from one of 4 different locations in the sales order.  It first checks the sales order notes, then the Description, then the 5th
contact in the BKARCUST, and finally the 1st contact in BKARCUST.  With an email address, our shipping system (CPS) can email a 'ShipElert'
that notifies the customer that a shipment to them has been processed.  This email contains the Shipping info and a tracking number.




Title: Re: RMA Module 9/21/07 Update
Post by GasGiant on 10/15/07 at 07:52:59

As it turns out, one of our programs was using a view, which I destroyed (yay) when I rebuilt the DDFs. The program, created by a consultant, had the SQL in the documentation. Between your detailed explanation and his detailed documentation, all is well in Mudville.

Title: Re: RMA Module 9/21/07 Update
Post by Laura Oliver on 07/31/13 at 18:11:54


kkmfg wrote:
[quote author=Theran link=1190758118/0#2 date=1190858005]Running NEWINIT caused me to get a warning error on every file in the data base

"An error has occurred while creating file AS\BKABCUST.BAS - 11"
click OK
next error.............................................................................................
and so on all the way down the list of files.
I pressed OK too many times to record here.

A better suggestion would have been to run DBAIF on the two files mentioned in my previous posting.


Yup... Same thing happens to me when I run newinit. Apparently some update of theirs caused a lot of bogus company records. DBAIF really is the best bet.[/quote]

I tried to run  NEWINIT because my DDCheck shows 500 errors most all of which are a play company we deleted long ago and now it has mysteriously appeared...   well kinda re-appeared.... there is not a folder for it in DBAMFG but the files are showing up in MAINTAIN DATABASE along with some other previously deleted test companies.   After reading this thread I think I need to figure out what DBAIF is.


ISTech Support Forum » Powered by YaBB 2.1!
YaBB © 2000-2005. All Rights Reserved.