Jaroslaw
31st March 2006, 19:55
Hi,
I am trying to insert a new lot through AFS using session tdltc0101m000 but every time it fails with message "Manufactured Item not allowed".
When I insert exactly the same item manually it saves without a problem.
Here is the code:
item = "1000-00556"
olot = tdltc.olot.prod
stpapi.put.field("tdltc0101m000", "tdltc001.item", item)
stpapi.put.field("tdltc0101m000", "tdltc001.olot", str$(olot))
stpapi.insert("tdltc0101m000", true, error)
I tried the following:
- using different items
- changing the item type in Maintain Item Data to Purchased
- changing variable olot to tdltc.olot.purch
- filling all fields on the form (using function stpapi.put.field) even though I want to accept the defaults for everything exept tiitm001.item and tiitm001.olot
In all cases, inserting manually works fine but using AFS fails with message "Manufactured Item not allowed":confused:
Any comments would be appreciated,
Jaroslaw
I am trying to insert a new lot through AFS using session tdltc0101m000 but every time it fails with message "Manufactured Item not allowed".
When I insert exactly the same item manually it saves without a problem.
Here is the code:
item = "1000-00556"
olot = tdltc.olot.prod
stpapi.put.field("tdltc0101m000", "tdltc001.item", item)
stpapi.put.field("tdltc0101m000", "tdltc001.olot", str$(olot))
stpapi.insert("tdltc0101m000", true, error)
I tried the following:
- using different items
- changing the item type in Maintain Item Data to Purchased
- changing variable olot to tdltc.olot.purch
- filling all fields on the form (using function stpapi.put.field) even though I want to accept the defaults for everything exept tiitm001.item and tiitm001.olot
In all cases, inserting manually works fine but using AFS fails with message "Manufactured Item not allowed":confused:
Any comments would be appreciated,
Jaroslaw