cancel
Showing results for 
Search instead for 
Did you mean: 

Partial delivery with BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Kudos

Dear All,

Is there a way to force partial delivery in BAPI_SALESORDER_CREATEFROMDAT2 ?

By default "complete delivery" is chosen.

I read somewhere that people fixed the issue using transaction OVZJ but in my case, this solution is not satisfactory because if I change this customizing, it changes the working order of the transaction VA01 (sales order creation).

If found a dedicated flag (PART_DLV) in ITEMS_IN table but I was not able to make it work...

Follow my example:

- 27 items in stock

- I want to make an order for 30 items

- VA01 creates the sales order and a delivery with confirmed quantity 27

- BAPI_SALESORDER_CREATEFROMDAT2 creates the sales order and u201Cno delivery createdu201D.

Thanks for your help.

Best regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

In order to give the solution to all reader in the future. I finally find a solution.

I wrote an OSS message to SAP and they aswer me in this way:

"Dear Customer,

In a BAPI, the ATP check is performed in the background.

Since the system is performing the availability check

in background, the availability screen cannot be performed.

So it is not able to make decisions regarding full

delivery, delivery proposal...In this case,the system uses

the configuration found in OVZJ. If your availability checking

rule in OVZJ is blank, the system will choose full delivery.

Sorry, but I can not give you a better solution to customizing in

OVZJ, if you whish a partial delivery."

In that transaction in customizing I insert the value "E" and the partial delivery is created from VA01 and from bapi too.

Edited by: Fabrizio Di Bitonto on May 20, 2010 10:07 AM

Former Member
0 Kudos

There is the COMPL_DLV flag on the sales order header data ORDER_HEADER_IN.

If this is not set, I think this should allow the order to create partial deliveries.

Former Member
0 Kudos

Dear Paul,

thanks a lot for your suggestion, but unfortunately I already set

ORDER_ITEMS_IN-PART_DLV = ' '.

ORDER_ITEMS_INX-PART_DLV = 'X'.

ORDER_HEADER_IN-COMPL_DLV = ' '.

ORDER_HEADER_INX-COMPL_DLV = 'X'.

and the bapi doesn't work.

Thanks anyway.