Skip to Content
0
Former Member
Jul 20, 2016 at 11:37 AM

Error adding a receipt from production with "Complete" transaction Type

269 Views

Hi All,

I’m generating Receipt from Production documents via SDK.

When posting them manually you have to set the transaction type to “Complete” at line level to make the new receipt update the production order completed quantity.

The problem is that when I use the SDK to set

  1. receiptAgainstPrdOrdr.Lines.TransactionType = SAPbobsCOM.BoTransactionTypeEnum.botrntComplete;

then when adding I receive the error “Transaction type should be filled only in production completion transaction [IGN1.TranType][line: 0]”

If the transaction is posted without setting the above property the Add method succeeds, obviously without updating the production order completed quantity.

Any hint about this error?

Thank you

Massimo