lehighwiz
8th October 2002, 16:32
I am trying to use an API to automate the session Maintain Outbound Data. No matter what data i pass to the fields on the insert portion of the form, i get the error "No inventory of [ITEM] [LOT] for the specified date" (where [ITEM] and [LOT] are my entered item and lot). Here is a snippet of my code that i am using. Any suggestions would be greatly appreciated.
Matt
stpapi.put.field(api.subsession.1, "tdilc401.pono", "10")
stpapi.put.field(api.subsession.1, "tdilc401.clot", "MVB00132")
stpapi.put.field(api.subsession.1, "tdilc401.date", "10082002")
stpapi.put.field(api.subsession.1, "tdilc401.loca", "RECEIPT")
stpapi.put.field(api.subsession.1, "tdilc401.qstr", "40")
rc = stpapi.insert(api.subsession.1, 1, api.err.msg)
if i key this exact data into the session, then everything works just fine.
Matt
stpapi.put.field(api.subsession.1, "tdilc401.pono", "10")
stpapi.put.field(api.subsession.1, "tdilc401.clot", "MVB00132")
stpapi.put.field(api.subsession.1, "tdilc401.date", "10082002")
stpapi.put.field(api.subsession.1, "tdilc401.loca", "RECEIPT")
stpapi.put.field(api.subsession.1, "tdilc401.qstr", "40")
rc = stpapi.insert(api.subsession.1, 1, api.err.msg)
if i key this exact data into the session, then everything works just fine.