I have seen Item Balance records created from a Query!  Falls under the
category of "If all you have is a hammer, everything looks like a nail."

Query does not update records, you would need to replace the entire
file.  SQL is another possibility, it can select a subset of the records
and update them en masse.

Be sure you save a copy of the original file.

Gregory Novak
Manager North American Technical Services
Momentum Utilities Pty Ltd
(630) 985-1736

-----Original Message-----
From: aldg [mailto:aldg@mail.rvi.net]
Sent: Tuesday, February 12, 2002 4:48 PM
To: MAPICS Mailing List
Cc: Gershen, Al
Subject: Editing UCDEF in certain records of ITEMASA file with Query/400

Hi Mapics Group:

I want to edit a the UCDEF field (it is a numeric field that is
populated with values and it should be "zero" for certain Item Types in
our system) in ITEMASA for certain Item No. records and I'm wondering if
it can be done using Query/400?

For example:

Step # 1:  Use Query # 1 to copy the entire fields of the specific
records into a new file called ALTEST1

Step # 2: Use Query # 2 to input ALTEST1 and use Define Result Fields to
create a new substitue field (UCDEFCHG) with a numeric value of zero.
The output of this query goes to ALTEST2.

Step @ 3: Use Query # 3 to input ALTEST2 and use Define Result Fields to
create the original field name, UCDEF, (which does not appear in
ALTEST2) with a numeric value of zero.  Then, using Select and Sequence
Field, I replace the UCDEFCHG field with the UCDEF field.  The output of
this query goes to ALTEST3.

Now AlTEST3 has the records of the specific Item Nos. with a corrected
UCDEF that now shows zero.

My problem is can I use Query/400 to replace the original records in
ITEMASA with the records now contained in ALTEST3?

How do I do this?

I realize that there are other ways to accomplish this task (for
example, using DBU or Mapics File Maintenance to edit UCDEF in the
records in question; but the problem here is that there a way to many
records involved in this matter to manually edit them).

Also, the reason we populate UCDEF with zero for Type 1 and Type 2 Item
Nos. is that if they are populated with their correct Standard Cost, the
screw up our cost estimating program that is used to quote product sales
prices for customers.

In particular, the Bill of Material gets overstated: It would show
Standard Costs for the detailed raw materials and purchased components
that are part of the Inv Type 1 and 2 items along with their own UCDEF
cost of the completed Type 1 and 2 Item.

As usual, I look forward to reading your fine suggestions.

Al Gershen
Grants Pass, OR

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.