Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Updating journal entry

Hi all,

I'm using DI API to update a DueDate of a journal entry. But when executing the update method i get the following error:

"-10, Invalid Code [JDT1.ContraAct][line: 1], 'XXXXXXXX'" where XXXXXXXX is an account number.

This is my code:

If (oJournalEntry.GetByKey(iTransId)) Then
  oJournalEntry.DueDate = Today
  If (oJournalEntry.Update <> 0) Then
     vCompany.GetLastError(nErr, sErr)
     ...
  End If
End If

The same update can be made in the SBO Application. By the way, I'm using SBO 2005A SP01 PL3. Haven't tried in SP00.

Thanks in advance,

Ian

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question