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
File Access with Fixed Length Fields
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Saef
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5226
People Online:
Visitors:
501
Members:
0
Total:
501
Online Now:
New Topics
User Group Announcements
Carolina User Group Meeting
12/20/2024 3:15 PM
Date & Time: February 6, 2025, 8:30am - 4:00pm
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
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
1372
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
File Access with Fixed Length Fields
Please
login
to post a reply.
10 Replies
0
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
April
Basic Member
Posts: 15
10/20/2008 2:44 PM
I am new to PFI and am looking for a way to create a Lawson file daily that needs to contain fixed length fields. Is this possible?
Thanks, April
Sam Simpson
Veteran Member
Posts: 239
10/20/2008 6:11 PM
There is a javascript functions called addLeadingSpaces, addLeadingZeros, addTrailingSpaces and addTrailingZeros that you can use to have you fields have the same length and then use the formated variable into your FileAccess node.
KK - Infor
Veteran Member
Posts: 61
10/21/2008 9:57 PM
yes it is possible. As Sam said, you will have to use Branches/ javaScript statements and add/ trim spaces/ characters to make the fields fixed length.
KK
April
Basic Member
Posts: 15
10/23/2008 6:29 PM
Ok, I got some of the fields to work, still working on others. Another question - How do I filter only the distinct records for job codes? I am pulling from the Employee table (only because that is where the field I need is located) and so it is giving me an entry for each Associate. But I only want the job codes listed once. Any ideas?
Thanks, April
David Williams
Veteran Member
Posts: 1127
10/23/2008 6:42 PM
If you want the Job Codes, why not pull from the correct table that lists them?
April
Basic Member
Posts: 15
10/23/2008 6:56 PM
I tried but the field l need in addition is the ot-plan-code (contains exempt/non-exempt) and the only place they filled in the tables for the build is in the employee table. By pulling the job code table, I couldn't find a link/relationship anywhere for the employee table. Do you know of a way of getting around this?
Thanks, April
John Henley
Posts: 3353
10/23/2008 6:58 PM
So you want to pull only certain job codes from the EMPLOYEE table? You can add a &SELECT=JOB-CODE=XXX to the DME/query string.
Sam Simpson
Veteran Member
Posts: 239
10/23/2008 7:08 PM
Please explain more about distinct job codes. What if the employee has two job codes (it means EE can work on two different jobs on the same company)? The employee table is not reliable for job codes but you can use PAEMPOS table for what you are looking for.
Better yet, please explain what your processflow is all about. It's more easier to see the scenario if we know the purpose. Maybe all you need is to use the related tables attached to the Employee table in your query node.
Sam Simpson
Veteran Member
Posts: 239
10/23/2008 7:32 PM
It seems to me you wanted to list job codes and all employees within that jobcodes including if the employee is either exempt or non-exempt. Is that correct?
April
Basic Member
Posts: 15
10/24/2008 12:53 PM
Sorry for any confusion. Here is what I am trying to do - create a fixed length file for the Job Class which includes the following fields and values:
OrganizationUnit (hard code "A") - size 16
Filler (blank space) - 80
Job Code - 16
Job Code again - 9
EmployeeCategory (ot-plan-code) - 16 (values in table are BWNE and BWEX - in file needs to be converted over to NE and E)
Job code description - 256
So this is what I have so far:
in my
query
I have - PROD=&FILE=EMPLOYEE&FIELD=JOB-CODE;OT-PLAN-CODE;JOB-CODE.DESCRIPTION&OUT=CSV&DELIM=~
then I have a
branch
for exempt/non-exempt and have the
assigns
going to msgbuilders. In my msgbuilders, I have
(note: some of the variables are fillers for the spaces that I added in to make up the remaining characters to fill the fixed length field, and the other msgbuilder refers to the exempt filler)
then I have the end of the
query
, followed by the
file access
which has then the pfi ends.
Thanks for any/all help! April
Sam Simpson
Veteran Member
Posts: 239
10/24/2008 1:39 PM
As I have stated before, The job code in the employee table is the default job code for an employee. If an employee works for different job codes (like nurses etc) then you will use PAEMPPOS table. I still cannot see what the purpose of your output file. there is no relation to the employee except the ot_plan_code. Mostly there are only two categories for the plan either exempt or non-exempt. Please tell us if you are counting ot_plan_code by jobcodes or what.
Usually something like this is better off writing in a 4GL code or in Crystal and schedule it thru the job scheduler. ProcessFlow realy is more on the work side and the steps to accomplish the end results.
A clearer picture always result in a clearer view.
Please
login
to post a reply.