cancel
Showing results for 
Search instead for 
Did you mean: 

DI API error while adding AP Invoice (Using serial Nos.)

Former Member
0 Kudos

Hi,

Im getting the following DI API error when adding an AP Invoice which has serial numbers and i cant seem to find any logical fault in the code.

" [PCH1.WhsCode][line: 4] , 'This entry already exists in the following tables (ODBC -2035) "

If anybody has encountered this error and found a solution kindly let me know.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Vivek,

Are you trying to add same document number, serial number or so on?

"entry exist " means like "duplicate key problem", I guess.

Basically, whscode column in PCH1 table allows duplicating.

So, I think serial number is duplicated among same item code.

Hope this useful for you.

Regards,

Hyunil Choi.

Former Member
0 Kudos

I did check the serial Numbers during debugging and they are different and i dont think that it is the cause for the error.

Former Member
0 Kudos

Hi Vivek,

Then, I can help you with your sample code and specific values.

Can you kindly post with your code?

Regards,

Hyunil Choi.

Former Member
0 Kudos

Im Using SAP B1 2005 B PL:08.