Create a PA52.1

 5 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
elizb
New Member Send Private Message
Posts: 0
New Member

I want a flow that will be run weekly and will create a PA52.1 for each employee (meeting a certain criteria) with an action code of Sep-Final which will change the status (which I hope is New-Value-31) to I1 (or one of a list of others).  PA100 is run daily.

_PDL=PROD&_TKN=PA52.1&_EVT=ADD&_RTN=DATA&_LFN=ALL&_TDS=IGNORE&FC=A&PCT-COMPANY=1&PCT-EMPLOYEE=&PCT-ACTION-CODE=SEP-FINAL&PCT-EFFECT-DATE=&PCT-NEW-VALUE-31=I1&_DELIM=%09&_OUT=XML&_EOT=TRUE

This says record does not exist which is true.  I want to add the record.  When I fill out the PA52 in the portal I hit add.???

PA53 does not have the option to add, just change.

How can I create the initial PA52 record?

elizb
New Member Send Private Message
Posts: 0
New Member
I am in 9.0 env and 8.0 apps
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
Here's a screen shot of the AGS call I did to add the PA52
Attachments
David Williams
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
Try the EVT=CHG instead of EVT=ADD
David Williams
elizb
New Member Send Private Message
Posts: 0
New Member
Thank-you.  That worked! 
elizb
New Member Send Private Message
Posts: 0
New Member
Making the event CHG instead of ADD did work. Sometimes the Lawson logic eludes me.

My status turned out to be in New-Value-1r0 but I knew I would be able to see where it was once I could get it to run. I find it interesting that you can't pick these fields when you build the Ags call. I have been doing PF for 4 months now and I've even been to class. But it is amazing how many "secrets" there are. Couldn't make it w/o all the great help I've received.

THANK YOU!