"Dummy" / Incremantal Part Numbers

I've just created the BPM for generating next Part number ( file: Partnum_gen_Export.bpm )
It is using Company.Number02 as buffer. Before adding BPM it is necessary to set Comapny.Number02 as per last required P/N.

I've seen few people asking about it but no one actual came up with a solution.

I've based that on a BPM for creating new customer ID which i found on this forum.