user exit compile

 5 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Chesca
Veteran Member
Posts: 490
Veteran Member
New Poster
New Poster
Congrats on posting!
I created a user exit XXXXXPD and have working storage XXXXWS source files for a batch program that will invoke a user online screen that calls my user exits. I know I am supposed to compile with option -u but what needs to be compiled, the user-exit or the base program? Do I need a perform statement to call my user exit?
John Henley
Posts: 3362
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
Moving to S3 development/customization forum...
Thanks for using the LawsonGuru.com forums!
John
John Henley
Posts: 3362
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
You compile the user exit with the -u, e.g.
qcompile –u PROD BR BR40B
User exits are only available for on-line forms, not batch programs. It sounds like you are modifying the batch program to invoke an online form. Assuming you have the user exit set up correctly, the online form will invoke the user exit--you don't need to add a perform statement.
Thanks for using the LawsonGuru.com forums!
John
Chesca
Veteran Member
Posts: 490
Veteran Member
New Poster
New Poster
Congrats on posting!
Hi John, yes you are correct. I couldn't get the user exit to compile LPVACATION so I ended up adding my code to the LPCUSTOMPD library. Thank you so much for your response.
Ragu Raghavan
Veteran Member
Posts: 477
Veteran Member
New Poster
New Poster
Congrats on posting!
Engaged Poster
Engaged Poster
Wow, you're on a roll!
Avid Poster
Avid Poster
Seriously, you're a posting maniac!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
As John mentioned, the user exits (Begin, Middle and End) only apply to on-line programs.

The execeptions are some library files (also called User exits) like LPCUSTOMPD, PRUEDED, BNUX70PD etc. that allow you to insert custom logic to calculate accruals, deductions etc. These libs are called by LP140, PR140, BN102 etc.
if whatever you are doing cannot be accomodated in one of these, you probably need to insert custom code in LP140PD or wherever appropriate.
Chesca
Veteran Member
Posts: 490
Veteran Member
New Poster
New Poster
Congrats on posting!
Ragu and John,
Yes, I ended up adding my custom logic to LPCUSTOMPD 3000-USER-EXIT routine like suggested. Your help is greatly appreciated!