cancel
Showing results for 
Search instead for 
Did you mean: 

How do I prevent a Sales Document number to be generated

Former Member
0 Kudos

Hi Experts,

I'm going to be using bapi_salesorder_create_fromdat1 to simulate a sales order create, but I will not commit it.

The BAPI has a flag that I can set to prevent a sales order from being created.

Problem is that:

It still generates a Sales Document Number, which I don't want to have happen.

Has anyone done something similar or at the very least prevent a number from being taken from the number ranges from config?

Regards,

Orlando

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Orlando,

as per your last thread i understand no sales order generated but number rage is taken.

so for your test purpose you can assign new dummy number range to order type and after your simaltion you can reassign the original.

I know this is not what you want but still this could be one of soultion to your problem.

hope this solves your purpose.

regards/ashu

Former Member
0 Kudos

Thank you all for your responses.

There's a BAPI that simulates a sales order creation without generating a sales document number, which our functional analyst found called:

BAPI_SALESORDER_SIMULATE

This solved my problem. Hope this helps someone else

Former Member
0 Kudos

HI

Former Member
0 Kudos

Hi Prashanth,

The bapi allows you to execute it without actually saving the sales document. The flag "without commit" in the bapi prevents it from creating a sales order, but it does not prevent it from generating a document number. The number ranges is set to internal.

Regards

Orlando