cancel
Showing results for 
Search instead for 
Did you mean: 

DI API add purchase invoice based on landed cost

ricardo_renteria2
Participant
0 Kudos

Hi all,

I'm trying to add a purchase invoice throught DI API, this invoice should be referenced to a Landed Cost document. I'm setting the BaseType, BaseEntry and BaseLine fields in the lines section of document as usually done for other documents, but I get the error "Internal error" when posting the invoice.

The data is setting correctly (basetype=69, baseentry=9, baseline=0) but I don't know why the error happens. I tested it also using service layer but the error also raises.

If the invoice is not referenced to the base document it is created fine. 

Is there any special stuff creating purchase invoices with reference to landed cost documents that should be consider for di api/service layer?

I appreciate your suggestions to solve the error, so many thanks.

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Hi ricardo_renteria2,

This is a DI API limitation.

Kindly refer to SAP KBA 3374134 for the same.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

ricardo_renteria2
Participant
0 Kudos
Thank you Ankit for your answer.
ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ricardo_renteria2,

We would appreciate if you can close this thread by selecting the answer.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

Answers (0)