IPA and AP05.3

 3 Replies
 0 Subscribed to this topic
 51 Subscribed to this forum
Sort:
Author
Messages
Randy
Veteran Member
Posts: 50
Veteran Member
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!

Anyone have success with IPA and adding distribution records. I have the node setup and the fields all set via SQL. The first record will add just fine, however the second will error (AGS) with "Distribution Code Already Exists". I know the method is "ADD" and unlike excel upload there is no "ADD then Change".  Anyone have correct methofd for doing this?

 

Ragu Raghavan
Veteran Member
Posts: 477
Veteran Member
New Poster
New Poster
Congrats on posting!
Engaged Poster
Engaged Poster
Wow, you're on a roll!
Avid Poster
Avid Poster
Seriously, you're a posting maniac!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
If you can copy/paste the AGS call, maybe somebody will see something obvious
John Henley
Posts: 3362
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
For header/detail forms, I find the easiest thing to do is start with the ADD for the header, and then add the lines using a CHG but with a Line FC = A. In other words, use two different AGS calls--one for the header, and a second for the details. Don't try to get fancy.
Thanks for using the LawsonGuru.com forums!
John
Randy
Veteran Member
Posts: 50
Veteran Member
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
John Henley - Thats exactly what I ended up doing, however had to get a little fancy. Records live in a SQL DB, 1 Table, 1 row = HDR and Detail data. You cannot add the header without 1 detail row with the Lawson transaction node, AP05.3. The SQL row numbers the data rolling on COMPANY,DIST_CODE. I add all the headers where ROW =1. Then with another SQL/Transaction node I add all the rows ROW <> 1. Worked as it should.