cancel
Showing results for 
Search instead for 
Did you mean: 

Delivery failed if Sales Order DocTotal = 0 using DIAPI

0 Kudos

I am creating Delivery based on Sales Order whose DocTotal = 0.
When I am creating Delivery from SAP client it is OK but when I try using DI API it is giving me error.
No matching records found (ODBC -2028)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi kanwalshehzad,

Did it ever work for you or you are trying it for the first time?

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

Accepted Solutions (0)

Answers (3)

Answers (3)

Johan_H
Active Contributor
0 Kudos

Hi,

This is a restriction of the system. If this restriction was fixed in your version (I don't know if it ever was), it may very well be left in the DI API.

Regards,

Johan

0 Kudos

Hi Ankit,

It worked only when Sales Order DocTotal <> 0, but it never worked when Sales Order DocTotal = 0. Currently I have tested it with SAP B1 v9.3 PL4.

0 Kudos

Hi Ankit,

I am a bit confused about your reply. If you mean that whether my code was successful to create Delivery document based on Sales Order then yes. I am facing problem only in case when Sales Order's DocTotal = 0.

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi kanwalshehzad,

My question was whether this functionality ever worked for you in the past where Sales Order's DocTotal was 0 and Delivery was created successfully for that Sales Order?

Are you trying to achieve this functionality for the first time ? Has it been occurred after any recent upgrades of SAP Business One?

Kind regards,

ANKIT CHAUHAN

SAP Business One Support