Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
S3 Customization/Development
New Table w\compilation issues
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Steve G
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5277
People Online:
Visitors:
264
Members:
0
Total:
264
Online Now:
New Topics
S3 Systems Administration
Lawson Security Admin (LSA) - Securing Print Manager to self only
10/24/2025 6:27 PM
Looking for someone who would be willing to share
Lawson Add-Ins for Microsoft Office
Lawson Add-in
9/30/2025 6:51 PM
I am looking for a Lawson Add-ins query to add new
Lawson S3 Procurement
Anyone getting PO 0000 not found for company error in PO23?
9/30/2025 2:45 AM
Anyone getting PO 0000 not found for company error
Lawson Add-Ins for Microsoft Office
PO20 - Cancel PO via Add-in
9/25/2025 8:03 PM
Is it possible to cancel PO's using add-ins? I
S3 Systems Administration
S3 Payroll - PayStubs
9/18/2025 6:58 PM
Looking for a reliable solution to streamline the
S3 Systems Administration
Quick Access report
8/25/2025 7:17 PM
Looking for a good way to see who has access Lawso
S3 Customization/Development
LP01 hiding a PTO plan from the list
8/13/2025 4:44 PM
Hi all. is there a way to hide a specific PTO&n
Lawson Business Intelligence/Reporting/Crystal
GLTrans - PO Line/MAInvdtl
8/6/2025 6:13 PM
Hello, we have an existing tabular model for fina
IPA/ProcessFlow
Retrieving GUID from InforOS
7/25/2025 2:22 AM
Hello everyone, I was wondering if there is a way
IPA/ProcessFlow
IPA for forwarding cost messages (MA64/MA66.3)
7/23/2025 6:07 PM
When a buyer has an invoice cost message where the
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
Chesca
1042
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
S3 Customization/Development
New Table w\compilation issues
Please
login
to post a reply.
10 Replies
0
Subscribed to this topic
17 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Demi
Veteran Member
Posts: 67
12/19/2011 5:24 PM
I've been tasked with adding a new database table to the Lawson PR system. I've created my table, ran blddbdict and dbreorg. My new (empty) table shows up in the database. I've since created two custom programs(using pgmdef & copy) to use my new table but when I run through a compile I keep getting this error:
Warning: Error - PrcWRKFILE(): 'NewTableName' Not Found In WsGrp
Warning: Work File 'NewTableName' May Not Be Defined In workdef
/lawson/gen/bin/bismark: Error Encountered IN Execution
/lawson/gen/ben/lawosh: Error Encountered In Execution
I've tried to create new libraries (PD,WS) using pgmdef, but can't do anything once I get there. Do there have to be defined as a workfile?
I've never created a custom table before and I'm not sure if I'm missing something. Searched the knowledge base thru and thru with not much help. I have questions... Do I 'need' to update the .OR file; my new file is created from the paydeductns table and is then, totally independant. Do I need to create a custom PD and WS? Will the lawson utilities create custom 840-, 850- (etc) or will they need to be handled independantly within my programs?
John Henley
Posts: 3362
12/19/2011 5:36 PM
Split
The 840-, 850- paragraphs are created, however you have to PERFORM *something* that actually references the table in order for the Lawson bismark precompiler to actually generate the COBOL for access the table.
Sam Simpson
Veteran Member
Posts: 239
12/19/2011 5:38 PM
Split
1. Did you create indexes to your tables?
2. Are you opening your tables in your custom program(like a workfifle)?
3. How are you reading/writing data?
Karen Sheridan
Veteran Member
Posts: 142
12/19/2011 5:39 PM
Split
I wonder if the pgmdef copy created something that's off in workdef? Did you also look there to see if everything is as it should be?
Karen
John Henley
Posts: 3362
12/19/2011 6:05 PM
Split
You have to PERFORM *something* that actually references the table in order for the Lawson bismark precompiler to actually generate the COBOL for accessing the table. If you are just referencing member variables/columns within the table, you will get an error, since you aren't actually accessing the table.
Demi
Veteran Member
Posts: 67
12/19/2011 7:44 PM
Split
Thank-you to everyone for your responses, I really appreciate it. Currently I have two issues 1- my compilation is returning ... Warning: Error - PrcWRKFILE(): LEIT Not Found In WsGrp
Warning: Work File LEIT May Not Be Defined In workdef
D:\cobdev\gen/bin/bismark: Error Encountered In Execution
... Since I've created a new table called LEIT in the database (with 3 Indexes); do I need to define something more? I've tried creating a New Library for my table under pgmdef for my source but the software isn't allowing me to actually do anything. How does Lawson generate the internal PD and WS areas for the new table? Must I do something more than the blddbdict and the reorg? My second issue ... I can view my new screen and select criteria within the portal but when I add my job I receive "Validate: EOF Encountered".
John Henley
Posts: 3362
12/19/2011 7:53 PM
Split
You don't need a library. Please read my answer above about needing some code in your program that accesses the LEIT table to have something in your code (i.e. PERFORM 840-FIND-LEISET1, etc.) that forces the bismark / qcompile process to insert the libraries. Again, you don't have to do anything with a library.
What is it that your program is trying to accomplish?
You are getting the "Validate: EOF Encountered" error because your program is not compiled.
Demi
Veteran Member
Posts: 67
12/19/2011 8:04 PM
Split
My program is pulling information off of the PAYDEDUCTN table, along with the Employee master and the PRREGPARM file. The gathered information is then written out to my new table.
John Henley
Posts: 3362
12/19/2011 8:15 PM
Split
PERFORM 800-CREATE-LEIT.
.
.
.
MOVE PYD-COMPANY TO LEI-COMPANY.
MOVE PYD-EMPLOYEE TO LEI-EMPLOYEE.
.
.
.
PERFORM 820-STORE-LEIT.
John Henley
Posts: 3362
12/19/2011 8:17 PM
Split
It is the 800-CREATE-LEIT and the 820-STORE-LEIT that will trigger the complier to insert the appropriate library code.
Demi
Veteran Member
Posts: 67
12/19/2011 8:59 PM
Split
Thank-you John! I'm on the move again. Any idea where I can get a list of the possible invalid key conditions? Can I use LEIT-Duplicates? I have a sequence number field in my record to sequence any possible duplicates.
Please
login
to post a reply.