Instead of using getCurrentSublistValue and setCur...
# suitescript
j
Instead of using getCurrentSublistValue and setCurrentSublistValue try and use getSublistValue and setSublistValue, you need to add the line number so it would be something like this:
var qtyCommitted = tran.getSublistValue({sublistId: 'item', fieldId: 'quantitycommitted', line: x});