PA52 Personal Action with comments

 1 Replies
 2 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Todd Mitchell
Veteran Member
Posts: 87
Veteran Member

    I am creating a PA52 process flow that also includes comments.  When a Personal action is performed manually and comments are added, the user clicks on the comment button and PA56 is displayed.  I have tried to code this using IPA, but am not having any luck either getting the comments added -- error states that Pending action not found.  Or not "linked" -- meaning when I am able to get the comment to add, it does not show when I try to pull them up with the Lawson screens for inquiry.

    Here is my code for PA56:

    _PDL=&
    _TKN=PA56.1&
    _EVT=ADD&
    _RTN=DATA&
    _LFN=ALL&
    FC=A&
    PT-ACTION-TYPE=E&
    PAC-COMPANY=&
    PAC-EMPLOYEE=&
    PAC-DATE=&
    PAC-ACTION-CODE-IND=TERMINATE&
    PAC-ACTION-CODE-PAY=TERMINATE&
    PAC-ACTION-CODE-HIRE=TERMINATE&
    PAC-ACTION-CODE-POS=TERMINATE&
    PAC-ACTION-CODE-MASS=TERMINATE&
    LINE-FCr0=A&
    PAC-CMT-TEXTr0=&
    PT-PAC-LN-NBR=25&
    PAC-ACTION-CODE=&
    PT-PAC-LN-NBR=&
    PAC-CMT-TYPE=PA&
    _HK=&
    _DELIM=%09&_OUT=XML&_EOT=TRUE

    Carl.Seay
    Veteran Member
    Posts: 109
    Veteran Member
      This is from HTML so it's a little different, but here are the field's that are populated by MSS Personnel Actions:

      &PGM-NAME=PA52
      &PAC-COMPANY= + Number(authUser.company)
      &PAC-EMPLOYEE= + Number(Comments.Employee)
      &PAC-ACTION-CODE-IND= + Comments.ActionCode
      &PAC-DATE= + formjsDate(Comments.Date)
      &PT-ACTION-TYPE= + Comments.ActionType
      &PT-PAC-LN-NBR= + Number(Comments.ActionNbr)
      &PT-IMMEDIATE-FLG= + Rules[_RULESINDEX].WebImmediate;
      &PAH-OBJ-ID=1
      For loop...
      &LINE-FC + lineNbr = A
      &PAC-CMT-TEXT + lineNbr = escape(CommentDtlLines[j], 1)
      &PAC-PRINT-CODE + lineNbr + = Y