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
Calculations within PFI
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Jeffin Joy
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
4988
People Online:
Visitors:
138
Members:
0
Total:
138
Online Now:
New Topics
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1377
Roger French
1315
mark.cook
1244
Chris Martin
825
Forums
Filtered Topics
Unanswered
Unresolved
Active Topics
Most Liked
Most Replies
Search Forums
Advanced Search
Prev
Next
Forums
Integration / Customization
IPA/ProcessFlow
Calculations within PFI
Please
login
to post a reply.
4 Replies
0
Subscribed to this topic
53 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Bob
Basic Member
Posts: 7
10/20/2011 6:53 PM
I am attempting to use PFI to simulate generation of reports. The query that PFI accepts is:
SELECT UCCUNO, UCORNO, UCIVQT, UCCUAM
FROM *LIBL.OSBSTD
WHERE UCORTP IN ('CUS','EMC') AND UCIVDT BETWEEN 20100201 AND 20100228.
However, the actual SQL statement I want to apply to PFI is:
SELECT UCCUNO, UCORNO, SUM(UCIVQT), SUM(UCCUAM)
FROM *LIBL.OSBSTD
WHERE UCORTP IN ('CUS','EMC') AND UCIVDT BETWEEN 20100201 AND 20100228
GROUP BY UCCUNO, UCORNO
How can this be accomplished within PFI?
Thanks
George Graham
Veteran Member
Posts: 201
10/20/2011 9:05 PM
Split
Are you getting an error?
Bob
Basic Member
Posts: 7
10/21/2011 12:11 PM
Split
HI George:
I did not receive any error during the genration of PFI, but the return value of both summed data field are "undefined". Is there any way to fix this issue? This issue is the only thing preventing this PFI being published.
Thanks
Bob
John Henley
Posts: 3366
New Poster
Congrats on posting!
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader art thou!
10/21/2011 1:13 PM
Split
Use an alias in the SQL for the sum columns, e.g. SUM(UCCUAM) AS UCCUAM_SUMMARY.
Then reference nodename_UCCUAM_SUMMARY in your flow.
Bob
Basic Member
Posts: 7
10/21/2011 1:55 PM
Split
It work! Thank you so much...
Please
login
to post a reply.