LP Custom calculation routine

Sort:
You are not authorized to post a reply.
Author
Messages
Chesca
Veteran Member
Posts: 490
Veteran Member
    Our Lawson consultant suggested we add logic to calculate LP vacation accruals. I was provided with this logic but I have no idea what it means or how to code it. I would greatly appreciate any feedback or suggestions with this issue. Thanks!

    I defined the LP ACR HOURS in WS as whole number.
    Would I need a compute statement to calculate the ACR Hours?

    Logic:
    ACR HOURS = If TASERVICE_SERVICE-CODE is included in ACR TASERVICE _SERVICE-CLASS and status <> 9 and SERVICE CODE DATE is in CURR-PAY-PERIOD, then include, else ignore
    Ragu Raghavan
    Veteran Member
    Posts: 468
    Veteran Member
      Looks like you will need to insert the code in LPCUSTOMPD.
      It may be more than just a COMPUTE. Looks like you may need a DB call to determine status, Service class etc.
      You will certainly need some exposure to the 4GL development area.
      Chesca
      Veteran Member
      Posts: 490
      Veteran Member
        Well, this will be my first exposure to the 4GL development and have no training but I have the docs for developers API (Database Input/Output Routines) and looking a sample programs and doing lots of research/forums, thank God.

        My next step is to figure out how to read against the TASERVICE and the TAEMPSER tables to determine the service status, sevice class, and transaction date. Thanks again.
        Chesca
        Veteran Member
        Posts: 490
        Veteran Member
          Does anybody have experience using the LPCUSTOM library/routine to calculate accruals and would be willing to share?
          You are not authorized to post a reply.