user exit compile

Sort:
You are not authorized to post a reply.
Author
Messages
Chesca
Veteran Member
Posts: 490
Veteran Member
    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
    Senior Member
    Posts: 3348
    Senior Member
      Moving to S3 development/customization forum...
      Thanks for using the LawsonGuru.com forums!
      John
      John Henley
      Senior Member
      Posts: 3348
      Senior Member
        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
          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: 468
          Veteran Member
            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
              Ragu and John,
              Yes, I ended up adding my custom logic to LPCUSTOMPD 3000-USER-EXIT routine like suggested. Your help is greatly appreciated!
              You are not authorized to post a reply.