How to set next serial value in a script

Discussion created by petermontague1 on Jan 15, 2013
Latest reply on Jan 22, 2013 by charleshuff

I am trying to write a script to make a new sku (serial number) when one is necessary. This is the unfinished product.

If ( IsEmpty ( Parent Inventory::sku ) ; SerialIncrement ( Inventory::sku ; 1 ) ; Parent Inventory::sku )

How do I set the next value at a serial of my choice?