AP20 AGS Query dropping line items higher than 5

 2 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
thegris
Basic Member
Posts: 5
Basic Member

    I'm programmatically building a query to submit an AP20 invoice to Lawson's URL interface.  It dynamically generates the query and puts in however many line items are associated with the invoice.

    When I look up the invoice using the AP20 screen, only the first five line items are retained.  I also get an error message returned from the query that says "Distributions out of balance", which makes sense if it is dropping additional line items.

    Is there a way to increase the number of possible line items or somehow tell the query that there are more than 5 line items?

    Thanks!

    John Henley
    Posts: 3353
      No can do--you're interacting with the form, which has that many lines. So, your program would need to loop through and submit each detail either one at a time, or five at a time.
      Thanks for using the LawsonGuru.com forums!
      John
      thegris
      Basic Member
      Posts: 5
      Basic Member

        Thanks for the quick reply!

        Do I need to change any other parameters besides the line item indices themselves?  Is submitting the line-item-details a different form?

        These are basic questions as I am a very new-to-Lawson developer, thank you for the help!