Using number series in my C/side code?

Dear All,

Iam inserting a new line in the EBPP journal from a code unit. Each time I assign the number manually. I want to assign it automatically using number series.

Would you please help me and tell me how to use it ?