setprefix

Hello,

in my class I have a setprefix in a loop

At the end of the loop I get a list of errors without setprefix

Sales Order 00000000001

Sales order 0000000001 already exist, number sequence used instead.

Sales order 0000000002 already exist, number sequence used instead.

Debugging I see the setprefix in the output form (sales Order xxxxxxx) in this way:

Sales order 0000000001 Sales order 0000000001 already exist, number sequence used instead.
Sales order 0000000002 Sales order 0000000002 already exist, number sequence used instead.
Sales order 0000000003 Sales Pool 0004 does not exist
Sales order 0000000003 Address Code 000 not found for Customer 070256.
Sales order 0000000003 Inventory location 05 does not exist
Sales order 0000000003 Payment R03 does not exist

Why I don’t get messages under the proper setprefix ? Any idea?

THX

Hello

so here you want to give the prefix to your sales id. If the prefix willnot get changed then you can give the format for the sales order in the number sequence form.

If you want to chagne the prefix dynamically, publish your code

Regards,

Muthukumaran