Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI SalesOrder partial delivery status

Former Member
0 Likes
813

Hi,

I am having a problem with delivery status return values calling BAPI Bapi_Salesorder_Simulate.

In my IDES 4.6C development environment partial availablity of a material for a requested delivery date is correctly displayed in BAPI return data structure "OrderScheduleEx", "CONFIR_QTY".

E.g. If I set "OrderItemsIn"."Req_Qty" to "300" but available quantity is only 175 (e.g. verified using stock/requirement list in sap transaction MD04), the confirmed quantity is correctly confirmed in "OrderScheduleEx"."CONFIR_QTY" as 175.

Problem 1)

If I set the option "Partial delivery at item level" "OrderItemsIn"."PART_DLV" to "C" ("only complete delivery allowed") the partial quantity is still confirmed. Is this the expected behavior ? (Setting "OrderHeaderIn"."COMPL_DLV" to " " or "X" does not have any effect either)

bigger Problem 2)

Introducing the application to a different (non-Ides) sap installation at customer site the confirmed quantity on partial availability is always "0" ("OrderScheduleEx"."CONFIR_QTY" = "0"). The confirmed quantity is only set to a correct value on full availability in stock. Entering the sales order manually in SAP (using sap transaction va01) using the same parameter is successfull: "Standard order availablity control" pops up on saving the order suggesting a delivery proposal of 175 (for above example)

Has anybody experiences in these partial delivery issues using BusinessObject SalesOrder in BAPI calls ? (I know that there are numerous places for configuring the algorithm for availablity calculation - but this seemed like a BAPI issue to me since the manual sales order creation executes correctly)

Thanks for any help,

Andreas Koschinsky

2 REPLIES 2
Read only

Former Member
0 Likes
485

Hi - I solved this on my own.

Solution was: In SAP transaction OVZJ the default behavior for partial availability checks can be defined per sales org/dist/div.

If e.g. "Dialog box in the case of shortages (full dlv.)" is selected - confirmed quantity is always set to 0 if it is only partially available.

Read only

0 Likes
485

Andreas,

Thank you for posting your solution. It was helpful in finding a solution to my problem.

Rahul