PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 06/05/2017 12:51 PM by  Steven.Morales
Transaction Service Call Example Needed to change a value
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Steven.Morales
Programmer
Private
New Member
(5 points)
New Member
Posts:3


Send Message:

--
06/05/2017 12:51 PM

    I am looking to increment CPY-LAST-BATCH by one.  I've been mostly doing DME calls which is supposedly read only.  This is my first attempt at a transaction.

     

    To my understanding, we have to do an FC=I first, than an FC=C with the new value...

                 '_PDL=LSAPPS' +
                 '&_TKN=AP00.4' +
                 '&_EVT=CHG' +
                 '&_RTN=SENT' +
                 '&_LFN=ALL' +
                 '&_TDS=IGNORE' +
                 '&FC=I' +                  // I=Inquire, C=Change
                 '&CPY-COMPANY=100' +       // Company (Key)
                 '&CPY-LAST-BATCH' +        // Last Batch Number
                 '&_OUT=XML' +
                 '&_EOT=TRUE' ;  

     

                 '_PDL=LSAPPS' +
                 '&_TKN=AP00.4' +
                 '&_EVT=CHG' +
                 '&_RTN=SENT' +
                 '&_LFN=ALL' +
                 '&_TDS=IGNORE' +
                 '&FC=C' +                  // I=Inquire, C=Change
                 '&CPY-COMPANY=100' +       // Company (Key)
                 '&CPY-LAST-BATCH=1010101' +        // Last Batch Number
                 '&_OUT=XML' +
                 '&_EOT=TRUE' ;  

     

    However, I am getting an error stating that "Tax code not setup for company".  Am I supposed to include that information again when I just want to just change one field?  

     

    Also, is there a way to lock the record from read to write to prevent more than one person from changing a value at the same time?

    You are not authorized to post a reply.