Hello again Mike,
Just a few amendments to make to my previous email (never trust
your memory!). When you are querying the RPTRNC file, you want to look
for records where the "BUNAP" field is greater than zero. "BUNAP"
contains the number of Unapplied Issue transactions. So, any IP's that
end up as unapplied will increment the count in this "BUNAP" field. Do
not use the "BERRS" field when you are looking for batches which contain
Unapplied IP transactions.
Also, the field within the member of the RPTRAN file which will
contain a 'U' for an unapplied IP transaction is the field called
"REVCD" ("Reversal Code"). You can search for all IP's which have a 'U'
in the "REVCD" field. Do not use the "UASTS" field. For unapplied IP
transactions, the "MICNO" field should contain the error message number
of the error that caused the IP to be unapplied.
CISTECH, Inc.
Charles Hood, Sr. Programmer/Analyst, CPIM
phone 803.649.5962
mobile 803.295.8213
The XA Experts
For free education and extensive XA resources go to:
www.CISTECH.net <
http://www.cistech.net/>
From: Charles Hood
Sent: Thursday, February 05, 2009 6:30 PM
To: 'MAPICS-L@xxxxxxxxxxxx'
Subject: RE: [MAPICS-L] REP UNAPPLIED INVENTORY TRANSACTIONS
Hello Mike,
It is a little bit complicated, but you can definitely get the
information you need form the XA database.
First, query the AMTLIBx/RPTRNC file (Note that this file resides
in the AMTLIBx libray, not the AMFLIBx library). This is the header
file for all the REP transaction batches. There is a field in each
RPTRNC record called "BERRS" which contains the "Error Record Count" for
each batch. This will tell you which batches contain error
transactions.
Taking the Batch Number from the RPTRNC record (the Batch Number in
RPTRNC is in the field called "BATCH"), you can deduce the name of the
member of the RPTRAN file which contains the actual transactions.
Simply append the batch number to the letters "BCH" and you have the
member name that you will need to query in RPTRAN. You will need to run
a query for each member that contains transactions which are in error.
For example, if Batch Numbers 345 and 350 contain error transactions,
you would want to query file AMTLIBx/RPTRAN, member BCH345 and file
AMTLIBx/RPTRAN, member BCH350 (Again, note that RPTRAN resides in the
AMTLIBx library).
For Batch Numbers between 1 and 99, be sure to include zero(es).
For example, if batch number 25 contains error transactions, you will
want to query file AMTLIBx/RPTRAN, member BCH025. If batch number 8
contains error transactions, you will want to query file AMTLIBx/RPTRAN,
member BCH008.
Special Note - REP transactions that came from PM&C will reside in
the special batch BCH00J (that is BCH, then two zeroes, then the letter
J).
Look for IP transactions with a 'U' in the UASTS field ("Unapplied
Status Code"). The MICNO field ("Message Number") field will contain
the error message that was generated which caused the IP to be
unapplied.
I hope this is helpful.
CISTECH, Inc.
Charles Hood, Sr. Programmer/Analyst, CPIM
phone 803.649.5962
mobile 803.295.8213
The XA Experts
For free education and extensive XA resources go to:
www.CISTECH.net <
http://www.cistech.net/>
2/5
Using the REP module, we have unapplied IP transactions. I would like
to create a query report of these unapplied transactions. What file are
these transaction in?
In advance, thanks
As an Amazon Associate we earn from qualifying purchases.