﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://owl.unipharm.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Information_Systems%3AUnmatched_Purchase_Orders_Not_in_Balance</id>
	<title>Information Systems:Unmatched Purchase Orders Not in Balance - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://owl.unipharm.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Information_Systems%3AUnmatched_Purchase_Orders_Not_in_Balance"/>
	<link rel="alternate" type="text/html" href="https://owl.unipharm.com/mediawiki/index.php?title=Information_Systems:Unmatched_Purchase_Orders_Not_in_Balance&amp;action=history"/>
	<updated>2026-09-01T16:43:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://owl.unipharm.com/mediawiki/index.php?title=Information_Systems:Unmatched_Purchase_Orders_Not_in_Balance&amp;diff=5596&amp;oldid=prev</id>
		<title>Norwinu at 23:04, 3 October 2016</title>
		<link rel="alternate" type="text/html" href="https://owl.unipharm.com/mediawiki/index.php?title=Information_Systems:Unmatched_Purchase_Orders_Not_in_Balance&amp;diff=5596&amp;oldid=prev"/>
		<updated>2016-10-03T23:04:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Unmatched purchase orders are in SROGRT, with a remaining amount.  As part of month end, a query report is generated of this file, with sub totals by purchase order type.  These sub totals can be compared to the corresponding G/L accounts to make sure they are in balance.&lt;br /&gt;
&lt;br /&gt;
 G/L account       Purchase order type2&lt;br /&gt;
 210050            MO     Manual Order&lt;br /&gt;
 210300            RT     Return to Vendor&lt;br /&gt;
 210500            CS     Car Stock&lt;br /&gt;
 210625            BE     Price Variance – charge to H/O&lt;br /&gt;
 210625            PV     Price Variance – charge to Rep&lt;br /&gt;
 210625            QV     Quantity Variance&lt;br /&gt;
 210675            PC     Prairie Supply Co-op Credit (no longer used)&lt;br /&gt;
 210675            PS     Prairie Supply Co-op (no longer used)&lt;br /&gt;
 220000            PE     EDI Purchase Order&lt;br /&gt;
 220000            PO     Regular Purchase Order&lt;br /&gt;
 220000            RO     Rush Order&lt;br /&gt;
 220000            XF     Reference Purchase Order&lt;br /&gt;
 220050            RE     Receiving Error&lt;br /&gt;
&lt;br /&gt;
If they are not in balance, the problem could be a timing issue.  Receiving or invoicing can be done after the period end – which is after the report has been printed.&lt;br /&gt;
&lt;br /&gt;
(Note that these examples are for regular PO types, that post to 220000.)&lt;br /&gt;
&lt;br /&gt;
To check for this, run a query on file SROLOGGL, looking for any transactions for the previous period (or earlier), that were entered after the unmatched PO query report was run.  Note that two checks have to be done.  One for the day following, after 6:29AM – which is after the end of day processing has completed; and the other for any time after.&lt;br /&gt;
&lt;br /&gt;
 LGDIM1	EQ	'220000'&lt;br /&gt;
 AND	LGYYPP	LE	201312&lt;br /&gt;
 AND	LGCDAT	GT	20130201&lt;br /&gt;
 OR	LGDIM1	EQ	'220000'&lt;br /&gt;
 AND	LGYYPP	LE	201312&lt;br /&gt;
 AND	LGCDAT	EQ	20130201&lt;br /&gt;
 AND	LGCRTI	GT	062900&lt;br /&gt;
&lt;br /&gt;
This example looks for any transactions for the period just ended, that were entered after the report was printed.&lt;br /&gt;
&lt;br /&gt;
Total LGSAMO, and compare to the difference.&lt;br /&gt;
&lt;br /&gt;
Also look the other way; transactions done before the period end, but posted to a later period.&lt;br /&gt;
&lt;br /&gt;
If it does not match, more digging has to be done.  Run these queries (from library XX2480BP) to build a file of all purchase orders for which the total posted to the G/L does not agree with the remaining amount on SROGRT.&lt;br /&gt;
&lt;br /&gt;
SROGRT is a balance file; not a transaction file, so you must restore it from the period end tape.  &lt;br /&gt;
&lt;br /&gt;
UNMATB02 – Extract purchase order transactions by document number.&lt;br /&gt;
&lt;br /&gt;
Change this to include G/L transaction up the closing period.  &lt;br /&gt;
&lt;br /&gt;
UNMATB03 – Extract purchase order transactions by the PO number in the text&lt;br /&gt;
&lt;br /&gt;
Change this to include G/L transaction up the closing period. The PO in the text can be different than the transaction number, if PO’s are matched against each other.&lt;br /&gt;
&lt;br /&gt;
UNMATB04 – Summarized extracted G/L transactions by PO and G/L number&lt;br /&gt;
&lt;br /&gt;
UNMATB05 – Build work file to use in join&lt;br /&gt;
&lt;br /&gt;
UNMATB06A to UNMATM06F – Build separate file for each G/L number&lt;br /&gt;
&lt;br /&gt;
UNMATB07 – Merge all these separate file together into one file, with separate columns for each G/L number&lt;br /&gt;
&lt;br /&gt;
UNMATB08 – Summarized received and remaining amounts on SROGRT (goods receiving) by PO&lt;br /&gt;
&lt;br /&gt;
Change this to read the version of SROGRT you have restored.  &lt;br /&gt;
&lt;br /&gt;
UNMATB09 – Build a version of the PO header file with a character PO number field&lt;br /&gt;
&lt;br /&gt;
This is needed because that is what the PO number extracted from the G/L text field is.&lt;br /&gt;
&lt;br /&gt;
UNMATB10 – Consolidate all files&lt;br /&gt;
&lt;br /&gt;
Run RPG program XX2480BP/UNMATPO to add to this file, any PO numbers that have been matched together.&lt;br /&gt;
&lt;br /&gt;
Download SHEILA2/ POCONS2 to Excel.  The total difference between the G/L (SROLOGGL) and the unmatched PO (SROGRT) should match the amount you are looking for.  &lt;br /&gt;
&lt;br /&gt;
* taking into account that you will have to manually remove transactions done after the unmatched PO report was generated.&lt;br /&gt;
&lt;br /&gt;
Note – Since we went live, there have been about 1304 unmatched PO’s.  &lt;br /&gt;
&lt;br /&gt;
  182   Received before go live; invoiced after&lt;br /&gt;
  &lt;br /&gt;
 1068   Debit Notes that no longer go into 220000.  They are out &lt;br /&gt;
        of balance by the fictitious item used to charge tax.&lt;br /&gt;
  &lt;br /&gt;
  495   RT&lt;br /&gt;
  436   QV&lt;br /&gt;
  105   PV&lt;br /&gt;
   32   BE&lt;br /&gt;
 &lt;br /&gt;
 1073   records for a total of -30324.33&lt;br /&gt;
 &lt;br /&gt;
   22   Adjustments&lt;br /&gt;
&lt;br /&gt;
Which leaves only about 32 PO’s that didn’t balance.  Five times the receiving transactions went into the G/L twice.  Six times invoicing did both a debit and a credit to 220000.  Seven times there was a fictitious item on the PO (some should have been type MO).  For the rest, the invoice amount didn’t agree with the amount received.  The last time that happened was November 2006, so perhaps processes have been changed?&lt;br /&gt;
&lt;br /&gt;
Once there is a known point at which this is in balance, you only have to investigate things after that date. ** When you have the unmatched purchase orders in balance, update the last in balance date, so that you will have fewer PO’s to manually balance next year. **&lt;br /&gt;
&lt;br /&gt;
In balance at 2013Feb01.&lt;br /&gt;
&lt;br /&gt;
Balanced at 2013Dec31, but corrections for system outage on Dec 16 were put into 201412, as 201411 was closed.  See unmatched PO 201411.xlsx for details&lt;br /&gt;
&lt;br /&gt;
[[Category: Finance Problems (I.T.)]]&lt;/div&gt;</summary>
		<author><name>Norwinu</name></author>
	</entry>
	<entry>
		<id>https://owl.unipharm.com/mediawiki/index.php?title=Information_Systems:Unmatched_Purchase_Orders_Not_in_Balance&amp;diff=562&amp;oldid=prev</id>
		<title>Sheilav: Created page with &quot;Unmatched purchase orders are in SROGRT, with a remaining amount.  As part of month end, a query report is generated of this file, with sub totals by purchase order type.  The...&quot;</title>
		<link rel="alternate" type="text/html" href="https://owl.unipharm.com/mediawiki/index.php?title=Information_Systems:Unmatched_Purchase_Orders_Not_in_Balance&amp;diff=562&amp;oldid=prev"/>
		<updated>2015-10-19T17:22:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Unmatched purchase orders are in SROGRT, with a remaining amount.  As part of month end, a query report is generated of this file, with sub totals by purchase order type.  The...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Unmatched purchase orders are in SROGRT, with a remaining amount.  As part of month end, a query report is generated of this file, with sub totals by purchase order type.  These sub totals can be compared to the corresponding G/L accounts to make sure they are in balance.&lt;br /&gt;
&lt;br /&gt;
 G/L account       Purchase order type2&lt;br /&gt;
 210050            MO     Manual Order&lt;br /&gt;
 210300            RT     Return to Vendor&lt;br /&gt;
 210500            CS     Car Stock&lt;br /&gt;
 210625            BE     Price Variance – charge to H/O&lt;br /&gt;
 210625            PV     Price Variance – charge to Rep&lt;br /&gt;
 210625            QV     Quantity Variance&lt;br /&gt;
 210675            PC     Prairie Supply Co-op Credit (no longer used)&lt;br /&gt;
 210675            PS     Prairie Supply Co-op (no longer used)&lt;br /&gt;
 220000            PE     EDI Purchase Order&lt;br /&gt;
 220000            PO     Regular Purchase Order&lt;br /&gt;
 220000            RO     Rush Order&lt;br /&gt;
 220000            XF     Reference Purchase Order&lt;br /&gt;
 220050            RE     Receiving Error&lt;br /&gt;
&lt;br /&gt;
If they are not in balance, the problem could be a timing issue.  Receiving or invoicing can be done after the period end – which is after the report has been printed.&lt;br /&gt;
&lt;br /&gt;
(Note that these examples are for regular PO types, that post to 220000.)&lt;br /&gt;
&lt;br /&gt;
To check for this, run a query on file SROLOGGL, looking for any transactions for the previous period (or earlier), that were entered after the unmatched PO query report was run.  Note that two checks have to be done.  One for the day following, after 6:29AM – which is after the end of day processing has completed; and the other for any time after.&lt;br /&gt;
&lt;br /&gt;
 LGDIM1	EQ	'220000'&lt;br /&gt;
 AND	LGYYPP	LE	201312&lt;br /&gt;
 AND	LGCDAT	GT	20130201&lt;br /&gt;
 OR	LGDIM1	EQ	'220000'&lt;br /&gt;
 AND	LGYYPP	LE	201312&lt;br /&gt;
 AND	LGCDAT	EQ	20130201&lt;br /&gt;
 AND	LGCRTI	GT	062900&lt;br /&gt;
&lt;br /&gt;
This example looks for any transactions for the period just ended, that were entered after the report was printed.&lt;br /&gt;
&lt;br /&gt;
Total LGSAMO, and compare to the difference.&lt;br /&gt;
&lt;br /&gt;
Also look the other way; transactions done before the period end, but posted to a later period.&lt;br /&gt;
&lt;br /&gt;
If it does not match, more digging has to be done.  Run these queries (from library XX2480BP) to build a file of all purchase orders for which the total posted to the G/L does not agree with the remaining amount on SROGRT.&lt;br /&gt;
&lt;br /&gt;
SROGRT is a balance file; not a transaction file, so you must restore it from the period end tape.  &lt;br /&gt;
&lt;br /&gt;
UNMATB02 – Extract purchase order transactions by document number.&lt;br /&gt;
&lt;br /&gt;
Change this to include G/L transaction up the closing period.  &lt;br /&gt;
&lt;br /&gt;
UNMATB03 – Extract purchase order transactions by the PO number in the text&lt;br /&gt;
&lt;br /&gt;
Change this to include G/L transaction up the closing period. The PO in the text can be different than the transaction number, if PO’s are matched against each other.&lt;br /&gt;
&lt;br /&gt;
UNMATB04 – Summarized extracted G/L transactions by PO and G/L number&lt;br /&gt;
&lt;br /&gt;
UNMATB05 – Build work file to use in join&lt;br /&gt;
&lt;br /&gt;
UNMATB06A to UNMATM06F – Build separate file for each G/L number&lt;br /&gt;
&lt;br /&gt;
UNMATB07 – Merge all these separate file together into one file, with separate columns for each G/L number&lt;br /&gt;
&lt;br /&gt;
UNMATB08 – Summarized received and remaining amounts on SROGRT (goods receiving) by PO&lt;br /&gt;
&lt;br /&gt;
Change this to read the version of SROGRT you have restored.  &lt;br /&gt;
&lt;br /&gt;
UNMATB09 – Build a version of the PO header file with a character PO number field&lt;br /&gt;
&lt;br /&gt;
This is needed because that is what the PO number extracted from the G/L text field is.&lt;br /&gt;
&lt;br /&gt;
UNMATB10 – Consolidate all files&lt;br /&gt;
&lt;br /&gt;
Run RPG program XX2480BP/UNMATPO to add to this file, any PO numbers that have been matched together.&lt;br /&gt;
&lt;br /&gt;
Download SHEILA2/ POCONS2 to Excel.  The total difference between the G/L (SROLOGGL) and the unmatched PO (SROGRT) should match the amount you are looking for.  &lt;br /&gt;
&lt;br /&gt;
* taking into account that you will have to manually remove transactions done after the unmatched PO report was generated.&lt;br /&gt;
&lt;br /&gt;
Note – Since we went live, there have been about 1304 unmatched PO’s.  &lt;br /&gt;
&lt;br /&gt;
  182   Received before go live; invoiced after&lt;br /&gt;
  &lt;br /&gt;
 1068   Debit Notes that no longer go into 220000.  They are out &lt;br /&gt;
        of balance by the fictitious item used to charge tax.&lt;br /&gt;
  &lt;br /&gt;
  495   RT&lt;br /&gt;
  436   QV&lt;br /&gt;
  105   PV&lt;br /&gt;
   32   BE&lt;br /&gt;
 &lt;br /&gt;
 1073   records for a total of -30324.33&lt;br /&gt;
 &lt;br /&gt;
   22   Adjustments&lt;br /&gt;
&lt;br /&gt;
Which leaves only about 32 PO’s that didn’t balance.  Five times the receiving transactions went into the G/L twice.  Six times invoicing did both a debit and a credit to 220000.  Seven times there was a fictitious item on the PO (some should have been type MO).  For the rest, the invoice amount didn’t agree with the amount received.  The last time that happened was November 2006, so perhaps processes have been changed?&lt;br /&gt;
&lt;br /&gt;
Once there is a known point at which this is in balance, you only have to investigate things after that date. ** When you have the unmatched purchase orders in balance, update the last in balance date, so that you will have fewer PO’s to manually balance next year. **&lt;br /&gt;
&lt;br /&gt;
In balance at 2013Feb01.&lt;br /&gt;
&lt;br /&gt;
Balanced at 2013Dec31, but corrections for system outage on Dec 16 were put into 201412, as 201411 was closed.  See unmatched PO 201411.xlsx for details&lt;/div&gt;</summary>
		<author><name>Sheilav</name></author>
	</entry>
</feed>