× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: v6.1 on AS/400 - AP/GL Distribution
  • From: "George M. Sagen" <gsagen@xxxxxxxxxxxxxxxxxxx>
  • Date: Thu, 20 Jul 2000 12:10:21 -0600
  • Importance: Normal

Rob,

With the advent of CEA there are no stock A/P Subsystem Distribution to G/L
Reports. To get one, create a report based on the following design:

SELECT GXR.XRDATE AS TransDate,
       GXR.XRTIME AS TransTime,
       GXR.XREVNT AS EventNo,
       GXR.XRLDGR AS Ledger,
       GXR.XRBOOK AS Book,
       GXR.XRYEAR AS Yr,
       GXR.XRPERD AS Per,
       GXR.XRTSN AS SessionID,
       GXR.XRTRNN AS SeqNo,
       GHH.HHSTAT AS JournalStatus,
       GXR.XRJNEN AS JournalNo,
       GLH.LHJNLN AS LineNo,
       GCR.CRSG01 AS Seg1,
       GCR.CRSG02 AS Seg2,
       GCR.CRSG03 AS Seg3,
       GLH.LHDRAM AS Debit,
       GLH.LHCRAM AS Credit,
       GXR.XRHVND AS Vendor,
       GXR.XRINV AS InvoiceNo,
       GXR.XRHBNK AS Bank
FROM ((GXR INNER JOIN GHH ON
      (GXR.XREVNT = GHH.HHTRNO) AND
      (GXR.XRJNEN = GHH.HHJNEN) AND
      (GXR.XRPERD = GHH.HHPERD) AND
      (GXR.XRYEAR = GHH.HHYEAR) AND
      (GXR.XRBOOK = GHH.HHBOOK) AND
      (GXR.XRLDGR = GHH.HHLDGR))
      INNER JOIN GLH ON
       (GHH.HHJNEN = GLH.LHJNEN) AND
       (GHH.HHPERD = GLH.LHPERD) AND
       (GHH.HHYEAR = GLH.LHYEAR) AND
       (GHH.HHBOOK = GLH.LHBOOK) AND
       (GHH.HHLDGR = GLH.LHLDGR))
      INNER JOIN GCR ON
       (GLH.LHIAN = GCR.CRIAN) AND
       (GLH.LHLDGR = GCR.CRLDGR)
WHERE (((GXR.XRDATE)=<insert date here>) AND
       ((GXR.XRBEOR)=8) AND
       ((GHH.HHID)="HH"))
ORDER BY GXR.XRJNEN, GLH.LHJNLN;

The filter "GXR.XRBEOR = 8" filters the results down to transactions coming
from the A/P Invoicing subsystem.

The field GHH.HHSTAT will result in
        0 = Unresolved
        1 = Error
        2 = Unposted
        3 = Posted

The field GXR.XRTSN is the A/P Session ID and all transactions entered in
the same session should have the same ID. The A/P subsystem will
automatically create a batch summary report when the user exits out of A/P
using <F3>. If you create a group summary on the GXR.XRTSN field, you should
be able to reconcile that group to the batch summary report spool file
generated at the end of the A/P session. Further, sequencing within the
group by the GXR.XRTRNN field will sequence the GL transactions in the same
order as the AP transactions were entered.

Additionally, you can get your analysis fields into the report by joining
the GLH to the GLA.

Furthermore, to modify the report for other subsystems, remove the fields
GXR.XRHVND (Vendor #) and GXR.XRINV (Invoice #), insert the appropriate
reference fields from the GXR and change the event origin filter
(GXR.XRBEOR) to:

2 = Customer Billing (BIL)
3 = Cash Posting, Credit Deduction Mgt. (CDM), Advanced Remittance
Processing (ARP)
4 = Customer Draft Processing (CSH)
5 = Inventory Processing (INV)
6 = Promotions Processing (PRO)
7 = Payables Revaluation (MLT)
8 = Vendor Invoicing (ACP)
9 = Vendor Payments (ACP)
10 = Receivables Revaluation (MLT)
11 = Labor Ticket Posting (CST)
12 = Vendor Draft Processing
90 = Batch Transaction Processing (BTP)

Have fun!

Geo.

+---
| This is the BPCS Users Mailing List!
| To submit a new message, send your mail to BPCS-L@midrange.com.
| To subscribe to this list send email to BPCS-L-SUB@midrange.com.
| To unsubscribe from this list send email to BPCS-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: dasmussen@aol.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2024 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.