AGS Call To HR20

Sort:
You are not authorized to post a reply.
Author
Messages
mjpeterson
Basic Member
Posts: 5
Basic Member

    I'm creating my first AGS call and it's to the HR20 screen. Add works fine, but I'm having trouble with Change. If an employee has three records each with a different type and you want to change the third record how do you select it? I can only get it to change the first record, so I assume I'm missing a hidden field value somewhere.  Any help is appreciated.

    Thanks!

    Gary Davies
    Veteran Member
    Posts: 248
    Veteran Member

      Lawson forms with detail lines have "position to" fields that are sometimes hidden, sometimes displayed above the detail lines. They all start with PT- and are used to get a sepcific record to line 1. On HR20 there are 3 PT fields PT-XMIT-NBR,PT-DATE, and PT-SEQ-NBR which I assume are the key fields for the table the is read to get the detail lines.

      What you woud do is populate those fields for the 3rd record and put the changes in detail line 1 and set the LINE-FC1 to C.

       

      mjpeterson
      Basic Member
      Posts: 5
      Basic Member

        I was able to get it to work.  Thanks for your help Gary!

        Todd Mitchell
        Veteran Member
        Posts: 87
        Veteran Member

          I am wanting to create a Process Flow around HR20, how do you determine which detail row you want to change, as the detail row can vary?

          Ragu Raghavan
          Veteran Member
          Posts: 468
          Veteran Member
            Please see Gary's note above. You populate the PT- fields, so the detail row you want to modify is always row #1.
            Todd Mitchell
            Veteran Member
            Posts: 87
            Veteran Member

              I guess I am not understanding how to do what you are saying correctly or not asking my question correctly.

              Lets say I have a type of PERS_EMAIL.  For employee 1234 they do not have a PERS_EMAIL type but have 2 others.  Won't a "C" on line one overlay what is currently there?

              In another example, employee 4567 has a PERS_EMAIL but it is not in the first detail row, if the PERS_EMAIL can be in any row from 1 to 10, how can I know what correct row to do the change on?

              Ragu Raghavan
              Veteran Member
              Posts: 468
              Veteran Member
                Taking the second employee 4567, PERS_EMAIL. Let us say the record you want to change has date of 1/1/2014 and SEQ_NBR of 9876,
                if you set PT-DATE to 20140101 and PT-SEQ-NBR to 9876, when you do an Inquire, this record will appear as row 1 on the screen.
                I have not worked on HR20, but on other screens, this is how I have seen it work.
                You are not authorized to post a reply.