Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
Calling AP190 from PFI
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
BDell92
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5275
People Online:
Visitors:
331
Members:
0
Total:
331
Online Now:
New Topics
Lawson S3 Financials
Applying credits to open AP invoices
4/28/2025 1:26 PM
Hello, I am new to the Lawson system and after ru
Lawson S3 Financials
Lawson APIA
4/28/2025 1:22 PM
Has anybody recently installed Lawson's APIA m
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
IPA/ProcessFlow
Calling AP190 from PFI
Please
login
to post a reply.
6 Replies
0
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Ludy
Basic Member
Posts: 21
9/13/2013 3:18 PM
Hi,
I have a flow, PF1, that gets triggered when a user voids a check in CB80. This flow captures key data info and writes it to a csv file. This csv file serves as input to another flow, PF2, which puts the invoices associated with this check on hold. Between PF1 and PF2, AP190 needs to run to reinstate the invoices before they can be put on hold.
My question is: how do I call AP190 from PF1?
Thanks,
Ludy
Bob Canham
Veteran Member
Posts: 217
9/13/2013 3:42 PM
Split
Hi Ludy,
You can execute jobs by using the WebRun node using these parameters: FUNC=run&USER=
&JOB=
&OUT=xml&WAIT=true. By using the WAIT=true parameter, it will wait for the job to complete before returning to the next step in the flow.
Also, since you will probably need to update the AP190 parameters, you can do that using transaction nodes. The catch is that you have to pass all parameters to the update node, so doing a Node to inquire on AP190 first will get you most of your values that you can just pass to the update node.
Hope this helps.
Bob
Ludy
Basic Member
Posts: 21
9/13/2013 4:04 PM
Split
Bob, thank you for that quick reply. I'll try what you suggested.
Thanks again,
Ludy
Ludy
Basic Member
Posts: 21
9/23/2013 12:34 PM
Split
Hi Bob,
I added a web run node to my flow defined as follows –
uses IOS host
web program = cgi-lawson/jobrun.exe
post string = FUNC=run&USER=mdulatas&JOB=AP190CTS&PAY-GROUP=&CASH-CODE=&OUT=xml&WAIT=true
After I voided a check, I looked at the log and it said "“Executed WebRun Activity AP190CTS Found success string " . My question is : If AP190CTS run successfully, where do I find the report for this? I did a wrkjob on AP190CTS but didn’t find it. Also, I didnt create a AP190CTS job on portal so shouldn't the run have failed because there is no defined AP190CTS job?
Thanks,
Ludy
Bob Canham
Veteran Member
Posts: 217
9/23/2013 12:52 PM
Split
Hi Ludy, glad that seems to be working. The somewhat screwy thing about how it works is that the print file ends up in the print manager of the user who executed the job, not the one who owns it. Similar to if you inquired on another user's job in portal and submitted it. So if your processflow is running as lawson, then the print files will be in Lawson's print manager. Also, you don't need the pay group and cash code parameters in your post string, though it doesn't seem to be hurting anything.
David Williams
Veteran Member
Posts: 1127
9/23/2013 12:56 PM
Split
If you didn't actually build what the success string should have returned you won't get an actual success or fail message back. The "AP190CTS Found success string " is misleading since what it's actually telling you is that the success string was blank and it couldn't correctly report back.
If you don't have an AP190 job defined for user mdulatas then it would not have run and you couldn't retrieve the report. Keep in mind when the ProcessFlow user (either Lawson or PFUser) runs the job, it will more than likely be sitting in that user's print queue.
Ludy
Basic Member
Posts: 21
9/23/2013 1:46 PM
Split
Thanks, Bob and David for the quick reply.
-- Ludy
Please
login
to post a reply.