Re: MAPICS-L Digest, Vol 10, Issue 12 - For Bryan Burns from Mike Ellis / ISI

Robert Russell <Robert.Russell-wzDqe+/[email protected]>
Newsgroups gmane.comp.systems.as400.mapics
Message-ID <[email protected]>
I will also add that what may seem "safe" today may not be safe tomorrow.  We are constantly adding events into the maintenace model of the architecture to support a wide range of capabilities.  Wheter it is maintenace history, publish and subscibe, related trantractions, ION publishing... When you bypass our public interfaces you will miss out on some of these features.  I know all of these features are not in Green Screen, but that is where we are heading with the IDF.

________________________________________
From: mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of Michael Ellis [[email protected]]
Sent: Monday, February 06, 2012 5:39 PM
To: mapics-l-Zwy7GipZuJhWk0Htik3J/[email protected]
Subject: Re: [MAPICS-L] MAPICS-L Digest, Vol 10, Issue 12 - For Bryan Burns from Mike Ellis / ISI

Bryan,

You learned a valuable lesson without paying much for it.

Be VERY cautious about updating MAPICS tables with SQL.   It can be done,
but only if you are CERTAIN you are performing all the logic that MAPICS
would do when you type in a green-screen or browser window and press enter.


Safe way to do this with a program is with SystemLink (oops - just reread
you're on 5.5 - no Syslink).  It performs all the logic that MAPICS does
(since it IS MAPICS).   If you do something with SQL, you'll need to
replicate the logic.
In your case, comletely fixable, just update the records by using an UPDATE
and set LTPUR=LTVEN+LTSAF.
Let me know if you need help with the syntax - I have to look it up but I
have one like it.
Mike



> ----------------------------------------------------------------------
>
> message: 1
> date: Mon, 6 Feb 2012 08:02:23 -0600
> from: Bryan Burns <[email protected]>
> subject: [MAPICS-L] LTPUR not recalculated after changing ITEMBL with
>        SQL
>
> In an XA5.5 test environment, I updated LTVEN and LTSAF using SQL; but
> LTPUR has not been re-calculated for those items I updated.
>
> I went into ITEMBL file maintenace on a record and I was able to get it
> re-calculated that way.
>
> Two questions:
>
> 1. This was my first accomplishment using SQL to do an update and I'd like
> to know if I did any damage, and what other file/fields can be damaged with
> even the most careful use of SQL?
>
> 2. How can I automagically get the LTPUR recalculated for about 130
> records?
>
>
> ------------------------------
>
> _______________________________________________
> This is the MAPICS ERP System Discussion (MAPICS-L) digest list
> To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected]
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/mapics-l
> or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/mapics-l.
>
>
>
> End of MAPICS-L Digest, Vol 10, Issue 12
> ****************************************
>



--
Michael G. Ellis
CEO / Enterprise Consultant
Information Systems International, Inc.
A Global ERP Consulting Firm
815-398-1670 x7882
  -- OR --
Call me wherever I
am?<http://www.ringcentral.com/ringme/ringme.asp?uc=333DDE9A4B3017B2B2722A7A8771521F415959643963,0,7882&s=no&v=2>

Anima Sana in Corpore Sano
"Healthy Soul in a Healthy Body"
_______________________________________________
This is the MAPICS ERP System Discussion (MAPICS-L) mailing list
To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mapics-l
or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mapics-l.
_______________________________________________
This is the MAPICS ERP System Discussion (MAPICS-L) mailing list
To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mapics-l
or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mapics-l.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.