Hi Hector,
To use other series you should look some things, not set a random value for Series.
Go to Document Numbering
Double click in deposit line, in this form you can see your default series highlighted with red color.
In this you can create another series, but I believe you just can have more than one per time.
Try create another series, and try sets the new value in your code.
To get the valid values run this sql code, to get the ObjType:
SELECT TOP 1 ObjType, Series FROM ODPS
For ODPS is 25. Use this in the next query, to see all series for this object type:
SELECT * FROM NNM1 WHERE ObjectCode = '25'
Hope it helps.
Best regards,
Diego Lother