Thanks to all for your help.
Jonathan, you were correct as to the step in debug
I added a new debug step (and then removed it later by recompiling the original PP_0840000)
It printed out the contents of the WRK_GLtran table.
Here I found a reference to the incorrect ARdoc.refnbr that caused the null return on the join.
I corrected the ARtran (after confirming with our collections department
I then corrected the ApplBatnbr and Applbatseq in the related ardoc rows.
The batch released successfully
and I know a lot more about PP_0840000
I added this code after the error tram in the PP_0840000
SELECT @Err=@@ERROR, @R_C=@@ROWCOUNT
-- added code below
IF (@Debug = 1)
BEGIN
PRINT CONVERT(VARCHAR(30), GETDATE(), 113)
PRINT 'Debug...Step 3201: Intercompany trans - Intercompany pass one'
SELECT *
FROM WRK_GLTRAN t WHERE t.FromCpnyID <> t.CpnyID
AND t.UserAddress = @UserAddress
END
From this I could see the problem clearly.
------------------------------
Mark Schrier
Information Systems Director
Mackay Communications, Inc
Raleigh NC
------------------------------
Original Message:
Sent: Jan 07, 2021 08:25 AM
From: Karla Johnson
Subject: Suspended AR Payment application batch
Have you tried running ARDebug? This may help pinpoint the exact item causing the error.
ARdebug 'batnbr'
------------------------------
Karla Johnson
System Architect
Carrollton TX
Original Message:
Sent: Jan 06, 2021 10:00 AM
From: Mark Schrier
Subject: Suspended AR Payment application batch
I have a payment application batch that is giving me the error below:
System Message 6124: Process started: Wed Jan 06 09:49 A.M.
Module: 'AR'
Batch: '493050'
Processing: Module: 'AR' , Batch: '493050'
System Message 12341: Inter-company account/subaccount was not found. The batch
cannot be released.
System Message 6125: Process ended: Wed Jan 06 09:49 A.M.
I am stumped (doesn't happen often) . I don't understand what the message is telling me. It is time to ask for help.
Looking at the intercompany accounts/subs set up in Multi-Company, all the accounts appear to be correct.
Has anyone seen this message before. Can you help.
------------------------------
Mark Schrier
Information Systems Director
Mackay Communications, Inc
Raleigh NC
------------------------------