Andy..
13th August 2008, 12:47
Hi, i've been working on issue material API and have come across a situation where i cant overwrite the lot field if there is already a value in there by default. The std session allows this but however many times i write a new value in there the old lot number remains. I've tried
ret=stpapi.update( "ticst0101s000", do.update, error )
at various points with do.update=true and false and it keeps giving me the error reporting there is not enough stock of the old lot number 'Shortage of 1.333 ton for lot (oldlotnum) of item (item) in (warehouse)'
Slightly odd situation now is that after the update i check
stpapi.get.field( "ticst0101s000", "ticst001.clot", value )
value=the new and correct lot number, but if i then try and update it gives the shortage error for the old lot number?!
ret=stpapi.update( "ticst0101s000", do.update, error )
at various points with do.update=true and false and it keeps giving me the error reporting there is not enough stock of the old lot number 'Shortage of 1.333 ton for lot (oldlotnum) of item (item) in (warehouse)'
Slightly odd situation now is that after the update i check
stpapi.get.field( "ticst0101s000", "ticst001.clot", value )
value=the new and correct lot number, but if i then try and update it gives the shortage error for the old lot number?!